]> code.ossystems Code Review - openembedded-core.git/commit
autoconf: Disable macro which causes excessive delays when using dash as sh
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Dec 2015 18:28:56 +0000 (18:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2015 15:13:50 +0000 (15:13 +0000)
commit421eb8fce9856c63bf62fc3a61fe39d1e5253ff8
tree39ca91989abc63068d61989437fd42aa84f2fdac
parent25eca6793cd4ad7af7e23669ed4f47d075ec696d
autoconf: Disable macro which causes excessive delays when using dash as sh

At the start of every configure script, the check for solaris 'print' causes
significant problems on a linux machine with dash as /bin/sh since it triggers
the execution of "print" which on some linux systems is a perl script which is
part of mailcap. Worse, this perl script calls "which file" and if successful
ignores the path file was found in and just runs "file" without a path. Each
execution causes PATH to be searched. In something like gettext with multiple
configure scripts, this is worth something like 30,000 syscalls of which 3,000
are execs.

Simply assuming the shell's printf function works cuts out all the fork overhead
and when parallel tasks are running, this overhead appears to be significant.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/autoconf/autoconf/performance.patch [new file with mode: 0644]
meta/recipes-devtools/autoconf/autoconf_2.69.bb