02-script-wrapper: preserve original timestamps of wrapper scripts

At least since 0.53, the meson buildsystem checks whether the
"date" command's file is outdated and if it is, it'll trigger
regeneration of the build files.

Since the wrappers are reinstalled from scratch on every build step,
this would result in meson being re-run on each of those steps.
Which resulted in broken builds in some projects (e.g. efl) since
our meson build-style by default uses LTO and that requires the AR
environment variable being exported in a specific way, which was
only being done for the do_configure step but not build/install,
which resulted in meson being run with one env for configure and
another env for build, which broke everything.
This commit is contained in:
q66 2020-03-02 00:52:34 +01:00
parent eaf797561f
commit 1fdd919d3b
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ install_wrappers() {
for f in ${XBPS_COMMONDIR}/wrappers/*.sh; do
fname=${f##*/}
fname=${fname%.sh}
install -m0755 ${f} ${XBPS_WRAPPERDIR}/${fname}
install -p -m0755 ${f} ${XBPS_WRAPPERDIR}/${fname}
done
}