Subject: pkg/18461: www/netscape7 package does not install correctly
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/29/2002 19:43:33
>Number:         18461
>Category:       pkg
>Synopsis:       www/netscape7 package does not install correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 29 02:45:00 PDT 2002
>Originator:     grant beattie
>Release:        NetBSD 1.6I
System: NetBSD mofo 1.6I NetBSD 1.6I (GENERIC) #0: Sat Sep 28 14:58:16 EST 2002 root@mofo:/raid0/netbsd/current/20020928/i386/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
I attempted to install www/netscape7 on NetBSD-current/i386, but it
breaks during the install phase:

> make install
===> Installing for netscape7-0
===> Becoming root@mofo to install netscape7-0.
sudo install -d -o root -g wheel -m 555 /usr/pkg/lib/netscape/netscape7
cd /usr/tmp/www/netscape7/work.NetBSD-1.6I-i386/netscape-installer/dest && /bin/pax -rw . /usr/pkg/lib/netscape/netscape7
install -c -o root -g wheel -m 555 /usr/tmp/www/netscape7/work.NetBSD-1.6I-i386/netscape7 /usr/pkg/bin
/bin/chmod 755 /usr/pkg/bin/netscape7
cd /usr/pkg/emul/linux//usr/tmp/www/netscape7/work.NetBSD-1.6I-i386/netscape-installer/dest && /bin/pax -rw . /usr/pkg/lib/netscape/netscape7
cd: can't cd to /usr/pkg/emul/linux//usr/tmp/www/netscape7/work.NetBSD-1.6I-i386/netscape-installer/dest
*** Error code 2

It also breaks if you run 'make install' without first running 'make',
since Netscape 7 is started but the installer exits. This causes
pax to complain that files have changed underneath it.

Perhaps it would be useful to use the full Netscape 7 distfile rather
than the installer stub? "building" this package several times meant
downloading the install files several times. It is, however, quite a bit
larger, so it might be worth giving the user a choice via a variable

The full installer is at:

see above.
This fixes it for me:

Index: Makefile.NetBSD.i386
RCS file: /cvsroot/pkgsrc/www/netscape7/Makefile.NetBSD.i386,v
retrieving revision 1.2
diff -u -r1.2 Makefile.NetBSD.i386
--- Makefile.NetBSD.i386	2002/09/20 13:54:53	1.2
+++ Makefile.NetBSD.i386	2002/09/29 09:22:31
@@ -7,7 +7,7 @@
 DEPENDS+=		suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
 DEPENDS+=		suse_gtk>=7.3:../../emulators/${SUSE_DIR_PREFIX}_gtk
-INSTDIR=		${PREFIX}/emul/linux/${WRKSRC}/dest
 HAS_MSG=		yes