Skip to contentSkip to conversation

Add $$(PKG)_AUTORECONF_ENV argument to autotools package autoreconf command to allow environment variables to be used.

PATCH New Rick Taylor 3 participants 8 messages Jul 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Add $$(PKG)_AUTORECONF_ENV argument to autotools package autoreconf command to allow environment variables to be used.

---
 package/pkg-autotools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-autotools.mk +1 -1
index 557413d..255c42d 100644
@@ -228,7 +228,7 @@ endef
 #
 define AUTORECONF_HOOK
 	@$$(call MESSAGE,"Autoreconfiguring")
-	$$(Q)cd $$($$(PKG)_SRCDIR) && $$(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
+	$$(Q)cd $$($$(PKG)_SRCDIR) && $$($$(PKG)_AUTORECONF_ENV) $$(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
 	$$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
 		for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
 			ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' $$$$i | \
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/3 Update documentation of AUTORECONF_ENV

---
 docs/manual/adding-packages-autotools.txt | 5 +++++
 1 file changed, 5 insertions(+)
docs/manual/adding-packages-autotools.txt +5 -0
index 3f40503..a1a4b90 100644
@@ -121,6 +121,11 @@ cases, typical packages will therefore only use a few of them.
   automake, libtool, etc.). Valid values are +YES+ and
   +NO+. By default, the value is +NO+
 
+* +LIBFOO_AUTORECONF_ENV+, to specify additional environment
+  variables to pass the 'autoreconf' program if
+  +LIBFOO_AUTORECONF=YES+. These are passed before
+  the 'autoreconf' command. By default, empty.
+  
 * +LIBFOO_AUTORECONF_OPT+ to specify additional options
   passed to the 'autoreconf' program if
   +LIBFOO_AUTORECONF=YES+. By default, empty.
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/3 Update documentation of AUTORECONF_ENV

Dear Rick Taylor,

Quoted 4 lines · Rick Taylor
---
 docs/manual/adding-packages-autotools.txt | 5 +++++
 1 file changed, 5 insertions(+)

Commit title should be:

docs/manual: update documentation for <pkg>_AUTORECONF_ENV

or something similar, at least carrying the "docs/manual:" prefix.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 2/3 Update documentation of AUTORECONF_ENV

In reply to Rick Taylor

Hi Rick,

Quoted 10 lines · Rick Taylor
---
 docs/manual/adding-packages-autotools.txt | 5 +++++
 1 file changed, 5 insertions(+)
docs/manual/adding-packages-autotools.txt +0 -0
index 3f40503..a1a4b90 100644

docs/manual/adding-packages-autotools.txt cases, typical packages will therefore only use a few of them. · line 125

Quoted 5 lines
docs/manual/adding-packages-autotools.txt +2 -0
@@ -121,6 +121,11 @@ cases, typical packages will therefore only use a few of them.
   automake, libtool, etc.). Valid values are +YES+ and
   +NO+. By default, the value is +NO+
 
+* +LIBFOO_AUTORECONF_ENV+, to specify additional environment
+  variables to pass the 'autoreconf' program if

Did you see my comment on the previous version of this patch? I think there is a 'to' missing here:

to pass _to_ the autoreconf program

Best regards,
Thomas

#4 lore raw

PATCH 2/3 Update documentation of AUTORECONF_ENV

Hi All,

I have rebased all my autoconf patches down to 1 patch file. Hopefully I have got the git commit message correct.

Many thanks for your patience!

Rick

Quoted 22 lines · Thomas De Schampheleire

Hi Rick,

Review

Quoted 6 lines · Rick Taylor
---
 docs/manual/adding-packages-autotools.txt | 5 +++++
 1 file changed, 5 insertions(+)
(quoted diff) +0 -0

b/docs/manual/adding-packages-autotools.txt

docs/manual/adding-packages-autotools.txt cases, typical packages will therefore only use a

Quoted 4 lines

index 3f40503..a1a4b90 100644

docs/manual/adding-packages-autotools.txt +0 -0
@@ -121,6 +121,11 @@ cases, typical packages will therefore only use a

few of them.

docs/manual/adding-packages-autotools.txt cases, typical packages will therefore only use a few of them. · line 125

Quoted 5 lines
docs/manual/adding-packages-autotools.txt +2 -0
   automake, libtool, etc.). Valid values are +YES+ and
   +NO+. By default, the value is +NO+
 
+* +LIBFOO_AUTORECONF_ENV+, to specify additional environment
+  variables to pass the 'autoreconf' program if
Quoted 9 lines

Did you see my comment on the previous version of this patch? I think there is a 'to' missing here:

to pass _to_ the autoreconf program

Best regards,
Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140718/bf863747/attachment.html>

#5 lore raw

PATCH 3/3 Update documentation to clarify usage

In reply to Rick Taylor
---
 docs/manual/adding-packages-autotools.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/manual/adding-packages-autotools.txt +1 -1
index a1a4b90..dd76ed3 100644
@@ -123,7 +123,7 @@ cases, typical packages will therefore only use a few of them.
 
 * +LIBFOO_AUTORECONF_ENV+, to specify additional environment
   variables to pass the 'autoreconf' program if
-  +LIBFOO_AUTORECONF=YES+. These are passed before
+  +LIBFOO_AUTORECONF=YES+. These are passed in the environment of
   the 'autoreconf' command. By default, empty.
   
 * +LIBFOO_AUTORECONF_OPT+ to specify additional options
Signature · 1 line
1.9.1
#6 lore raw

PATCH 3/3 Update documentation to clarify usage

Dear Rick Taylor,

Quoted 4 lines · Rick Taylor
---
 docs/manual/adding-packages-autotools.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This should be squashed in the previous commit.

See "git rebase -i" (interactive rebasing) to achieve that.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

PATCH 1/3 Add $$(PKG)_AUTORECONF_ENV argument to autotools package autoreconf command to allow environment variables to be used.

In reply to Rick Taylor

Dear Rick Taylor,

Quoted 4 lines · Rick Taylor
---
 package/pkg-autotools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks. However, the commit log is not properly formatted. With git, the commit log should have one line of less than ~80 characters that summarizes the commit, then one empty new line, and then more details. Also, in Buildroot, we like when the commit title has a prefix that identifies the area of the change. I.e, in your case, something like:

===
pkg-autotools: add support for <pkg>_AUTORECONF_ENV

This commit improves the autotools-package infrastructure to support a <pkg>_AUTORECONF_ENV variable, which allows to pass addition variables in the environment of the autoreconf execution. This is useful in the situation where blabla blibli ...

Signed-off-by: ...
===

Could you update your commit log with this format?

Thomas

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