Subject: pkg/13220: games/xzip forces install into X11BASE, even with xpkgwedge
To: None <gnats-bugs@gnats.netbsd.org>
From: None <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 06/15/2001 17:57:38
>Number:         13220
>Category:       pkg
>Synopsis:       games/xzip forces install into X11BASE, even with xpkgwedge
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 15:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Darrow
>Release:        NetBSD/i386 1.5.1_BETA2 20010602; pkgsrc 20010607
>Organization:
Computing Services, Wheaton College, Wheaton, IL
>Environment:
NetBSD rebekah.wheaton.edu 1.5.1_BETA2 NetBSD 1.5.1_BETA2 (REBEKAH) #0: Thu Jun  7 06:19:18 CDT 2001     jdarrow@michal.wheaton.edu:/var/src/sys/arch/i386/compile/REBEKAH i386


>Description:
Package games/xzip tries to force itself to install in X11BASE, even if
xpkgwedge is installed.  This fails due to the nonexistence of
X11BASE/man/man6.  (Even if said directory existed, package creation
would then fail because 'make package' would look in LOCALBASE.)

From bulk build:

[...]
===> Installing for xzip-1.8
install -c -s -o root -g wheel -m 555 xzip /usr/X11R6/bin
install -c -o root -g wheel -m 444 xzip.1 /usr/X11R6/man/man6/xzip.6
install: /usr/X11R6/man/man6/xzip.6: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
BULK> xzip-1.8 was marked as broken:
-rw-r--r--  1 root  wheel  6283 Jun  7 17:45 .broken

>How-To-Repeat:
( cd games/xzip && make install ) with xpkgwedge installed

>Fix:
Replace patch-aa with the new patch below, and rebuild distinfo.
(The change simply replaces X11BASE with PREFIX in the DESTDIR line.)

$NetBSD: patch-aa,v 1.1 1998/08/10 22:27:46 tron Exp $

--- Makefile.orig	Sun Jul 12 00:27:32 1998
+++ Makefile	Tue Aug 11 00:14:31 1998
@@ -57,15 +57,15 @@
 #SYSTEMFLAGS = -DBIG_END_MODE
 
 # definitions for some arbitrary little-endian system
-#SYSTEMFLAGS = -DLITTLE_END_MODE
+SYSTEMFLAGS = -DAUTO_END_MODE
 
 # --------------------
 
 # definitions for where the X lib and include directories are.
 # The following are defaults that might work.
 
-XINCLUDE = /usr/include/X11
-XLIB = /usr/lib/X11
+XINCLUDE = $(X11BASE)/include
+XLIB = $(X11BASE)/lib
 
 # If your compiler can't find these things, try commenting out the
 # above, and uncommenting various versions below. Also look around
@@ -90,12 +90,12 @@
 # --------------------
 
 # definition for where to install xzip executable and man page
-DESTDIR = /usr/local
+DESTDIR = $(PREFIX)
 
 # --------------------
 
 CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
-LDFLAGS =
+LDFLAGS = -Wl,-R$(X11BASE)/lib 
 LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
 
 # definitions for the default fonts. Users can override these with X resources.
@@ -152,8 +152,8 @@
 	$(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
 
 install: $(PROGRAM)
-	install -s $(PROGRAM) $(DESTDIR)/bin
-	install $(PROGRAM).1 $(DESTDIR)/man/man1
+	${BSD_INSTALL_PROGRAM} $(PROGRAM) $(DESTDIR)/bin
+	${BSD_INSTALL_MAN} $(PROGRAM).1 $(DESTDIR)/man/man6/$(PROGRAM).6
 
 clean :
 	-rm -f *~ *.o $(PROGRAM) test
>Release-Note:
>Audit-Trail:
>Unformatted: