Subject: pkg/32081: pkg_install-20051107 fails to install
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tonnerre@thundrix.ch>
List: pkgsrc-bugs
Date: 11/15/2005 19:50:01
>Number:         32081
>Category:       pkg
>Synopsis:       pkg_install-20051107 fails to install
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 15 19:50:00 +0000 2005
>Originator:     Tonnerre Lombard
>Release:        Kernel: NetBSD 3.0_RC1, Userland: 3.0_BETA
>Organization:
/chaos/control
>Environment:
NetBSD NettBSD.bofh.li 3.0_RC1 NetBSD 3.0_RC1 (OBRI) #6: Tue Nov 15 15:34:40 CET 2005  root@NettBSD.bofh.li:/usr/src/sys/arch/i386/compile/OBRI i386

>Description:
pkgsrc requires a new version of pkg_install (for the obvious reason), however, it doesn't succeed compiling because it lacks the rules to compile a certain file:

cc -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/var/db/pkg\" -DTAR_CMD=\""/bin/tar"\" -DFTP_CMD=\""/usr/bin/ftp"\" -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I. -O2 -c automatic.c
cc -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/var/db/pkg\" -DTAR_CMD=\""/bin/tar"\" -DFTP_CMD=\""/usr/bin/ftp"\" -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I. -O2 -c dewey.c
make: don't know how to make exec.o. Stop

Looking at the Makefile in pkg_install/lib, it seems that exec.o was removed but still turns up in the Makefile. Removing the entry in the Makefile fixes it.
>How-To-Repeat:
cd /usr/pkgsrc/pkgtools/pkg_install && make
>Fix:
--- pkgtools/pkg_install/files/lib/Makefile.in.orig     2005-11-15 20:43:41.000000000 +0100
+++ pkgtools/pkg_install/files/lib/Makefile.in  2005-11-15 20:43:52.000000000 +0100
@@ -16,7 +16,7 @@
 
 LIB=   libinstall.a
 
-OBJS=  automatic.o dewey.o exec.o fexec.o file.o ftpio.o global.o lpkg.o path.o pen.o \
+OBJS=  automatic.o dewey.o fexec.o file.o ftpio.o global.o lpkg.o path.o pen.o \
        pkgdb.o plist.o str.o var.o version.o
 
 all: $(LIB)