diff mbox

[1/2] package/pkg-autotools.mk: set --localstatedir=/var by default

Message ID 1413585393-8349-1-git-send-email-jkrause@posteo.de
State Accepted
Headers show

Commit Message

Jörg Krause Oct. 17, 2014, 10:36 p.m. UTC
`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(+)

Comments

Arnout Vandecappelle Oct. 18, 2014, 1:03 p.m. UTC | #1
On 18/10/14 00:36, Jörg Krause wrote:
> `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>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>


 Regards,
 Arnout

> ---
>  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 \
>
Thomas Petazzoni Oct. 19, 2014, 9:36 a.m. UTC | #2
Dear Jörg Krause,

On Sat, 18 Oct 2014 00:36:32 +0200, Jörg Krause wrote:
> `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(+)

Applied, thanks.

Thomas
diff mbox

Patch

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 \