<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>33527</bug_id>
          
          <creation_ts>2003-11-14 19:31 0000</creation_ts>
          <short_desc>apg 2.3.0b, permission problems in tarball</short_desc>
          <delta_ts>2003-11-17 04:21:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nbensa@gmail.com</reporter>
          <assigned_to>troy@tkdack.com</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>nbensa@gmail.com</who>
            <bug_when>2003-11-14 19:31:03 0000</bug_when>
            <thetext>Hello,

there&apos;s a problem in apg-2.3.0b.tar.gz. All files are chmod&apos;ed ugo-w and this is the result:

$ sudo emerge apg
Password:
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) app-admin/apg-2.3.0b to /
&gt;&gt;&gt; md5 src_uri ;-) apg-2.3.0b.tar.gz
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking apg-2.3.0b.tar.gz to /var/tmp/portage/apg-2.3.0b/work
&gt;&gt;&gt; Source unpacked.
cp: cannot create regular file `Makefile.orig&apos;: 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>troy@tkdack.com</who>
            <bug_when>2003-11-15 21:01:25 0000</bug_when>
            <thetext>I can&apos;t seem to duplicate this error.

However I&apos;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&apos;: 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&apos;t cause that to fail.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>troy@tkdack.com</who>
            <bug_when>2003-11-15 21:17:24 0000</bug_when>
            <thetext>Sorted!

This only seems to appear if you have
	FEATURES=&quot;userpriv&quot;
so that is why I couldn&apos;t reproduce it intially.

chmod added to src_unpack seems to have fixed it.

Committed to cvs, please test and let me know.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nbensa@gmail.com</who>
            <bug_when>2003-11-15 23:37:04 0000</bug_when>
            <thetext>Fixed. Thanks.
I think you can close this one.

Regards,
Norberto</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>troy@tkdack.com</who>
            <bug_when>2003-11-17 04:21:31 0000</bug_when>
            <thetext>Closing.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>