Skip to contentSkip to conversation

automake: Remove delays in configure scripts using automake

PATCH New Richard Purdie 1 participant 1 message Dec 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automake: Remove delays in configure scripts using automake

By default automake puts "sleep 1" into the start of configure scripts which adds pointless delays to them. Rather than do this, lets just assume our systems are sane.

Since this means our patches touch m4 files, we need to stop automake running autoreconf so we tweak the do_configure to avoid this.

meta/recipes-devtools/automake/automake.inc +3 -0
index a1debd8..b14c847 100644
@@ -11,6 +11,9 @@ inherit autotools texinfo
 
 do_configure() {
 	oe_runconf
+	# We can end up patching macros, which would then mean autoreconf
+	# Cheat by saying everything is up to date.
+	touch ${S}/aclocal.m4 ${S}/Makefile.in
 }
 
 export AUTOMAKE = "${@bb.utils.which('automake', d.getVar('PATH', True))}"
meta/recipes-devtools/automake/automake/performance.patch new file +73 -0

73 lines not on this page · raw message

meta/recipes-devtools/automake/automake_1.15.bb +2 -1
index c33dc22..4f280ba 100644
@@ -20,7 +20,8 @@ RDEPENDS_${PN}_class-native = "autoconf-native perl-native-runtime"
 
 SRC_URI += " file://python-libdir.patch \
             file://py-compile-compile-only-optimized-byte-code.patch \
-            file://buildtest.patch"
+            file://buildtest.patch \
+            file://performance.patch"
 
 SRC_URI[md5sum] = "716946a105ca228ab545fc37a70df3a3"
 SRC_URI[sha256sum] = "7946e945a96e28152ba5a6beb0625ca715c6e32ac55f2e353ef54def0c8ed924"