Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 239508

Summary: libdaemon-0.13 uses incorrect VARRUN path
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: New packagesAssignee: Gilles Dartiguelongue (RETIRED) <eva>
Status: RESOLVED FIXED    
Severity: normal CC: eva
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Diff to libdaemon-0.13-r1.ebuild

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-10-04 08:34:41 UTC
Up to version 0.12, libdaemon used hardcoded /var/run path. But as of 0.13, it uses LOCALSTATEDIR/run instead. As Gentoo passes /var/lib as localstatedir, libdaemon tries to create pidfiles in incorrect /var/lib/run directory and daemons using it fail to start.

The solution is to provide econf with '--localstatedir=/var'. As the LOCALSTATEDIR isn't used anywhere else in the project, it shouldn't cause any problems.

app-cdr/cdemud can be used as a testcase.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2008-10-04 08:35:46 UTC
Created attachment 167129 [details, diff]
Diff to libdaemon-0.13-r1.ebuild
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-05 20:24:34 UTC
in CVS, thanks for reporting.