Subject: pkg/24581: graphics/png has a strange (and not needed) way to inform the user about setjmp.h on Linux
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 02/27/2004 18:06:09
>Number: 24581
>Category: pkg
>Synopsis: graphics/png has a strange (and not needed) way to inform the user about setjmp.h on Linux
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Feb 27 18:07:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Michal Pasternak
>Release: N/A
>Organization:
>Environment:
Slackware 9.1 (Linux 2.4.24)
>Description:
Look for line containing "__don" in ${PREFIX}/include/pngconf.h
While compiling graphics/libwmf, this breaks the build on Linux.
When commented out, libwmf builds okay.
>How-To-Repeat:
Obvious.
>Fix:
Patch it nicely. I think, that this "__don't" thingy was made for some
very old Linux systems.
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/png/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- distinfo 20 Dec 2002 17:54:27 -0000 1.13
+++ distinfo 27 Feb 2004 17:59:59 -0000
@@ -5,3 +5,4 @@
SHA1 (patch-aa) = 6cc8354eccd61a4355d64ca456dc950f379701ad
SHA1 (patch-ab) = be7dc4a3e21c0056a913c5f1488528558024e6ea
SHA1 (patch-ac) = 96e42c626b9aec1f2d68f920f147463ca77da27c
+SHA1 (patch-ad) = 07513e44d85939ca20fa9c0d9f571d9850dd9cb2
cvs diff: Diffing patches
Index: patches/patch-ad
===================================================================
RCS file: patches/patch-ad
diff -N patches/patch-ad
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-ad 27 Feb 2004 18:03:34 -0000
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- pngconf.h.orig Fri Feb 27 18:57:26 2004
++++ pngconf.h
+@@ -252,8 +252,8 @@
+ # undef _BSD_SOURCE
+ # endif
+ # ifdef _SETJMP_H
+- __png.h__ already includes setjmp.h;
+- __dont__ include it again.;
++#warning __png.h__ already includes setjmp.h;
++#warning __dont__ include it again.;
+ # endif
+ # endif /* __linux__ */
+
>Release-Note:
>Audit-Trail:
>Unformatted: