Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705746 - net-vpn/i2p-0.9.44-r1 First time install creates certain files with wrong permissions
Summary: net-vpn/i2p-0.9.44-r1 First time install creates certain files with wrong per...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: tharvik
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-01-18 17:58 UTC by redcap
Modified: 2020-01-29 06:14 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info,5.56 KB, text/plain)
2020-01-18 17:58 UTC, redcap
Details

Note You need to log in before you can comment on or make changes to this bug.
Description redcap 2020-01-18 17:58:38 UTC
Created attachment 603678 [details]
emerge --info

To reproduce:

1. Unmerge i2p if neccessary.
2. Remove /var/lib/i2p directory if it exists
3. Emerge net-vpn/i2p-9.44-r1

Results:

/var/lib/i2p is created with i2p:i2p ownership, but the files inside are created with root:root ownership.

This prevents the 2ip daemon from starting up correctly. On my machine /var/log/i2p/wrapper got flooded with te following critical error:

2020/01/18 18:51:45 | CRIT  [JobQueue 1/1] er.startup.CreateRouterInfoJob: Error writing out the new router information
2020/01/18 18:51:45 | java.io.FileNotFoundException: /var/lib/i2p/router/router.info (Permission denied)
2020/01/18 18:51:45 |   at java.io.FileOutputStream.open0(Native Method)
2020/01/18 18:51:45 |   at java.io.FileOutputStream.open(FileOutputStream.java:270)
2020/01/18 18:51:45 |   at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2020/01/18 18:51:45 |   at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2020/01/18 18:51:45 |   at net.i2p.util.SecureFileOutputStream.<init>(SecureFileOutputStream.java:41)
2020/01/18 18:51:45 |   at net.i2p.router.startup.CreateRouterInfoJob.createRouterInfo(CreateRouterInfoJob.java:146)
2020/01/18 18:51:45 |   at net.i2p.router.startup.RebuildRouterInfoJob.rebuildRouterInfo(RebuildRouterInfoJob.java:156)
2020/01/18 18:51:45 |   at net.i2p.router.startup.LoadRouterInfoJob.runJob(LoadRouterInfoJob.java:60)
2020/01/18 18:51:45 |   at net.i2p.router.JobQueueRunner.runCurrentJob(JobQueueRunner.java:110)
2020/01/18 18:51:45 |   at net.i2p.router.JobQueueRunner.run(JobQueueRunner.java:66)
Comment 1 Larry the Git Cow gentoo-dev 2020-01-29 06:14:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b17c7258dd2586022f9c5551d502d4870d38530

commit 6b17c7258dd2586022f9c5551d502d4870d38530
Author:     Valérian Rousset <tharvik@users.noreply.github.com>
AuthorDate: 2020-01-25 17:25:29 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-01-29 06:14:05 +0000

    net-vpn/i2p: avoid unecessary keepdir
    
    Closes: https://bugs.gentoo.org/705746
    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Valérian Rousset <tharvik@users.noreply.github.com>
    Closes: https://github.com/gentoo/gentoo/pull/14442
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-vpn/i2p/{i2p-0.9.44-r1.ebuild => i2p-0.9.44-r2.ebuild} | 3 ---
 1 file changed, 3 deletions(-)