Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33527 - apg 2.3.0b, permission problems in tarball
Summary: apg 2.3.0b, permission problems in tarball
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Troy Dack
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-14 19:31 UTC by Norberto Bensa
Modified: 2003-11-17 04:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norberto Bensa 2003-11-14 19:31:03 UTC
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.
Comment 1 Troy Dack 2003-11-15 21:01:25 UTC
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.
Comment 2 Troy Dack 2003-11-15 21:17:24 UTC
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.
Comment 3 Norberto Bensa 2003-11-15 23:37:04 UTC
Fixed. Thanks.
I think you can close this one.

Regards,
Norberto
Comment 4 Troy Dack 2003-11-17 04:21:31 UTC
Closing.