summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake/automake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-07 18:28:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-14 22:30:56 +0000
commit28fa3044d5e978de5801cf9fa02ae596e9ebc833 (patch)
treea5605da733056815c3444e5b1e275c907438bfe1 /meta/recipes-devtools/automake/automake
parentf5e681d8677d7dd528cc316e937ff186ede8ca9a (diff)
downloadpoky-28fa3044d5e978de5801cf9fa02ae596e9ebc833.tar.gz
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. (From OE-Core rev: 25eca6793cd4ad7af7e23669ed4f47d075ec696d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/automake/automake')
-rw-r--r--meta/recipes-devtools/automake/automake/performance.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/meta/recipes-devtools/automake/automake/performance.patch b/meta/recipes-devtools/automake/automake/performance.patch
new file mode 100644
index 0000000000..3e6d5694dc
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake/performance.patch
@@ -0,0 +1,73 @@
1By default automake puts "sleep 1" into the start of configure scripts
2which adds pointless delays to them. Rather than do this, lets just assume
3our systems are sane.
4
5RP
62015/12/7
7Upstream-Status: Inappropriate
8
9Index: automake-1.15/m4/sanity.m4
10===================================================================
11--- automake-1.15.orig/m4/sanity.m4
12+++ automake-1.15/m4/sanity.m4
13@@ -23,60 +23,5 @@ case $srcdir in
14 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
15 esac
16
17-# Do 'set' in a subshell so we don't clobber the current shell's
18-# arguments. Must try -L first in case configure is actually a
19-# symlink; some systems play weird games with the mod time of symlinks
20-# (eg FreeBSD returns the mod time of the symlink's containing
21-# directory).
22-if (
23- am_has_slept=no
24- for am_try in 1 2; do
25- echo "timestamp, slept: $am_has_slept" > conftest.file
26- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
27- if test "$[*]" = "X"; then
28- # -L didn't work.
29- set X `ls -t "$srcdir/configure" conftest.file`
30- fi
31- if test "$[*]" != "X $srcdir/configure conftest.file" \
32- && test "$[*]" != "X conftest.file $srcdir/configure"; then
33-
34- # If neither matched, then we have a broken ls. This can happen
35- # if, for instance, CONFIG_SHELL is bash and it inherits a
36- # broken ls alias from the environment. This has actually
37- # happened. Such a system could not be considered "sane".
38- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
39- alias in your environment])
40- fi
41- if test "$[2]" = conftest.file || test $am_try -eq 2; then
42- break
43- fi
44- # Just in case.
45- sleep 1
46- am_has_slept=yes
47- done
48- test "$[2]" = conftest.file
49- )
50-then
51- # Ok.
52- :
53-else
54- AC_MSG_ERROR([newly created file is older than distributed files!
55-Check your system clock])
56-fi
57 AC_MSG_RESULT([yes])
58-# If we didn't sleep, we still need to ensure time stamps of config.status and
59-# generated files are strictly newer.
60-am_sleep_pid=
61-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
62- ( sleep 1 ) &
63- am_sleep_pid=$!
64-fi
65-AC_CONFIG_COMMANDS_PRE(
66- [AC_MSG_CHECKING([that generated files are newer than configure])
67- if test -n "$am_sleep_pid"; then
68- # Hide warnings about reused PIDs.
69- wait $am_sleep_pid 2>/dev/null
70- fi
71- AC_MSG_RESULT([done])])
72-rm -f conftest.file
73 ])