Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699616 - net-p2p/transmission on Gentoo Prefix: installation with Prefix cannot handle `diropts` during src_install()
Summary: net-p2p/transmission on Gentoo Prefix: installation with Prefix cannot handle...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-11-08 14:22 UTC by ZongyuZ
Modified: 2019-11-13 15:20 UTC (History)
0 users

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


Attachments
the patch which helps me install transmission (transmission-2.94-prefix.ebuild.patch,332 bytes, patch)
2019-11-08 14:22 UTC, ZongyuZ
Details | Diff
the output of `emerge --info net-p2p/transmission` (transmission-info.txt,5.75 KB, text/plain)
2019-11-08 14:22 UTC, ZongyuZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZongyuZ 2019-11-08 14:22:03 UTC
Created attachment 595436 [details, diff]
the patch which helps me install transmission

The ebuild of net-p2p/transmission uses the command below during src_install():

```
diropts -o transmission -g transmission
keepdir /var/lib/transmission
```

But it cannot be done by Gentoo Prefix, so the installation will failed.

To complete the installation, I checked ${EUID} by "[[ ${EUID} == 0 ]]" before executing `diropts` command. The patch is attached as a file.
Comment 1 ZongyuZ 2019-11-08 14:22:41 UTC
Created attachment 595438 [details]
the output of `emerge --info net-p2p/transmission`
Comment 2 Larry the Git Cow gentoo-dev 2019-11-13 15:20:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac

commit 8ba6fc4ede27b84788115dbe9bd9dfa42e4b08ac
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-11-13 15:20:34 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-11-13 15:20:34 +0000

    net-p2p/transmission: skip diropts when not running as root
    
    Closes: https://bugs.gentoo.org/699616
    Package-Manager: Portage-2.3.78_p18, Repoman-2.3.17_p114
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-p2p/transmission/transmission-2.94-r1.ebuild | 4 +++-
 net-p2p/transmission/transmission-9999.ebuild    | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)