Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239508 - libdaemon-0.13 uses incorrect VARRUN path
Summary: libdaemon-0.13 uses incorrect VARRUN path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 08:34 UTC by Michał Górny
Modified: 2008-10-05 20:24 UTC (History)
1 user (show)

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


Attachments
Diff to libdaemon-0.13-r1.ebuild (libdaemon-0.13-r1.diff,574 bytes, patch)
2008-10-04 08:35 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.