Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/pkg-autotools.mk: set --localstatedir=/var by default
@ 2014-10-17 22:36 Jörg Krause
  2014-10-17 22:36 ` [Buildroot] [PATCH 2/2] package/.mk files: remove --localstatedir=/var from autotools packages Jörg Krause
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jörg Krause @ 2014-10-17 22:36 UTC (permalink / raw)
  To: buildroot

`localstatedir` is a common autoconf variable like prefix and sysconfdir. At 
this time 25 autotools and one generic package uses this Makefile variable. 22 
of the autotools packages use --localstatedir=/var, the remaining use custom 
settings.

Setting `localstatedir` to /var is consistent with the Filesystem Hierarchy 
Standard (FHS). So it's time to move it as a common definition in the 
autotools infrastructure. 

Signed-off-by: J?rg Krause <jkrause@posteo.de>
---
 package/pkg-autotools.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk
index 2c93dd9..3c5430f 100644
--- a/package/pkg-autotools.mk
+++ b/package/pkg-autotools.mk
@@ -134,6 +134,7 @@ define $(2)_CONFIGURE_CMDS
 		--prefix=/usr \
 		--exec-prefix=/usr \
 		--sysconfdir=/etc \
+		--localstatedir=/var \
 		--program-prefix="" \
 		--disable-gtk-doc \
 		--disable-doc \
@@ -165,6 +166,7 @@ define $(2)_CONFIGURE_CMDS
 		./configure \
 		--prefix="$$(HOST_DIR)/usr" \
 		--sysconfdir="$$(HOST_DIR)/etc" \
+		--localstatedir="$$(HOST_DIR)/var" \
 		--enable-shared --disable-static \
 		--disable-gtk-doc \
 		--disable-doc \
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-19  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 22:36 [Buildroot] [PATCH 1/2] package/pkg-autotools.mk: set --localstatedir=/var by default Jörg Krause
2014-10-17 22:36 ` [Buildroot] [PATCH 2/2] package/.mk files: remove --localstatedir=/var from autotools packages Jörg Krause
2014-10-18 13:03   ` Arnout Vandecappelle
2014-10-19  9:37   ` Thomas Petazzoni
2014-10-18 13:03 ` [Buildroot] [PATCH 1/2] package/pkg-autotools.mk: set --localstatedir=/var by default Arnout Vandecappelle
2014-10-19  9:36 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox