Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435204 - net-misc/minidlna-1.0.25-r1 cannot access '/var/lib/minidlna': No such file or directory
Summary: net-misc/minidlna-1.0.25-r1 cannot access '/var/lib/minidlna': No such file o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-16 12:55 UTC by Ian Abbott
Modified: 2012-09-18 05:43 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 Ian Abbott 2012-09-16 12:55:36 UTC
If minidlna isn't already installed, emerging net-misc/minidlna-1.0.25-r1 fails in the setup phase with an error from chown:

chown: cannot access '/var/lib/minidlna': No such file or directory

The test for a first-time emerge is incorrect/inverted in pkg_setup().

Reproducible: Always

Steps to Reproduce:
1. emerge -C net-misc/minidlna
2. emerge =net-misc/minidlna-1.0.25-r1
Comment 1 Michael Weber (RETIRED) gentoo-dev 2012-09-18 05:43:28 UTC
Hello,

i think the appropriate test would be

1. emerge -C net-misc/minidlna
2. userdel minidlna
3. emerge =net-misc/minidlna-1.0.25-r1

the directory /var/lib/minidlna is created by `enewuser ...`, iff the user entry in /etc/passwd or whatever does not exist.

+  18 Sep 2012; Michael Weber <xmw@gentoo.org> minidlna-1.0.25-r1.ebuild:
+  Correct permissions hack in pkg_setup if user exists but /var/lib/minidlna
+  doesnt (bug 435204, thanks Ian Abbott)
+

Thank you!