Subject: pkg/30259: x11/gtk2 build problem on DragonFly [patch]
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <joerg@leaf.dragonflybsd.org>
List: pkgsrc-bugs
Date: 05/17/2005 14:25:00
>Number:         30259
>Category:       pkg
>Synopsis:       x11/gtk2 build problem on DragonFly [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 17 14:25:00 +0000 2005
>Originator:     Jörg Sonnenberger
>Release:        pkgsrc-HEAD [DragonFly 1.3]
>Organization:
>Environment:
DragonFly britannica.bec.de 1.3.1-DEVELOPMENT DragonFly 1.3.1-DEVELOPMENT #15: Tue May 17 13:31:47 2005     joerg@britannica.bec.de:/home/joerg/wd/DragonFly/world/src/sys/compile/TURTLE  i386

>Description:
gtk2 doesn't build correctly on DragonFly because the local extern definition of errno conflicts with errno.h.
>How-To-Repeat:
build on dragonfly with system GCC 3.4.3
>Fix:
Index: x11/gtk2/distinfo
===================================================================
RCS file: /home/joerg/wd/repository/netbsd/pkgsrc/x11/gtk2/distinfo,v
retrieving revision 1.46
diff -u -r1.46 distinfo
--- x11/gtk2/distinfo   9 May 2005 04:29:16 -0000       1.46
+++ x11/gtk2/distinfo   14 May 2005 10:46:57 -0000
@@ -11,3 +11,4 @@
 SHA1 (patch-af) = 6797fd34be0a34368f6edede2321562678b112ff
 SHA1 (patch-ag) = dc4d72a39e426b880ca69ba8bc499fdaf42e0da8
 SHA1 (patch-ah) = 486d6601d6dba04830a8645c6a5791755e6538d9
+SHA1 (patch-ai) = 1beb44d31d959d221944c8013f0ce1892d97a504
Index: x11/gtk2/patches/patch-ai
===================================================================
RCS file: x11/gtk2/patches/patch-ai
diff -N x11/gtk2/patches/patch-ai
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ x11/gtk2/patches/patch-ai   14 May 2005 10:46:44 -0000
@@ -0,0 +1,11 @@
+--- gtk/xdgmime/xdgmimemagic.c.orig    2005-05-14 12:45:36.000000000 +0200
++++ gtk/xdgmime/xdgmimemagic.c 2005-05-14 12:45:43.000000000 +0200
+@@ -47,8 +47,6 @@
+ #define       TRUE    (!FALSE)
+ #endif
+ 
+-extern int errno;
+-
+ typedef struct XdgMimeMagicMatch XdgMimeMagicMatch;
+ typedef struct XdgMimeMagicMatchlet XdgMimeMagicMatchlet;
+