Subject: pkg/6487: TIFF packages requires use of deprecated unix define
To: None <gnats-bugs@gnats.netbsd.org>
From: Johnny C. Lam <lamj@stat.cmu.edu>
List: netbsd-bugs
Date: 11/23/1998 15:09:16
>Number:         6487
>Category:       pkg
>Synopsis:       TIFF packages requires use of deprecated unix define
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 23 12:20:01 1998
>Last-Modified:
>Originator:     Johnny C. Lam
>Organization:
>Release:        1.3I
>Environment:
System: NetBSD mariposa 1.3I NetBSD 1.3I (MARIPOSA) #0: Fri Nov 20 12:28:58 EST 1998 kroot@mariposa:/usr/local/src/sys/arch/i386/compile/MARIPOSA i386

>Description:
	The TIFF package uses a configure script on UN*X systems which
builds a file calls "port.h" which contains arch-specific defines and
includes.  But it is conditionally included into files based on the
presence of the preprocessor variable "unix" or "__unix".  It looks
like "unix" is used to separate out UN*X systems from Win32 and
Macintosh systems.

>How-To-Repeat:
	Build TIFF package in /usr/pkgsrc/graphics/tiff

>Fix:
	I guess we define the unix symbol, it being the simplest and
smallest fix.

--- pkgsrc/tiff/Makefile.orig	Fri Aug 21 06:20:00 1998
+++ pkgsrc/tiff/Makefile	Mon Nov 23 15:00:42 1998
@@ -16,7 +16,7 @@
 HAS_CONFIGURE=		yes
 USE_LIBTOOL=		yes
 CONFIGURE_ARGS+=	--noninteractive --site ${FILESDIR}
-CONFIGURE_ENV+=		PREFIX=${PREFIX} GCOPTS=-O
+CONFIGURE_ENV+=		PREFIX=${PREFIX} GCOPTS="-O -Dunix"
 MAKE_ENV+=		INSTALL_MAN="${INSTALL_MAN}" LN="${LN}"
 
 .include "../../mk/bsd.pkg.mk"

>Audit-Trail:
>Unformatted: