From 1fdd919d3bd3f5359873834972e54a14d89ab87a Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 2 Mar 2020 00:52:34 +0100 Subject: [PATCH] 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. --- common/hooks/pre-configure/02-script-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/pre-configure/02-script-wrapper.sh b/common/hooks/pre-configure/02-script-wrapper.sh index 9df34ea7fff..2b46a029223 100644 --- a/common/hooks/pre-configure/02-script-wrapper.sh +++ b/common/hooks/pre-configure/02-script-wrapper.sh @@ -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 }