Revision: 129081 https://trac.macports.org/changeset/129081 Author: jeremyhu@macports.org Date: 2014-12-04 20:34:59 -0800 (Thu, 04 Dec 2014) Log Message: ----------- xman: Fix build failure Modified Paths: -------------- trunk/dports/x11/xman/Portfile Added Paths: ----------- trunk/dports/x11/xman/files/ trunk/dports/x11/xman/files/0001-Fix-tautology-to-the-intended-check.patch Modified: trunk/dports/x11/xman/Portfile =================================================================== --- trunk/dports/x11/xman/Portfile 2014-12-05 00:46:46 UTC (rev 129080) +++ trunk/dports/x11/xman/Portfile 2014-12-05 04:34:59 UTC (rev 129081) @@ -24,6 +24,8 @@ depends_lib port:xorg-libXaw +patchfiles 0001-Fix-tautology-to-the-intended-check.patch + livecheck.type regex livecheck.regex ${name}-(\[\\d.\]+)${extract.suffix} livecheck.url http://xorg.freedesktop.org/archive/individual/app/?C=M&O=D Added: trunk/dports/x11/xman/files/0001-Fix-tautology-to-the-intended-check.patch =================================================================== --- trunk/dports/x11/xman/files/0001-Fix-tautology-to-the-intended-check.patch (rev 0) +++ trunk/dports/x11/xman/files/0001-Fix-tautology-to-the-intended-check.patch 2014-12-05 04:34:59 UTC (rev 129081) @@ -0,0 +1,27 @@ +From bb926ce84421b1fc9795c229ce32332b77a4b18d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Sonnenberger?= <joerg@NetBSD.org> +Date: Thu, 22 May 2014 00:15:36 +0200 +Subject: [PATCH] Fix tautology to the intended check. + +Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> +Signed-off-by: Thomas Klausner <wiz@NetBSD.org> +--- + handler.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/handler.c b/handler.c +index e61687e..87a928e 100644 +--- handler.c ++++ handler.c +@@ -320,7 +320,7 @@ SaveFormattedPage(Widget w, XEvent * event, String * params, + * If we are not active then take no action. + */ + +- if (man_globals->tempfile == NULL) ++ if (man_globals->tempfile[0] == '\0') + return; + + switch (params[0][0]) { +-- +2.2.0 +