[Buildroot] Making --localstatedir=/var global?

Daniel Nyström daniel.nystrom at timeterminal.se
Mon May 2 05:11:35 UTC 2011


Den 30 april 2011 01:03 skrev Mike Frysinger <vapier at gentoo.org>:
> On Friday, April 29, 2011 07:38:17 Daniel Nyström wrote:
>> I see many packages defines localstatedir to point at /var - what do
>> you think about making it a global default by putting it in
>> Makefile.autotools.in?
>>
>> There are a few exceptions though:
>> dhcp/dhcp.mk: defines localstatedir to /var/lib/dhcp
>> links/links.mk: defines localstatedir to /tmp
>> proftpd/proftpd.mk: defines localstatedir to /var/run
>>
>> All of these are (AFAIK) errornous use of the localstatedir variable,
>> and could be corrected using patches instead.
>
> i dont think many of those are correct.  it should default to /var/lib
> (because that's where local state data lives).  if a package (like dhcp) wants
> something more specific, then a subdir under /var/run is OK.

I'm not sure that's really true when it comes to GNU Autoconf:
http://www.spinics.net/lists/ac/msg04439.html

But I have to admit that these parameters are not very well
documented, and therefore set for misunderstandings.



More information about the buildroot mailing list