commit:     eaf1cdafeb5bfea797ebbad795b848f48a86a5f2
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 20 08:25:05 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sat Aug 20 08:26:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaf1cdaf

sys-devel/mold: stop calling python during build

Closes: https://bugs.gentoo.org/865859
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 sys-devel/mold/mold-1.4.1.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/sys-devel/mold/mold-1.4.1.ebuild b/sys-devel/mold/mold-1.4.1.ebuild
index 804483084d56..ff42b7ccf9f9 100644
--- a/sys-devel/mold/mold-1.4.1.ebuild
+++ b/sys-devel/mold/mold-1.4.1.ebuild
@@ -71,9 +71,13 @@ src_prepare() {
                rm test/elf/{,ifunc-}static-pie.sh || die
        fi
 
-       # Don't require python
-       sed -i '/find_package(Python3/d' CMakeLists.txt || die
-       sed -i '/add_dependencies/d' CMakeLists.txt || die
+       # Don't require python. The next release has this script rewritten
+       # in CMake and so this can be dropped.
+       sed -e '/find_package(Python3/d' \
+               -e '/add_dependencies/d' \
+               -e '/UpdateGitHash/,/)/d' \
+               -i CMakeLists.txt || die
+       rm update-git-hash.py || die
        cat <<EOF>git-hash.cc
 #include <string>
 namespace mold {

Reply via email to