Skip to contentSkip to conversation

package/pkg-autotools: fix autoreconf with autoconf >= 2.70

PATCH In review Fabrice Fontaine 3 participants 4 messages Oct 6, 2021 – Oct 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pkg-autotools: fix autoreconf with autoconf >= 2.70

The following build failure is raised since bump of autoconf to version 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da and
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=dd880a0a6de5602cdd40b770ed6b083b34aa0768:

Can't exec "gtkdocize": No such file or directory at /home/buildroot/autobuild/instance-1/output-1/host/share/autoconf/Autom4te/FileUtils.pm line 293.
autoreconf: error: gtkdocize failed with exit status: 2

This failure is raised because autoreconf runs gtkdocize if configure.ac contains GTK_DOC_CHECK, so set GTKDOCIZE to true in pkg-autotools to fix this issue for all affected packages (i.e. host-libgtk3, libtasn1, raptor, etc.). Indeed, gtk-doc is already forcefully disabled in pkg-autotools through --disable-gtk-doc configure flag.

Fixes:
- http://autobuild.buildroot.org/results/ce974281acdd6729327f2083b24f62485f9b1e1a
- http://autobuild.buildroot.org/results/23dd993be4dcd7937d48eef4521690bf30123979
- http://autobuild.buildroot.org/results/bcf489ccd41197b57b39312b369921467f295431

---
 package/pkg-autotools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-autotools.mk +1 -1
index daa688dab6..7720d6ffe7 100644
@@ -100,7 +100,7 @@ endef
 #
 define AUTORECONF_HOOK
 	@$(call MESSAGE,"Autoreconfiguring")
-	$(Q)cd $($(PKG)_SRCDIR) && $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
+	$(Q)cd $($(PKG)_SRCDIR) && GTKDOCIZE="true" $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
 endef
 
 ################################################################################
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Fabrice Fontaine

The following build failure is raised since bump of autoconf to version 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da and
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=dd880a0a6de5602cdd40b770ed6b083b34aa0768:

Can't exec "gtkdocize": No such file or directory at /home/buildroot/autobuild/instance-1/output-1/host/share/autoconf/Autom4te/FileUtils.pm line 293.
autoreconf: error: gtkdocize failed with exit status: 2

This failure is raised because autoreconf runs gtkdocize if configure.ac contains GTK_DOC_CHECK, so set GTKDOCIZE to true in pkg-autotools to fix this issue for all affected packages (i.e. host-libgtk3, libtasn1, raptor, etc.). Indeed, gtk-doc is already forcefully disabled in pkg-autotools through --disable-gtk-doc configure flag.

Quoted 5 lines

Fixes:
- http://autobuild.buildroot.org/results/ce974281acdd6729327f2083b24f62485f9b1e1a
- http://autobuild.buildroot.org/results/23dd993be4dcd7937d48eef4521690bf30123979
- http://autobuild.buildroot.org/results/bcf489ccd41197b57b39312b369921467f295431

Quoted 21 lines
---
 package/pkg-autotools.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-autotools.mk +1 -2
index daa688dab6..7720d6ffe7 100644
@@ -100,7 +100,7 @@ endef
 #
 define AUTORECONF_HOOK
        @$(call MESSAGE,"Autoreconfiguring")
-       $(Q)cd $($(PKG)_SRCDIR) && $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
+       $(Q)cd $($(PKG)_SRCDIR) && GTKDOCIZE="true" $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
 endef
 
 ################################################################################
--

2.33.0

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Fabrice Fontaine
Quoted 13 lines · Fabrice Fontaine

The following build failure is raised since bump of autoconf to version 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da and
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=dd880a0a6de5602cdd40b770ed6b083b34aa0768:

Can't exec "gtkdocize": No such file or directory at /home/buildroot/autobuild/instance-1/output-1/host/share/autoconf/Autom4te/FileUtils.pm line 293.
autoreconf: error: gtkdocize failed with exit status: 2

