Subject: pkg/5857: hp2xx pkgsrc bug fix
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-bugs
Date: 07/26/1998 14:35:46
>Number: 5857
>Category: pkg
>Synopsis: hp2xx pkgsrc bug fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 26 11:50:00 1998
>Last-Modified:
>Originator:
>Organization:
>Release: 1.3.2<NetBSD-current source date>
>Environment:
System: NetBSD ballast 1.3.2 NetBSD 1.3.2 (GENERIC) #0: Sun May 24 19:45:48 EDT 1998 perry@frankenstein.piermont.com:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
The hp2xx package which compiled on my NetBSD/mac68k-1.3 failed on a i386-1.3.2 at school. The makefile didn't correctly point to the X11R6 include directory for a header file.
>How-To-Repeat:
cd /usr/pkgsrc/graphics/hp2xx ; make
>Fix:
replace pkgsrc/graphics/hp2xx/patches/patch-ab with the attached diff.
Sorry for the screw up....
--- sources/Makefile.orig Mon Nov 15 16:47:49 1993
+++ sources/Makefile Sun Jul 26 14:27:50 1998
@@ -35,5 +35,5 @@
# Installation sites (GNU conventions):
#
-prefix = /usr/local
+prefix = ${PREFIX}
bindir = $(prefix)/bin
includedir = $(prefix)/include
@@ -48,6 +48,6 @@
CFLAGS = -O2 -Wall -ansi -fstrength-reduce -finline-functions
-LFLAGS = # only sometimes needed; see below for examples
-CPPFLAGS = -I. # only sometimes needed; see below for examples
+LFLAGS = -L${X11BASE}/lib # only sometimes needed; see below for examples
+CPPFLAGS = -I. -I${X11BASE}/include # only sometimes needed; see below for examples
BINDCMD = # only needed for EMX and DJGPP DOS extenders
@@ -280,14 +280,10 @@
install-bin: $(PROGRAM)
- -$(STRIP) $(PROGRAM)
- $(CP) $(PROGRAM) $(bindir)
- $(CHMOD) 755 $(bindir)/$(PROGRAM)
+ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(bindir)
install-info: hp2xx.info
- $(CP) hp2xx.info $(infodir)
- $(CHMOD) 644 $(infodir)/hp2xx.info
+ ${BSD_INSTALL_MAN} hp2xx.info $(infodir)
install-man: ../doc/hp2xx.1
- $(CP) ../doc/hp2xx.1 $(man1dir)
- $(CHMOD) 644 $(man1dir)/hp2xx.1
+ ${BSD_INSTALL_MAN} ../doc/hp2xx.1 $(man1dir)
>Audit-Trail:
>Unformatted: