Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 29379

Summary: emerge -u cracklib sandbox violation
Product: Gentoo Linux Reporter: chris Ellsworth <cke>
Component: [OLD] LibraryAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: major CC: pYrania
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description chris Ellsworth 2003-09-22 14:44:24 UTC
older system trying  to update it, and when doing a emerge -up portage it fails 
with a ACCESS VIOLATION SUMMARY, open_wr:   /usr/local/lib/pw_dict.pwd.

Reproducible: Always
Steps to Reproduce:
1. emerge -u cracklib
2.
3.

Actual Results:  
make[1]: Leaving directory `/var/tmp/portage/cracklib-2.7-r7/work/cracklib,2.7/u
til'

>>> Install cracklib-2.7-r7 into /var/tmp/portage/cracklib-2.7-r7/image/ categor
y sys-libs
( cd cracklib && make && exit $? )
make[1]: Entering directory `/var/tmp/portage/cracklib-2.7-r7/work/cracklib,2.7/
cracklib'
make[1]: `libcrack.a' is up to date.
make[1]: Leaving directory `/var/tmp/portage/cracklib-2.7-r7/work/cracklib,2.7/c
racklib'
( cd util && make DICTPATH="/usr/local/lib/pw_dict" && exit $? )
make[1]: Entering directory `/var/tmp/portage/cracklib-2.7-r7/work/cracklib,2.7/
util'
make[1]: `all' is up to date.
make[1]: Leaving directory `/var/tmp/portage/cracklib-2.7-r7/work/cracklib,2.7/u
til'
if "sort" dies from lack of space, see "util/mkdict"
util/mkdict /usr/dict/words | util/packer "/usr/local/lib/pw_dict"
ACCESS DENIED  open_wr:   /usr/local/lib/pw_dict.pwd
/usr/local/lib/pw_dict.pwd: Permission denied
/usr/local/lib/pw_dict: Permission denied
cat: /usr/dict/words: No such file or directory
make: *** [install] Error 255

!!! ERROR: sys-libs/cracklib-2.7-r7 failed.
!!! Function src_install, Line -41, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------

LOG FILE = "/tmp/sandbox-cracklib-2.7-r7-6422.log"

open_wr:   /usr/local/lib/pw_dict.pwd
--------------------------------------------------------------------------------

Expected Results:  
for Cracklib to build successfully

Portage 2.0.44 (default-x86-1.4, gcc-3.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
USE="x86 apm crypt foomaticdb gpm libg++ libwww mad mmx ncurses nls pdflib png q
t sdl spell svga truetype X xml2 zlib directfb gdbm berkdb slang readline tcpd p
am ssl python -oss -3dnow -arts -avi -cups -encode -gtk -imlib -java -jpeg -gif
-kde -gnome -mikmod -motif -mpeg -oggvorbis -opengl -quicktime -x -xmms -xv doc
perl sse fbcon"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CXXFLAGS="-march=pentium4 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-24 18:33:52 UTC
I can't reproduce this,
my FEATURES is "autoaddcvs buildpkg ccache digest cvs sandbox".
(you didn't specify yours).
Comment 2 chris Ellsworth 2003-09-25 14:14:06 UTC
I checked again it does not show up when i do a emerge info but cating the
make.globals it is 
FEATURES="sandbox ccache"
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-25 16:46:36 UTC
could you please specify what FEATURES is set to in make.conf as well?

also, please try upgrading portage then try cracklib again.
Comment 4 chris Ellsworth 2003-09-26 11:34:05 UTC
The make.conf does not list anything for FEATURES,
To update portage i need 2 first update the cracklib 
These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild    U ] sys-libs/cracklib-2.7-r7
[ebuild    U ] sys-libs/zlib-1.1.4-r1
[ebuild    U ] sys-devel/gcc-3.2.3-r1
[ebuild    U ] sys-devel/automake-1.7.5-r2
[ebuild    U ] sys-libs/pam-0.75-r11
[ebuild    U ] sys-apps/shadow-4.0.3-r6
[ebuild    U ] sys-apps/pam-login-3.11
[ebuild    U ] sys-apps/util-linux-2.11z-r6
[ebuild    U ] sys-apps/baselayout-1.8.6.10-r1
[ebuild    U ] sys-libs/glibc-2.3.2-r1
[ebuild    U ] sys-apps/sed-4.0.7
[ebuild    U ] dev-python/python-fchksum-1.6.1-r1
[ebuild  N   ] sys-apps/coreutils-5.0-r3
[ebuild    U ] sys-apps/debianutils-1.16.7-r3
[ebuild    U ] app-shells/bash-2.05b-r5
[ebuild  N   ] dev-python/python-docs-2.2.3
[ebuild    U ] sys-libs/readline-4.3-r4
[ebuild    U ] dev-libs/expat-1.95.6-r1
[ebuild    U ] dev-lang/python-2.2.3-r1
[ebuild    U ] sys-apps/portage-2.0.49-r3
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 16:37:22 UTC
Your copy runs:
if "sort" dies from lack of space, see "util/mkdict"
util/mkdict /usr/dict/words | util/packer "/usr/local/lib/pw_dict"

Mine runs:
if "sort" dies from lack of space, see "util/mkdict"
util/mkdict /usr/share/dict/words /usr/share/dict/extra.words | LD_LIBRARY_PATH=cracklib
util/packer /var/tmp/portage/cracklib-2.7-r7/image/"/usr/lib/cracklib_dict"

So it looks like your copy did NOT apply the patches in files/

I've made a minor change to the ebuild, so please sync it in a bit (you should
get 1.19 of cracklib-2.7-r7.ebuild), and try again.
Comment 6 chris Ellsworth 2003-09-26 21:20:37 UTC
ok did a "emerge portage" instead of  "emerge -u portage" (a mistake( which
was able to get portage updated then i was able to correctly emerge cracklib,
im going back through and now updateing the system
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 21:50:31 UTC
ok thanks.