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:
parent
eaf797561f
commit
1fdd919d3b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue