Bug 33527 - apg 2.3.0b, permission problems in tarball
|
Bug#:
33527
|
Product: Gentoo Linux
|
Version: 1.4
|
Platform: All
|
|
OS/Version: All
|
Status: CLOSED
|
Severity: normal
|
Priority: P2
|
|
Resolution: TEST-REQUEST
|
Assigned To: troy@tkdack.com
|
Reported By: nbensa@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: apg 2.3.0b, permission problems in tarball
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-11-14 19:31 0000
|
Hello,
there's a problem in apg-2.3.0b.tar.gz. All files are chmod'ed ugo-w and this is the result:
$ sudo emerge apg
Password:
Calculating dependencies ...done!
>>> emerge (1 of 1) app-admin/apg-2.3.0b to /
>>> md5 src_uri ;-) apg-2.3.0b.tar.gz
>>> Unpacking source...
>>> Unpacking apg-2.3.0b.tar.gz to /var/tmp/portage/apg-2.3.0b/work
>>> Source unpacked.
cp: cannot create regular file `Makefile.orig': Permission denied
/usr/sbin/ebuild.sh: line 18: Makefile: Permission denied
gcc -Wall -DAPG_USE_CRYPT -o apg bloom.c ./sha/sha.c ./cast/cast.c rnd.c pronpass.c randpass.c restrict.c errors.c apg.c getopt.c convert.c -lm -lcrypt
gcc -DAPGBFM -o apgbfm apgbfm.c bloom.c sha/sha.c errors.c getopt.c convert.c -lm
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2/../../../../i586-pc-linux-gnu/bin/ld: cannot open output file apgbfm: Permission denied
collect2: ld returned 1 exit status
make: *** [apgbfm] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.2/../../../../i586-pc-linux-gnu/bin/ld: cannot open output file apg: Permission denied
collect2: ld returned 1 exit status
make: *** [apg] Error 1
!!! ERROR: app-admin/apg-2.3.0b failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! compile problem
Perhaps a chmod -R +w ${S} in src_unpack() could do the trick.
I can't seem to duplicate this error.
However I've fixed the sed statement in the ebuild that was incorrect because the make file has changed.
It looks like it could be something a little more than just the tar ball permissions.
cp: cannot create regular file `Makefile.orig': Permission denied
/usr/sbin/ebuild.sh: line 18: Makefile: Permission denied
That is just a simple copy of the Makefile to Makefile.orig, tar ball permissions shouldn't cause that to fail.
Sorted!
This only seems to appear if you have
FEATURES="userpriv"
so that is why I couldn't reproduce it intially.
chmod added to src_unpack seems to have fixed it.
Committed to cvs, please test and let me know.
Fixed. Thanks.
I think you can close this one.
Regards,
Norberto