qt5-build.eclass: qt5_regenerate_global_configs: use `cp` instead of `mv`
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 21 Oct 2019 11:11:20 +0000 (13:11 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 21 Oct 2019 11:18:07 +0000 (13:18 +0200)
Thanks-to: Lars Wendler <polynomial-c@gentoo.org>
Bug: https://bugs.gentoo.org/698174
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/qt5-build.eclass

index 2e5a15d930abb932879c5148c514e056c45802c9..2bee3a3fae477a71e1bb12f77f4f06dc2260e68d 100644 (file)
@@ -816,7 +816,7 @@ qt5_regenerate_global_configs() {
                -execdir cat '{}' + | sort -u > "${T}"/gentoo-qconfig.h
 
        [[ -s ${T}/gentoo-qconfig.h ]] || ewarn "Generated gentoo-qconfig.h is empty"
-       mv -f "${T}"/gentoo-qconfig.h "${ROOT%/}${QT5_HEADERDIR}"/Gentoo/gentoo-qconfig.h \
+       cp "${T}"/gentoo-qconfig.h "${ROOT%/}${QT5_HEADERDIR}"/Gentoo/gentoo-qconfig.h \
                || eerror "Failed to install new gentoo-qconfig.h"
 
        einfo "Updating QT_CONFIG in qconfig.pri"