This failure is raised because autoreconf runs gtkdocize if configure.ac contains GTK_DOC_CHECK, so set GTKDOCIZE to true in pkg-autotools to fix this issue for all affected packages (i.e. host-libgtk3, libtasn1, raptor, etc.). Indeed, gtk-doc is already forcefully disabled in pkg-autotools through --disable-gtk-doc configure flag.

Quoted 6 lines

Fixes:
- http://autobuild.buildroot.org/results/ce974281acdd6729327f2083b24f62485f9b1e1a
- http://autobuild.buildroot.org/results/23dd993be4dcd7937d48eef4521690bf30123979
- http://autobuild.buildroot.org/results/bcf489ccd41197b57b39312b369921467f295431

I have instead applied [1], which puts it in AUTORECONF itself. I think that's
a more appropriate place since it also has AUTPOINT=/bin/true already.

Regards,
Arnout

Quoted 10 lines
---
  package/pkg-autotools.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-autotools.mk +0 -0
index daa688dab6..7720d6ffe7 100644

package/pkg-autotools.mk endef · line 106

Quoted 8 lines
package/pkg-autotools.mk +1 -1
@@ -100,7 +100,7 @@ endef
  #
  define AUTORECONF_HOOK
  	@$(call MESSAGE,"Autoreconfiguring")
-	$(Q)cd $($(PKG)_SRCDIR) && $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
+	$(Q)cd $($(PKG)_SRCDIR) && GTKDOCIZE="true" $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
  endef
 
  ################################################################################

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 22 lines · Arnout Vandecappelle
Quoted 19 lines · Fabrice Fontaine

The following build failure is raised since bump of autoconf to version 2.71 in commit ecd54b65c1f998a7ccd91f7c523e4ff38c4781da and
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=dd880a0a6de5602cdd40b770ed6b083b34aa0768:

Can't exec "gtkdocize": No such file or directory at /home/buildroot/autobuild/instance-1/output-1/host/share/autoconf/Autom4te/FileUtils.pm line 293.
autoreconf: error: gtkdocize failed with exit status: 2

This failure is raised because autoreconf runs gtkdocize if configure.ac contains GTK_DOC_CHECK, so set GTKDOCIZE to true in pkg-autotools to fix this issue for all affected packages (i.e. host-libgtk3, libtasn1, raptor, etc.). Indeed, gtk-doc is already forcefully disabled in pkg-autotools through --disable-gtk-doc configure flag.

Fixes:
  - http://autobuild.buildroot.org/results/ce974281acdd6729327f2083b24f62485f9b1e1a
  - http://autobuild.buildroot.org/results/23dd993be4dcd7937d48eef4521690bf30123979
  - http://autobuild.buildroot.org/results/bcf489ccd41197b57b39312b369921467f295431

Quoted 6 lines
Quoted 1 line

 I have instead applied [1], which puts it in AUTORECONF itself. I think that's a more appropriate place since it also has AUTPOINT=/bin/true already.

 Regards,
 Arnout

[1] https://patchwork.ozlabs.org/project/buildroot/patch/VI1P190MB0493F6B7C3CA5E53F0A7B9049FB59@VI1P190MB0493.EURP190.PROD.OUTLOOK.COM/

Quoted 5 lines
Quoted 5 lines

---
  package/pkg-autotools.mk | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 6 lines
package/pkg-autotools.mk +0 -0
index daa688dab6..7720d6ffe7 100644
@@ -100,7 +100,7 @@ endef
   #
Quoted 9 lines

  define AUTORECONF_HOOK
      @$(call MESSAGE,"Autoreconfiguring")
-    $(Q)cd $($(PKG)_SRCDIR) && $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
+    $(Q)cd $($(PKG)_SRCDIR) && GTKDOCIZE="true" $($(PKG)_AUTORECONF_ENV) $(AUTORECONF) $($(PKG)_AUTORECONF_OPTS)
  endef
################################################################################

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot