Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438438 - =net-p2p/transmission-9999 - ACCESS DENIED mkdir: /usr/portage/distfiles
Summary: =net-p2p/transmission-9999 - ACCESS DENIED mkdir: /usr/portage/distfiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 05:48 UTC by Anthony Ryan
Modified: 2012-10-23 17:48 UTC (History)
2 users (show)

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 Anthony Ryan 2012-10-15 05:48:10 UTC
An access violation appears to occur if /usr/portage/distfiles does not exist.

Reproducible: Always

Steps to Reproduce:
1. Make sure /usr/portage/distfiles does not exist
2. emerge =net-p2p/transmission-9999
Actual Results:  
ACCESS DENIED  mkdir:        /usr/portage/distfiles
mkdir: cannot create directory ‘/usr/portage/distfiles’: Permission denied
 * ERROR: net-p2p/transmission-9999 failed (unpack phase):
 *   subversion: can't mkdir /usr/portage/distfiles/svn-src.
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 3422:  Called subversion_src_unpack
 *   environment, line 3708:  Called subversion_fetch
 *   environment, line 3575:  Called die
 * The specific snippet of code:
 *           mkdir -m 775 -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}.";
 * 
 * If you need support, post the output of `emerge --info '=net-p2p/transmission-9999'`,
 * the complete build log and the output of `emerge -pqv '=net-p2p/transmission-9999'`.
 * The complete build log is located at '/tmp/portage/net-p2p/transmission-9999/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/net-p2p/transmission-9999/temp/environment'.
 * Working directory: '/tmp/portage/net-p2p/transmission-9999/work'
 * S: '/tmp/portage/net-p2p/transmission-9999/work/transmission-9999'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-12668.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: distfiles
A: /usr/portage/distfiles
R: /usr/portage/distfiles
C: mkdir -m 775 -p /usr/portage/distfiles svn-src 
--------------------------------------------------------------------------------

>>> Failed to emerge net-p2p/transmission-9999, Log file:


Expected Results:  
/usr/portage/distfiles to be created.
Successful emerge.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-15 11:35:07 UTC
Looks slightly different here:

$ sudo ebuild transmission-9999.ebuild prepare
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
 * checking ebuild checksums ;-) ...                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                       [ ok ]
 * Adding group 'transmission' to your system ...
 *  - Groupid: next available
 * Adding user 'transmission' to your system ...
 *  - Userid: 128
 *  - Shell: /sbin/nologin
 *  - Home: /dev/null
 *  - Groups: transmission
 *  - GECOS: added by portage for transmission
>>> Unpacking source...
 * subversion check out start -->
 *      repository: svn://svn.transmissionbt.com/Transmission/trunk
mkdir: cannot create directory ‘transmission’: Permission denied
 * ERROR: net-p2p/transmission-9999 failed (unpack phase):
 *   subversion: can't mkdir transmission.
 * 
 * Call stack:
 *     ebuild.sh, line   89:  Called src_unpack
 *   environment, line 3449:  Called subversion_src_unpack
 *   environment, line 3735:  Called subversion_fetch
 *   environment, line 3625:  Called die
 * The specific snippet of code:
 *           mkdir -m 775 -p "${ESVN_PROJECT}" || die "${ESVN}: can't mkdir ${ESVN_PROJECT}.";
 * 
 * If you need support, post the output of `emerge --info '=net-p2p/transmission-9999'`,
 * the complete build log and the output of `emerge -pqv '=net-p2p/transmission-9999'`.
 * The complete build log is located at '/keeps/gentoo/emergelogs/wieneke/net-p2p:transmission-9999:20121015-113229.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-p2p/transmission-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/transmission-9999/temp/environment'.
 * Working directory: '/world/distfiles/svn-src'
 * S: '/var/tmp/portage/net-p2p/transmission-9999/work/transmission-9999'

It isn't obvious where it wants to put the "transmission" directory in this case.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-10-15 13:13:15 UTC
I guess someone changed the eclass, will punt the ebuild for 9999 asap
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-10-15 13:14:49 UTC
and it's gone

+  15 Oct 2012; Samuli Suominen <ssuominen@gentoo.org>
+  -files/transmission-2.51-fbsd.patch, -transmission-2.52.ebuild,
+  -transmission-9999.ebuild:
+  old
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-10-23 17:48:40 UTC
Anyone stumbling here:

I can restore 9999 if someone has a patch, otherwise I have no intrest in maintaining live version of transmission anymore -- I was doing so for a reason that doesn't exist anymore...