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
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!