[Buildroot] libdaemons localstatedir /usr/var

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Oct 12 07:18:18 UTC 2014


Dear Jörg Krause,

On Sun, 12 Oct 2014 02:55:57 +0200, Jörg Krause wrote:
> I have a package which uses libdaemon for running as a daemoon and for 
> creating the pid file. libdaemons default directory for opening the pid 
> file is /usr/var/run. However, buildroot does not create this directory 
> in the output directory by default. The package compiles successfully 
> but fails to run because of the missing directory.
> 
> How should I deal with this?
> 
> 1) patch libdaemon.mk: LIBDAEMON_CONF_OPTS = ... --localstatedir=/var
> 2) add /usr/var/run to my rootfs overlay directory
> 
> What do you think? Any other suggestions?

I'd say (1).

Isn't --localstatedir a common autoconf variable ? I see 26 packages
passing --localstatedir=/var in Buildroot. Maybe it's time to move as a
common definition, like --prefix=/usr ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list