On Thu, May 03, 2018 at 01:07:28AM -0400, Theodore Ts'o wrote: > The install-sh file is much more efficient than the libtool version > (50% faster wall clock time; much more than that when running in a > qemu emulation build environment). There doesn't seem to be any real > need for the libtool version, so bring back the original install-sh > script. > > Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> > --- > > A very large amount of time when running "make install" in a build > chroot using qemu emulation, such as constructed by running "sudo > setup-buildchroot --arch-armhf" using the script found here[1] is in > running the install-sh provided by libtool, which is amazing bloated > and forks a crazy number of processes to do something very simple. > > As near as I can tell there is zero benefit in using the install-sh > provided by libtool, so restore the version that SGI originally used. This saves me 8s on 'make install' (23s -> 15s). But one problem with this is that after every 'make', install-sh is overwritten & modified by 'libtoolize -cfi', and git diff complains about the change. I think we could follow what xfsprogs does on this, that puts install-sh in include dir and copy it from there after it's overwritten by libtoolize. > > [1] https://github.com/tytso/xfstests-bld/blob/master/setup-buildchroot > > > .gitignore | 1 - > install-sh | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 351 insertions(+), 1 deletion(-) > create mode 100755 install-sh > > diff --git a/.gitignore b/.gitignore > index 192ca35e..dfd3da7d 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -24,7 +24,6 @@ > > # libtool > /libtool > -/install-sh Then we don't need this change. So the patch would be like: diff --git a/Makefile b/Makefile index d97385f90142..1064984573be 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,7 @@ endif configure: configure.ac libtoolize -cfi + cp include/install-sh . aclocal -I m4 autoheader autoconf diff --git a/include/install-sh b/include/install-sh new file mode 100755 index 000000000000..06d8aa9b6b9c --- /dev/null +++ b/include/install-sh <new file content here> This looks like a straightforward change, I can fix it on commit if the change looks sane to you. Thanks, Eryu -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html