Subject: pkg/13219: time/dclock 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:41:35
>Number:         13219
>Category:       pkg
>Synopsis:       time/dclock 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:40: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 time/dclock tries to force itself to install in X11BASE, even if
xpkgwedge is installed.  This fails due to the nonexistence of
X11BASE/man/man1.  (Even if said directory existed, package creation
would then fail because 'make package would look in LOCALBASE.)

From bulk build:

[...]
===> Installing for dclock-4
install -c -s -o root -g wheel -m 555 dclock /usr/X11R6/bin
install -c -o root -g wheel -m 444 dclock.man /usr/X11R6/man/man1/dclock.1
install: /usr/X11R6/man/man1/dclock.1: 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> dclock-4 was marked as broken:
-rw-r--r--  1 root  wheel  2265 Jun  7 14:51 .broken


>How-To-Repeat:
( cd time/dclock && 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 INSTALL lines.)

$NetBSD: patch-aa,v 1.1.1.1 2000/12/17 23:32:16 wiz Exp $

--- Makefile.orig	Wed Oct 20 11:40:45 1999
+++ Makefile	Wed Oct 20 11:43:33 1999
@@ -3,12 +3,25 @@
 OBJS= Dclock.o dclock.o
 HFILES= Dclock.h DclockP.h patchlevel.h
 
-CFLAGS= -O
-LDFLAGS= 
+CFLAGS= -O -I$(X11BASE)/include
+LDFLAGS= -L$(X11BASE)/lib -Wl,-R$(X11BASE)/lib
 LIBS= -lXt -lX11
 
+# Make this link properly on Solaris
+OPSYS!= uname -s
+
+.if ${OPSYS} == "SunOS"
+LIBS+= -lSM -lICE -lsocket -lnsl
+.endif
+
+all: dclock
+
 dclock: ${OBJS}
-	cc ${LDFLAGS} ${OBJS} ${LIBS} -o dclock
+	${CC} ${LDFLAGS} ${OBJS} ${LIBS} -o dclock
+
+install: dclock
+	${BSD_INSTALL_PROGRAM} dclock $(PREFIX)/bin
+	${BSD_INSTALL_MAN} dclock.man $(PREFIX)/man/man1/dclock.1
 
 clean: ; rm -f ${OBJS} core dclock
 
>Release-Note:
>Audit-Trail:
>Unformatted: