Skip to contentSkip to conversation

build: workaround build failures with old autoconf version

PATCH In review Eryu Guan 2 participants 4 messages May 16, 2017 – May 25, 2017 Kbuild

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 build: workaround build failures with old autoconf version

Xiao Yang reported that fstests failed to build on RHEL6.9 hosts due to old autoreconf didn't pass -I to aclocal -I. This was fixed by autoconf commit 44fbeef86d03 ("Pass autoreconf -I to aclocal -I").

So call aclocal, autoheader and autoconf directly instead of autoreconf, as what's done in xfsprogs Makefile.

Also add include/config.h.in to CONFIGURE, which is generated by autoheader, so it also gets removed by make realclean.

---

Hi Xiao Yang, can you please this patch on your RHEL6 host? It works for me.

Hi Gwendal, can you please test if cross-compilation still works for chromeOS? I don't have the chromeOS environment to test.. Thanks!

 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Makefile +5 -3
index ebf5c03..dd8d344 100644
@@ -41,7 +41,7 @@ endif
 
 SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
 
-CONFIGURE = configure include/builddefs include/config.h \
+CONFIGURE = configure include/builddefs include/config.h include/config.h.in \
 	    aclocal.m4 config.guess config.sub install-sh ltmain.sh \
 	    m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \
 	    m4/lt~obsolete.m4
@@ -79,8 +79,10 @@ clean:  # if configure hasn't run, nothing to clean
 endif
 
 configure: configure.ac
-	autoreconf --include=m4
-	libtoolize -i
+	libtoolize -cfi
+	aclocal -I m4
+	autoheader
+	autoconf
 
 include/builddefs include/config.h: configure
 	./configure \
Signature · 1 line
2.9.3
#1 lore raw
Quoted 7 lines · Eryu Guan

Xiao Yang reported that fstests failed to build on RHEL6.9 hosts due to old autoreconf didn't pass -I to aclocal -I. This was fixed by autoconf commit 44fbeef86d03 ("Pass autoreconf -I to aclocal -I").

So call aclocal, autoheader and autoconf directly instead of autoreconf, as what's done in xfsprogs Makefile.

Quoted 8 lines

Also add include/config.h.in to CONFIGURE, which is generated by autoheader, so it also gets removed by make realclean.

---

Hi Xiao Yang, can you please this patch on your RHEL6 host? It works for me.

Hi Eryu

It looks fine and works normally on my RHEL6 host.

Thanks
Xiao Yang

Quoted 32 lines

Hi Gwendal, can you please test if cross-compilation still works for chromeOS? I don't have the chromeOS environment to test.. Thanks!

 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Makefile +5 -3
index ebf5c03..dd8d344 100644
@@ -41,7 +41,7 @@ endif
 
 SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
 
-CONFIGURE = configure include/builddefs include/config.h \
+CONFIGURE = configure include/builddefs include/config.h include/config.h.in \
 	    aclocal.m4 config.guess config.sub install-sh ltmain.sh \
 	    m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \
 	    m4/lt~obsolete.m4
@@ -79,8 +79,10 @@ clean:  # if configure hasn't run, nothing to clean
 endif
 
 configure: configure.ac
-	autoreconf --include=m4
-	libtoolize -i
+	libtoolize -cfi
+	aclocal -I m4
+	autoheader
+	autoconf
 
 include/builddefs include/config.h: configure
 	./configure \
author
#2 lore raw
Quoted 11 lines · Xiao Yang
Quoted 10 lines · Eryu Guan

Xiao Yang reported that fstests failed to build on RHEL6.9 hosts due to old autoreconf didn't pass -I to aclocal -I. This was fixed by autoconf commit 44fbeef86d03 ("Pass autoreconf -I to aclocal -I").

So call aclocal, autoheader and autoconf directly instead of autoreconf, as what's done in xfsprogs Makefile.

Also add include/config.h.in to CONFIGURE, which is generated by autoheader, so it also gets removed by make realclean.

Quoted 8 lines
Quoted 5 lines

---

Hi Xiao Yang, can you please this patch on your RHEL6 host? It works for me.

Hi Eryu

It looks fine and works normally on my RHEL6 host.

Thanks for testing! Can you provide a "Reviewed-by"?

Gwendal, could you please help check if cross-compiling chromeOS still works after this patch? Thanks a lot!

Eryu

Quoted 38 lines

Thanks
Xiao Yang

Quoted 32 lines

Hi Gwendal, can you please test if cross-compilation still works for chromeOS? I don't have the chromeOS environment to test.. Thanks!

 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Makefile +5 -3
index ebf5c03..dd8d344 100644
@@ -41,7 +41,7 @@ endif
 
 SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
 
-CONFIGURE = configure include/builddefs include/config.h \
+CONFIGURE = configure include/builddefs include/config.h include/config.h.in \
 	    aclocal.m4 config.guess config.sub install-sh ltmain.sh \
 	    m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \
 	    m4/lt~obsolete.m4
@@ -79,8 +79,10 @@ clean:  # if configure hasn't run, nothing to clean
 endif
 
 configure: configure.ac
-	autoreconf --include=m4
-	libtoolize -i
+	libtoolize -cfi
+	aclocal -I m4
+	autoheader
+	autoconf
 
 include/builddefs include/config.h: configure
 	./configure \
Reviewed-by
#3 lore raw
Quoted 16 lines · Eryu Guan
Quoted 15 lines · Xiao Yang
Quoted 14 lines · Eryu Guan

Xiao Yang reported that fstests failed to build on RHEL6.9 hosts due to old autoreconf didn't pass -I to aclocal -I. This was fixed by autoconf commit 44fbeef86d03 ("Pass autoreconf -I to aclocal -I").

So call aclocal, autoheader and autoconf directly instead of autoreconf, as what's done in xfsprogs Makefile.

Also add include/config.h.in to CONFIGURE, which is generated by autoheader, so it also gets removed by make realclean.

---

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

Hi Xiao Yang, can you please this patch on your RHEL6 host? It works for me.

Hi Eryu

It looks fine and works normally on my RHEL6 host.

Thanks for testing! Can you provide a "Reviewed-by"?

Hi Eryu

Yeah, this looks good to me.

Thanks,
Xiao Yang.

Quoted 44 lines

Gwendal, could you please help check if cross-compiling chromeOS still works after this patch? Thanks a lot!

Eryu

Quoted 32 lines

Thanks
Xiao Yang

Quoted 30 lines

Hi Gwendal, can you please test if cross-compilation still works for chromeOS? I don't have the chromeOS environment to test.. Thanks!

  Makefile | 8 +++++---
  1 file changed, 5 insertions(+), 3 deletions(-)
Makefile +5 -3
index ebf5c03..dd8d344 100644
@@ -41,7 +41,7 @@ endif
 
  SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
 
-CONFIGURE = configure include/builddefs include/config.h \
+CONFIGURE = configure include/builddefs include/config.h include/config.h.in \
  	    aclocal.m4 config.guess config.sub install-sh ltmain.sh \
  	    m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \
  	    m4/lt~obsolete.m4
@@ -79,8 +79,10 @@ clean:  # if configure hasn't run, nothing to clean
  endif
 
  configure: configure.ac
-	autoreconf --include=m4
-	libtoolize -i
+	libtoolize -cfi
+	aclocal -I m4
+	autoheader
+	autoconf
 
Quoted 4 lines

Makefile clean: # if configure hasn't run, nothing to clean · line 88

Quoted 2 lines
Makefile +0 -0
  include/builddefs include/config.h: configure
  	./configure \

.