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

Mike Frysinger vapier at gentoo.org
Fri Apr 29 23:03:13 UTC 2011


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.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110429/4d5f4f22/attachment-0001.asc>


More information about the buildroot mailing list