Subject: pkg/29633: firefox 1.01 - "make install" writes outside pkg tree
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <mwicks@kettering.edu>
List: pkgsrc-bugs
Date: 03/08/2005 20:18:00
>Number: 29633
>Category: pkg
>Synopsis: firefox 1.01 - "make install" writes outside pkg tree
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 08 20:18:00 +0000 2005
>Originator: Mark A. Wicks
>Release: NetBSD 2.99.16
>Organization:
Kettering University
>Environment:
System: NetBSD gaspra.kettering.edu 2.99.16 NetBSD 2.99.16 (GASPRA) #4: Sun Mar 6 01:01:59 EST 2005 mwicks@gaspra.kettering.edu:/usr2/src/sys/arch/i386/compile/obj/GASPRA i386
Architecture: i386
Machine: i386
>Description:
The "install" target of the current version of the firefox package (1.01 after 3/1/05)
tries to write outside the pkg/pkgsrc tree. This causes package builds of firefox
from a sandbox to fail. The last version prior to 2/28/05 worked fine. The last
version prior to 2/28/05 worked fine. Here's the error message:
/usr/bin/env HOME="/usr/pkgsrc/www/firefox/work" MOZ_INSTALL_LIB="install -c -s -o root -g wheel -m 555" OBJECT_FMT=ELF PLIST_SRC=/usr/pkgsrc/www/firefox/PLIST SED=/usr/bin/sed RM=/bin/rm EGREP=/usr/bin/egrep CHOWN=/usr/sbin/chown CHGRP=/usr/bin/chgrp CHMOD=/bin/chmod BINOWN=root BINGRP=wheel BINMODE=555 SETENV=/usr/bin/env MOZILLA=firefox MOZILLA_BIN=firefox-bin SO_SUFFIX=so SUNOSLIB="@comment " CC=cc CFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/X11R6/include\ -I/usr/pkg/include/freetype2 CPPFLAGS=\ \ -I/usr/pkg/include\ -I/usr/include\ -I/usr/X11R6/include\ -I/usr/pkg/include/freetype2 CXX=c++ CXXFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/X11R6/include\ -I/usr/pkg/include/freetype2 COMPILER_RPATH_FLAG=-Wl,-R F77= FC=f77 FFLAGS=-O LDFLAGS=\ -Wl,-R/usr/pkg/lib/firefox\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ -L/usr/X11R6/lib\ -Wl,-R/usr/X11R6/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/www/firefox/work/.wrapper/bin:/usr/pkgsrc/www/fi
r!
efox/work/.buildlink/bin:/usr/pkgsrc/www/firefox/work/.tools/bin:/usr/pkgsrc/www/firefox/work/.gcc/bin:/usr/pkg/bin:/home/mwicks/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/X11R6/bin PREFIX=/usr/pkg PKG_SYSCONFDIR=/usr/pkg/etc _PKGSRCDIR=/usr/pkgsrc CURDIR=/usr/pkgsrc/www/firefox DEPENDS=\ freetype2\>=2.1.9nb1:../../graphics/freetype2\ jpeg\>=6bnb2:../../graphics/jpeg\ png\>=1.2.6nb1:../../graphics/png\ libIDL\>=0.8.4nb1:../../net/libIDL\ gtk2+\>=2.6.0nb1:../../x11/gtk2\ Xft2\>=2.1.6nb1:../../fonts/Xft2 DISTDIR=/usr/pkgsrc/distfiles FILESDIR="../../www/mozilla/files" LOCALBASE=/usr/pkg PATCHDIR=/usr/pkgsrc/www/firefox/../../www/firefox/patches PKGSRCDIR=/usr/pkgsrc SCRIPTDIR=/usr/pkgsrc/www/firefox/scripts VIEWBASE=/usr/pkg WRKDIR=/usr/pkgsrc/www/firefox/work WRKSRC=/usr/pkgsrc/www/firefox/work/mozilla X11BASE=/usr/X11R6 BSD_INSTALL_PROGRAM="install -c -s -o root -g wheel -m 555" BS
D!
_INSTALL_SCRIPT="install -c -o root -g wheel -m 555" B!
SD_INSTA
LL_LIB="install -c -o root -g wheel -m 555" BSD_INSTALL_DATA="install -c -o root -g wheel -m 644" BSD_INSTALL_MAN="install -c -o root -g wheel -m 444" BSD_INSTALL="install" BSD_INSTALL_PROGRAM_DIR="install -d -o root -g wheel -m 755" BSD_INSTALL_SCRIPT_DIR="install -d -o root -g wheel -m 755" BSD_INSTALL_LIB_DIR="install -d -o root -g wheel -m 755" BSD_INSTALL_DATA_DIR="install -d -o root -g wheel -m 755" BSD_INSTALL_MAN_DIR="install -d -o root -g wheel -m 755" BSD_INSTALL_GAME="install -c -s -o root -g wheel -m 555" BSD_INSTALL_GAME_DATA="install -c -o root -g wheel -m 644" WRAPPER_DEBUG="yes" /bin/sh "../../www/mozilla/files"/moz-install
(Gecko:6119): libgnomevfs-WARNING **: Unable to create ~/.gnome directory: No such file or directory
Could not create per-user gnome configuration directory `/root/.gnome2/': No such file or directory
cd /usr/pkg/lib/firefox && /usr/bin/env LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. HOME=/usr/pkgsrc/www/firefox/work/mozilla ./firefox-bin -register
(Gecko:1493): libgnomevfs-WARNING **: Unable to create ~/.gnome directory: No such file or directory
Could not create per-user gnome configuration directory `/root/.gnome2/': No such file or directory
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/www/firefox
*** Error code 1
>How-To-Repeat:
Create a sandbox and try to build firefox:
mkdir /usr/sandbox
/usr/pkgsrc/mk/bulk/mksandbox /usr/sandbox
cd /usr/sandbox
./sandbox
cd /usr/pkgsrc/www/firefox
make install
>Fix:
I don't have one...