libtool: avoid running automake/autoconf --version
cover libtool: avoid running automake/autoconf --version
This patch can make libtool 2.4.5 a little faster, but still slower than libtool 2.4.2, since libtool 2.4.5 runs slower when SHELL is /bin/bash.
In theory, if it was 10s slower in the past, now should be less than 5s.
// Robert
The following changes since commit 2104111edc85d057eb4fadecd007f5c592803da6:
opkg-keyrings: New recipe (2015-02-03 14:53:44 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/libtool
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/libtool
Robert Yang (1):
libtool: avoid running automake/autoconf --version
meta/recipes-devtools/libtool/libtool-2.4.5.inc | 1 + .../avoid-running-automake-autoconf-version.patch | 54 ++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-devtools/libtool/libtool/avoid-running-automake-autoconf-version.patch
Signature · 1 line
1.7.9.5
PATCH 1/1 libtool: avoid running automake/autoconf --version
The libtool would be very slow if run "automake/autoconf --version", for example, when compile xz-native (make -j1, only compile, no confiure or install):
before patched: 19s after patched: 11s
Use plain text to instead of running them.
NOTE: it is still a little slower than libtool 2.4.2 when compile xz-native because of other parts:
make -j1: about 2s slower
make -j32: about 0.4s slower
If we run to do_install:
(PARALLEL_MAKE = "-j32")
libtool 2.4.2:
$ bitbake xz-native -cinstall && bitbake xz-native -ccleansstate && time bitbake xz-native -cinstall real 0m21.092s user 0m28.292s sys 0m3.932s
libtool 2.4.5:
$ bitbake xz-native -cinstall && bitbake xz-native -ccleansstate && time bitbake xz-native -cinstall real 0m21.380s user 0m31.140s sys 0m4.068s
About 0.3s, slightly different.
But when using /bin/bash as CONFIG_SHELL, the new libtool would be much slower:
real 0m23.106s user 0m44.044s sys 0m4.280s
About 2s slower, for the big package like cairo, it is more slower (about 6s), unfortunately, /bin/bash is most default CONFIG_SHELL for the recipes since configure checks first check bash.
--- meta/recipes-devtools/libtool/libtool-2.4.5.inc | 1 + .../avoid-running-automake-autoconf-version.patch | 54 ++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-devtools/libtool/libtool/avoid-running-automake-autoconf-version.patch
meta/recipes-devtools/libtool/libtool-2.4.5.inc +1 -0
@@ -18,6 +18,7 @@ SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ file://dont-depend-on-help2man.patch \ file://fix-resolve-lt-sysroot.patch \ file://nohardcodepaths.patch \ + file://avoid-running-automake-autoconf-version.patch \ " SRC_URI[md5sum] = "7d30ed9fa6bb11270ebb31639a37bd54"
meta/recipes-devtools/libtool/libtool/avoid-running-automake-autoconf-version.patch new file +54 -0
54 lines not on this page · raw message
Signature · 1 line
1.7.9.5