Subject: pkg/30263: graphics/netpbm 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 15:44:00
>Number:         30263
>Category:       pkg
>Synopsis:       graphics/netpbm build problem on DragonFly [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 17 15:44: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:
extern int errno; conflicts with errno.h on DragonFly, remove it.

The code for NO_OPEN_FILES should be checked separately, most likely can the system popen be used instead.
>How-To-Repeat:
build on DragonFly.
>Fix:
Index: graphics/netpbm/patches/patch-af
===================================================================
RCS file: graphics/netpbm/patches/patch-af
diff -N graphics/netpbm/patches/patch-af
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ graphics/netpbm/patches/patch-af    14 May 2005 13:18:13 -0000
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- urt/rle_open_f.c.orig      2005-01-01 05:03:50.000000000 +0100
++++ urt/rle_open_f.c   2005-05-14 15:17:49.000000000 +0200
+@@ -35,7 +35,6 @@
+     int thepid = 0;
+     int pipefd[2];
+     int i;
+-    extern int errno;
+ 
+     /* Check args. */
+     if ( *mode != 'r' && *mode != 'w' )