ports/158666: x11/xcolors: Fix build with clang.
Guido Falsi
mad at madpilot.net
Tue Jul 5 10:30:14 UTC 2011
>Number: 158666
>Category: ports
>Synopsis: x11/xcolors: Fix build with clang.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 05 10:30:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Guido Falsi
>Release: FreeBSD 8.2-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Jun 6 20:10:31 CEST 2011 root at megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64
>Description:
Fix build with clang on 9-CURRENT.
Added file: files/patch-xcolors.c
>How-To-Repeat:
>Fix:
diff -ruN xcolors.old/files/patch-xcolors.c xcolors/files/patch-xcolors.c
--- xcolors.old/files/patch-xcolors.c 1970-01-01 01:00:00.000000000 +0100
+++ xcolors/files/patch-xcolors.c 2011-07-05 12:16:59.000000000 +0200
@@ -0,0 +1,11 @@
+--- xcolors.c.orig 1994-06-07 19:08:19.000000000 +0200
++++ xcolors.c 2011-07-05 12:16:57.000000000 +0200
+@@ -315,7 +315,7 @@
+ }
+ if (save_colorname[0] != '\0') /* skip first time through */
+ if (!do_color(parent, save_colorname))
+- return;
++ return 0;
+ prev_r = r;
+ prev_g = g;
+ prev_b = b;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list