Subject: pkg/13222: wm/ion 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 19:10:47
>Number:         13222
>Category:       pkg
>Synopsis:       wm/ion 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 17:09: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 wm/ion 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:

[...]
cc binding.o client.o clientwin.o complete.o complete_file.o confws.o cursor.o d
raw.o edln.o event.o exec.o focus.o font.o frame.o frameid.o function.o key.o li
sting.o main.o obj.o pointer.o property.o query.o readconfig.o resize.o screen.o
 selection.o signal.o sizehint.o split.o thing.o wedln.o window.o winprops.o wor
kspace.o xic.o input.o wmessage.o splitmisc.o modules.o   -Wl,-R/usr/X11R6/lib -
L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X1
1R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib   -L../libtu -ltu -lm -L/usr/X11R6/lib
 -lX11  -export-dynamic -o ion
gmake[1]: Leaving directory `/var/pkgsrc.orig/wm/ion/work/ion-20010314/src'
sed 's#PREFIX#/usr/X11R6#g' man/ion.1x.in > man/ion.1
===> Installing for ion-20010314
set -e; for i in src; do gmake -C $i install; done
gmake[1]: Entering directory `/var/pkgsrc.orig/wm/ion/work/ion-20010314/src'
mkdir -p /usr/X11R6/bin
install -c -m 755 ion /usr/X11R6/bin
strip /usr/X11R6/bin/ion
gmake[1]: Leaving directory `/var/pkgsrc.orig/wm/ion/work/ion-20010314/src'
mkdir -p /usr/X11R6/bin
for i in scripts/ion-edit scripts/ion-man scripts/ion-runinxterm scripts/ion-ssh
 scripts/ion-view; do \
        install -c -m 755 $i /usr/X11R6/bin; \
done
mkdir -p /usr/X11R6/man/man1
install -c -m 664 man/ion.1 /usr/X11R6/man/man1
mkdir -p /usr/X11R6/share/doc/ion
for i in README LICENSE ChangeLog doc/config.txt doc/functions.txt; do \
        install -c -m 664 $i /usr/X11R6/share/doc/ion; \
done
mkdir -p /usr/X11R6/etc/ion
for i in etc/bindings-default.conf etc/bindings-sun.conf etc/kludges.conf etc/lo
ok-brownsteel.conf etc/look-greyviolet.conf etc/look-simpleblue.conf etc/look-wh
eat.conf etc/sample.conf; do \
        install -c -m 664 $i /usr/X11R6/etc/ion; \
done
Installing configuration file /usr/X11R6/etc/ion/ion.conf
ls: /usr/pkg/bin/ion: No such file or directory
ls: /usr/pkg/bin/ion-edit: No such file or directory
ls: /usr/pkg/bin/ion-man: No such file or directory
ls: /usr/pkg/bin/ion-runinxterm: No such file or directory
ls: /usr/pkg/bin/ion-ssh: No such file or directory
ls: /usr/pkg/bin/ion-view: No such file or directory
ls: /usr/pkg/etc/ion/bindings-default.conf: No such file or directory
ls: /usr/pkg/etc/ion/bindings-sun.conf: No such file or directory
ls: /usr/pkg/etc/ion/ion.conf: No such file or directory
ls: /usr/pkg/etc/ion/kludges.conf: No such file or directory
ls: /usr/pkg/etc/ion/look-brownsteel.conf: No such file or directory
ls: /usr/pkg/etc/ion/look-greyviolet.conf: No such file or directory
ls: /usr/pkg/etc/ion/look-simpleblue.conf: No such file or directory
ls: /usr/pkg/etc/ion/look-wheat.conf: No such file or directory
ls: /usr/pkg/etc/ion/sample.conf: No such file or directory
ls: /usr/pkg/man/man1/ion.1: No such file or directory
ls: /usr/pkg/share/doc/ion/ChangeLog: No such file or directory
ls: /usr/pkg/share/doc/ion/LICENSE: No such file or directory
ls: /usr/pkg/share/doc/ion/README: No such file or directory
ls: /usr/pkg/share/doc/ion/config.txt: No such file or directory
ls: /usr/pkg/share/doc/ion/functions.txt: No such file or directory
===> Registering installation for ion-20010314
pkg_create: can't stat `/usr/pkg/bin/ion'
pkg_create: can't stat `/usr/pkg/bin/ion-edit'
pkg_create: can't stat `/usr/pkg/bin/ion-man'
pkg_create: can't stat `/usr/pkg/bin/ion-runinxterm'
pkg_create: can't stat `/usr/pkg/bin/ion-ssh'
pkg_create: can't stat `/usr/pkg/bin/ion-view'
pkg_create: can't stat `/usr/pkg/etc/ion/bindings-default.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/bindings-sun.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/ion.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/kludges.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-brownsteel.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-greyviolet.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-simpleblue.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-wheat.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/sample.conf'
pkg_create: can't stat `/usr/pkg/man/man1/ion.1'
pkg_create: can't stat `/usr/pkg/share/doc/ion/ChangeLog'
pkg_create: can't stat `/usr/pkg/share/doc/ion/LICENSE'
pkg_create: can't stat `/usr/pkg/share/doc/ion/README'
pkg_create: can't stat `/usr/pkg/share/doc/ion/config.txt'
pkg_create: can't stat `/usr/pkg/share/doc/ion/functions.txt'
===> Building binary package for ion-20010314
pkg_create: can't stat `/usr/pkg/bin/ion'
pkg_create: can't stat `/usr/pkg/bin/ion-edit'
pkg_create: can't stat `/usr/pkg/bin/ion-man'
pkg_create: can't stat `/usr/pkg/bin/ion-runinxterm'
pkg_create: can't stat `/usr/pkg/bin/ion-ssh'
pkg_create: can't stat `/usr/pkg/bin/ion-view'
pkg_create: can't stat `/usr/pkg/etc/ion/bindings-default.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/bindings-sun.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/ion.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/kludges.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-brownsteel.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-greyviolet.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-simpleblue.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/look-wheat.conf'
pkg_create: can't stat `/usr/pkg/etc/ion/sample.conf'
pkg_create: can't stat `/usr/pkg/man/man1/ion.1'
pkg_create: can't stat `/usr/pkg/share/doc/ion/ChangeLog'
pkg_create: can't stat `/usr/pkg/share/doc/ion/LICENSE'
pkg_create: can't stat `/usr/pkg/share/doc/ion/README'
pkg_create: can't stat `/usr/pkg/share/doc/ion/config.txt'
pkg_create: can't stat `/usr/pkg/share/doc/ion/functions.txt'
tar: can't add file bin/ion : No such file or directory
tar: can't add file bin/ion-edit : No such file or directory
tar: can't add file bin/ion-man : No such file or directory
tar: can't add file bin/ion-runinxterm : No such file or directory
tar: can't add file bin/ion-ssh : No such file or directory
tar: can't add file bin/ion-view : No such file or directory
tar: can't add file etc/ion/bindings-default.conf : No such file or directory
tar: can't add file etc/ion/bindings-sun.conf : No such file or directory
tar: can't add file etc/ion/ion.conf : No such file or directory
tar: can't add file etc/ion/kludges.conf : No such file or directory
tar: can't add file etc/ion/look-brownsteel.conf : No such file or directory
tar: can't add file etc/ion/look-greyviolet.conf : No such file or directory
tar: can't add file etc/ion/look-simpleblue.conf : No such file or directory
tar: can't add file etc/ion/look-wheat.conf : No such file or directory
tar: can't add file etc/ion/sample.conf : No such file or directory
tar: can't add file man/man1/ion.1 : No such file or directory
tar: can't add file share/doc/ion/ChangeLog : No such file or directory
tar: can't add file share/doc/ion/LICENSE : No such file or directory
tar: can't add file share/doc/ion/README : No such file or directory
tar: can't add file share/doc/ion/config.txt : No such file or directory
tar: can't add file share/doc/ion/functions.txt : No such file or directory
pkg_create: tar command failed with code 5376
Creating package /nsource/packages/i386/1.5/All/ion-20010314.tgz
Registering depends:.
Using SrcDir value of /usr/pkg
Creating gzip'd tar ball in '/nsource/packages/i386/1.5/All/ion-20010314.tgz'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
BULK> ion-20010314 was marked as broken:
-rw-r--r--  1 root  wheel  27038 Jun  7 22:49 .broken

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

>Fix:
Replace patch-ab 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-ab,v 1.1.1.1 2001/04/22 13:32:28 zuntum Exp $

--- system.mk.orig	Mon Mar  5 17:16:01 2001
+++ system.mk
@@ -7,13 +7,13 @@
 ## Installation paths
 ##
 
-PREFIX=/usr/local
+#PREFIX=/usr/local
 
 # No need to modify these usually
 BINDIR=$(PREFIX)/bin
 ETCDIR=$(PREFIX)/etc
 MANDIR=$(PREFIX)/man
-DOCDIR=$(PREFIX)/doc
+DOCDIR=$(PREFIX)/share/doc
 # Not used
 INCDIR=$(PREFIX)/include
 LIBDIR=$(PREFIX)/lib
@@ -24,7 +24,7 @@
 ##
 
 #MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT
-MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl
+MODULE_SUPPORT_LDFLAGS=-export-dynamic
 
 
 ##
@@ -59,7 +59,6 @@
 ## C compiler
 ##
 
-CC=gcc
 
 # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
 # they're mainly for development use. So, if they cause trouble (not
@@ -86,8 +85,8 @@
 	-Wparentheses -pedantic-errors -Wuninitialized
 
 
-CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
-LDFLAGS=-g $(LIBS) $(EXTRA_LIBS)
+CFLAGS+=$(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES)
+LDFLAGS+=$(LIBS) $(EXTRA_LIBS)
 
 
 ##
@@ -112,9 +111,9 @@
 ##
 
 # Should work almost everywhere
-INSTALL=install
+#INSTALL=install
 # On a system with pure BSD install, -c might be preferred
-#INSTALL=install -c
+INSTALL=install -c
 
 INSTALLDIR=mkdir -p
 
>Release-Note:
>Audit-Trail:
>Unformatted: