Subject: pkg/13221: games/xpilot 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 18:58:20
>Number:         13221
>Category:       pkg
>Synopsis:       games/xpilot 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 16:57: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/xpilot tries to force itself to install in X11BASE, even if
xpkgwedge is installed.  Package creation then fails because it looks in
LOCALBASE for the files.

From bulk build:

[...]
===> Installing for xpilot-4.1.0
installing in ./src...
installing in src/client...
install -c -s -m 0555 -o root -g wheel  xpilot /usr/X11R6/bin/xpilot
install in src/client done
installing in src/server...
install -c -s -m 0555 -o root -g wheel  xpilots /usr/X11R6/bin/xpilots
install in src/server done
installing in src/replay...
install -c -s -m 0555 -o root -g wheel  xp-replay /usr/X11R6/bin/xp-replay
install in src/replay done
installing in src/mapedit...
install -c -s -m 0555 -o root -g wheel  xp-mapedit /usr/X11R6/bin/xp-mapedit
install in src/mapedit done
install in src done
installing in ./lib...
+ mkdir -p /usr/X11R6/share/xpilot
install -c -m 0444 -o root -g wheel sounds /usr/X11R6/share/xpilot/sounds
install -c -m 0444 -o root -g wheel defaults /usr/X11R6/share/xpilot/defaults
install -c -m 0444 -o root -g wheel robots /usr/X11R6/share/xpilot/robots
installing in lib/maps...
+ mkdir -p /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel CAMD.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel blood-music2.xp /usr/X11R6/share/xpilot/ma
ps/
+ install -c -m 0444 -o root -g wheel cloudscape.xp /usr/X11R6/share/xpilot/maps
/
+ install -c -m 0444 -o root -g wheel default.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel doggy.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel fireball.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel fuzz.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel fuzz2.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel globe.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel grandprix.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel pad.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel pit.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel planetx.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel teamball.xp /usr/X11R6/share/xpilot/maps/
+ install -c -m 0444 -o root -g wheel tourmination.xp /usr/X11R6/share/xpilot/ma
ps/
+ install -c -m 0444 -o root -g wheel tournament.xp /usr/X11R6/share/xpilot/maps
/
+ install -c -m 0444 -o root -g wheel war.xp /usr/X11R6/share/xpilot/maps/
install in lib/maps done
installing in lib/textures...
+ mkdir -p /usr/X11R6/share/xpilot/textures/
+ install -c -m 0444 -o root -g wheel ball.xpm /usr/X11R6/share/xpilot/textures/
+ install -c -m 0444 -o root -g wheel metalite.xpm /usr/X11R6/share/xpilot/textu
res/
+ install -c -m 0444 -o root -g wheel moon.xpm /usr/X11R6/share/xpilot/textures/
+ install -c -m 0444 -o root -g wheel rock4.xpm /usr/X11R6/share/xpilot/textures
/
+ install -c -m 0444 -o root -g wheel volcanic.xpm /usr/X11R6/share/xpilot/textu
res/
install in lib/textures done
install in . done
installing man pages in ./doc...
installing man pages in doc/man/...
+ mkdir -p /usr/X11R6/man/cat6
install.man in doc/man/ done
install.man in doc done
install.man in . done
ls: /usr/pkg/bin/xp-mapedit: No such file or directory
ls: /usr/pkg/bin/xp-replay: No such file or directory
ls: /usr/pkg/bin/xpilot: No such file or directory
ls: /usr/pkg/bin/xpilots: No such file or directory
ls: /usr/pkg/man/cat6/xp-replay.0: No such file or directory
ls: /usr/pkg/man/cat6/xpilot.0: No such file or directory
ls: /usr/pkg/man/cat6/xpilots.0: No such file or directory
ls: /usr/pkg/share/xpilot/defaults: No such file or directory
ls: /usr/pkg/share/xpilot/maps/CAMD.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/blood-music2.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/cloudscape.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/default.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/doggy.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/fireball.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/fuzz.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/fuzz2.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/globe.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/grandprix.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/pad.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/pit.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/planetx.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/teamball.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/tourmination.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/tournament.xp: No such file or directory
ls: /usr/pkg/share/xpilot/maps/war.xp: No such file or directory
ls: /usr/pkg/share/xpilot/robots: No such file or directory
ls: /usr/pkg/share/xpilot/sounds: No such file or directory
ls: /usr/pkg/share/xpilot/textures/ball.xpm: No such file or directory
ls: /usr/pkg/share/xpilot/textures/metalite.xpm: No such file or directory
ls: /usr/pkg/share/xpilot/textures/moon.xpm: No such file or directory
ls: /usr/pkg/share/xpilot/textures/rock4.xpm: No such file or directory
ls: /usr/pkg/share/xpilot/textures/volcanic.xpm: No such file or directory
===> Registering installation for xpilot-4.1.0
pkg_create: can't stat `/usr/pkg/bin/xpilots'
pkg_create: can't stat `/usr/pkg/bin/xpilot'
pkg_create: can't stat `/usr/pkg/bin/xp-replay'
pkg_create: can't stat `/usr/pkg/bin/xp-mapedit'
pkg_create: can't stat `/usr/pkg/man/cat6/xpilot.0'
pkg_create: can't stat `/usr/pkg/man/cat6/xpilots.0'
pkg_create: can't stat `/usr/pkg/man/cat6/xp-replay.0'
pkg_create: can't stat `/usr/pkg/share/xpilot/sounds'
pkg_create: can't stat `/usr/pkg/share/xpilot/defaults'
pkg_create: can't stat `/usr/pkg/share/xpilot/robots'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/CAMD.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/blood-music2.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/cloudscape.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/default.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/doggy.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/fireball.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/fuzz.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/fuzz2.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/globe.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/grandprix.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/pad.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/pit.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/planetx.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/teamball.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/tourmination.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/tournament.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/war.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/ball.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/metalite.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/moon.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/rock4.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/volcanic.xpm'
===> Building binary package for xpilot-4.1.0
pkg_create: can't stat `/usr/pkg/bin/xpilots'
pkg_create: can't stat `/usr/pkg/bin/xpilot'
pkg_create: can't stat `/usr/pkg/bin/xp-replay'
pkg_create: can't stat `/usr/pkg/bin/xp-mapedit'
pkg_create: can't stat `/usr/pkg/man/cat6/xpilot.0'
pkg_create: can't stat `/usr/pkg/man/cat6/xpilots.0'
pkg_create: can't stat `/usr/pkg/man/cat6/xp-replay.0'
pkg_create: can't stat `/usr/pkg/share/xpilot/sounds'
pkg_create: can't stat `/usr/pkg/share/xpilot/defaults'
pkg_create: can't stat `/usr/pkg/share/xpilot/robots'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/CAMD.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/blood-music2.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/cloudscape.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/default.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/doggy.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/fireball.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/fuzz.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/fuzz2.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/globe.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/grandprix.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/pad.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/pit.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/planetx.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/teamball.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/tourmination.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/tournament.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/maps/war.xp'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/ball.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/metalite.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/moon.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/rock4.xpm'
pkg_create: can't stat `/usr/pkg/share/xpilot/textures/volcanic.xpm'
tar: can't add file bin/xpilots : No such file or directory
tar: can't add file bin/xpilot : No such file or directory
tar: can't add file bin/xp-replay : No such file or directory
tar: can't add file bin/xp-mapedit : No such file or directory
tar: can't add file man/cat6/xpilot.0 : No such file or directory
tar: can't add file man/cat6/xpilots.0 : No such file or directory
tar: can't add file man/cat6/xp-replay.0 : No such file or directory
tar: can't add file share/xpilot/sounds : No such file or directory
tar: can't add file share/xpilot/defaults : No such file or directory
tar: can't add file share/xpilot/robots : No such file or directory
tar: can't add file share/xpilot/maps/CAMD.xp : No such file or directory
tar: can't add file share/xpilot/maps/blood-music2.xp : No such file or director
y
tar: can't add file share/xpilot/maps/cloudscape.xp : No such file or directory
tar: can't add file share/xpilot/maps/default.xp : No such file or directory
tar: can't add file share/xpilot/maps/doggy.xp : No such file or directory
tar: can't add file share/xpilot/maps/fireball.xp : No such file or directory
tar: can't add file share/xpilot/maps/fuzz.xp : No such file or directory
tar: can't add file share/xpilot/maps/fuzz2.xp : No such file or directory
tar: can't add file share/xpilot/maps/globe.xp : No such file or directory
tar: can't add file share/xpilot/maps/grandprix.xp : No such file or directory
tar: can't add file share/xpilot/maps/pad.xp : No such file or directory
tar: can't add file share/xpilot/maps/pit.xp : No such file or directory
tar: can't add file share/xpilot/maps/planetx.xp : No such file or directory
tar: can't add file share/xpilot/maps/teamball.xp : No such file or directory
tar: can't add file share/xpilot/maps/tourmination.xp : No such file or director
y
tar: can't add file share/xpilot/maps/tournament.xp : No such file or directory
tar: can't add file share/xpilot/maps/war.xp : No such file or directory
tar: can't add file share/xpilot/textures/ball.xpm : No such file or directory
tar: can't add file share/xpilot/textures/metalite.xpm : No such file or directo
ry
tar: can't add file share/xpilot/textures/moon.xpm : No such file or directory
tar: can't add file share/xpilot/textures/rock4.xpm : No such file or directory
tar: can't add file share/xpilot/textures/volcanic.xpm : No such file or directo
ry
pkg_create: tar command failed with code 8192
Creating package /nsource/packages/i386/1.5/All/xpilot-4.1.0.tgz
Registering depends:.
Using SrcDir value of /usr/pkg
Creating gzip'd tar ball in '/nsource/packages/i386/1.5/All/xpilot-4.1.0.tgz'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
BULK> xpilot-4.1.0 was marked as broken:
-rw-r--r--  1 root  wheel  35899 Jun  7 17:48 .broken

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

>Fix:
Replace patch-aa with the new patch below, and rebuild distinfo.
(The change comments out the PREFIX line, letting the value passed in
by MAKE_ENV work.  The old patch set PREFIX to X11BASE.)

$NetBSD: patch-aa,v 1.4 1998/11/24 05:23:24 mycroft Exp $

--- Local.config.orig	Fri Oct 30 13:35:18 1998
+++ Local.config	Tue Nov 24 01:46:55 1998
@@ -25,12 +25,12 @@
 #define	LocalGuru xpilot@xpilot.org	/* The one to contact for problems */
 #endif /* LocalGuru */
 
-PREFIX = /usr/local/games
+/* PREFIX = /usr/local/games */
 
 /* Manual pages for games usually go to section 6. */
 MANSUFFIX = 6
-INSTMANDIR = $(PREFIX)/man/man$(MANSUFFIX)
-INSTLIBDIR = $(PREFIX)/lib/xpilot
+INSTMANDIR = $(PREFIX)/man/cat$(MANSUFFIX)
+INSTLIBDIR = $(PREFIX)/share/xpilot
 INSTBINDIR = $(PREFIX)/bin
 
 /* #define Log		/* Try to log every server start to log file */
@@ -91,8 +91,8 @@
  * CDEBUGFLAGS should specify optimalization or debug information (or both).
  * Try not defining anything first.
  */
-CDEBUGFLAGS = -g				/* General debug flag */
-/* CDEBUGFLAGS = -O				/* General optimize flag */
+/* CDEBUGFLAGS = -g				/* General debug flag */
+CDEBUGFLAGS = -O2				/* General optimize flag */
 /* CDEBUGFLAGS = -Ae +O3 +FPD			/* HP cc optimize flags (no +ESlit) */
 /* CDEBUGFLAGS = -Ae -g -z +w1			/* HP cc debug flags */
 /* CDEBUGFLAGS = -g2 -O2			/* SGI debug */
>Release-Note:
>Audit-Trail:
>Unformatted: