Subject: pkg/13187: x11/xneko tries to force install to X11BASE, even with xpkgwedge
To: None <gnats-bugs@gnats.netbsd.org>
From: None <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 06/13/2001 12:46:43
>Number: 13187
>Category: pkg
>Synopsis: x11/xneko tries to force install to X11BASE, even with xpkgwedge
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 13 10:45: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 x11/xneko tries to force itself to install in X11BASE, even if
xpkgwedge is installed. This fails due to the nonexistence of
X11BASE/man/cat6. (Even if said directory existed, package creation
would then fail because 'make package' would look in LOCALBASE.)
From bulk build:
make package (xneko-4.4)
===> Validating dependencies for xneko-4.4
=> Checksum OK for xneko.tar.gz.
===> Extracting for xneko-4.4
===> Required installed package xpkgwedge>=1.0: xpkgwedge-1.1 found
===> Patching for xneko-4.4
===> Applying NetBSD patches for xneko-4.4
===> Configuring for xneko-4.4
===> Building for xneko-4.4
cc -O2 -I/usr/X11R6/include -Werror -c xneko.c
cc -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/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o xneko xn
eko.o -L/usr/X11R6/lib -lX11 -lm
nroff -Tascii -mandoc xneko.6 > xneko.cat6
===> Installing for xneko-4.4
install -r -c -s -o bin -g wheel -m 755 xneko /usr/X11R6/bin/xneko
install -r -c -o root -g wheel -m 444 xneko.cat6 /usr/X11R6/man/cat6/xneko.0
install: /usr/X11R6/man/cat6: 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> xneko-4.4 was marked as broken:
-rw-r--r-- 1 root wheel 1887 Jun 7 14:05 .broken
>How-To-Repeat:
( cd x11/xneko && make install ) with xpkgwedge installed
>Fix:
Replace patch-aa with the new patch below, and rebuild distinfo.
(Note that this also removes the unnecessary overriding of BINOWN and
BINMODE. I don't know if the DPADD is really necessary, so I left it
there.)
$NetBSD: patch-aa,v 1.4 1998/08/07 11:18:25 agc Exp $
--- Makefile.orig Tue Jun 1 03:46:11 1993
+++ Makefile Thu May 28 10:08:17 1998
@@ -1,8 +1,15 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= xneko
-MAN6= xneko.0
-DPADD= ${LIBX} ${LIBM}
-LDADD= -lX11/X11 -lm
+MAN= xneko.6
+
+DPADD+= ${X11BASE}/lib/libX11.a ${LIBM}
+CFLAGS+= -I${X11BASE}/include
+LDADD+= -lX11 -lm
+
+MANDIR= ${PREFIX}/man
+MANINSTALL= catinstall maninstall
+
+BINDIR= ${PREFIX}/bin
.include <bsd.prog.mk>
>Release-Note:
>Audit-Trail:
>Unformatted: