Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/mold/
Date: Fri, 23 Sep 2022 01:35:49
Message-Id: 1663896923.337908c505dfe3214ac2e5f7da5d334839b78641.sam@gentoo
1 commit: 337908c505dfe3214ac2e5f7da5d334839b78641
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 01:30:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 01:35:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=337908c5
7
8 sys-devel/mold: drop 1.4.1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-devel/mold/Manifest | 1 -
13 sys-devel/mold/mold-1.4.1.ebuild | 109 ---------------------------------------
14 2 files changed, 110 deletions(-)
15
16 diff --git a/sys-devel/mold/Manifest b/sys-devel/mold/Manifest
17 index f0d576a1e727..60a571295ca5 100644
18 --- a/sys-devel/mold/Manifest
19 +++ b/sys-devel/mold/Manifest
20 @@ -1,2 +1 @@
21 -DIST mold-1.4.1.tar.gz 6280266 BLAKE2B 60d0a876e0bcc8f644e4b6fffe0de14299bf2bd6e382869c87761d725dca6efa874cac37aaf94ad85038c5a24521ed3582782be943236ab81c2e4b66e6002f5e SHA512 304caf4e9d9b24170a9442a84036790407bd02609a5d07c31e5f0f6285128099cbc962571804636a5da55afda59b447c12218f9e4d402fbfa55ebc354814bdda
22 DIST mold-1.4.2.tar.gz 6287845 BLAKE2B ec429f70b92c4af5be83761893028f2324fe2086fea0e9b64f1d89884c6bc8dd34e5615178ef28ff19c36d01dafc834e6f6b9a8d701d62e360ef4e0be2f065bd SHA512 17f543969e53737818b0be563aee39feac672f93e0fd712827523232b64eccb4629f3994c5a90de50b5f761886669e0946a8d463663725e774eb7d352de1ced1
23
24 diff --git a/sys-devel/mold/mold-1.4.1.ebuild b/sys-devel/mold/mold-1.4.1.ebuild
25 deleted file mode 100644
26 index ff42b7ccf9f9..000000000000
27 --- a/sys-devel/mold/mold-1.4.1.ebuild
28 +++ /dev/null
29 @@ -1,109 +0,0 @@
30 -# Copyright 2021-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -inherit cmake toolchain-funcs
36 -
37 -DESCRIPTION="A Modern Linker"
38 -HOMEPAGE="https://github.com/rui314/mold"
39 -if [[ ${PV} == 9999 ]] ; then
40 - EGIT_REPO_URI="https://github.com/rui314/mold.git"
41 - inherit git-r3
42 -else
43 - SRC_URI="https://github.com/rui314/mold/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
44 - KEYWORDS="~amd64 ~riscv"
45 -fi
46 -
47 -# mold (AGPL-3)
48 -# - xxhash (BSD-2)
49 -# - tbb (Apache-2.0)
50 -LICENSE="AGPL-3 Apache-2.0 BSD-2"
51 -SLOT="0"
52 -IUSE="system-tbb"
53 -
54 -RDEPEND="
55 - sys-libs/zlib
56 - system-tbb? ( >=dev-cpp/tbb-2021.4.0:= )
57 - !kernel_Darwin? (
58 - >=dev-libs/mimalloc-2:=
59 - dev-libs/openssl:=
60 - )
61 -"
62 -DEPEND="${RDEPEND}"
63 -
64 -PATCHES=(
65 - # Allows us to rm the tests as before. Will be included in next
66 - # release.
67 - "${FILESDIR}"/mold-1.4.1-glob-tests.patch
68 - # https://bugs.gentoo.org/865837
69 - "${FILESDIR}"/mold-1.4.1-tbb-flags-stripping.patch
70 -)
71 -
72 -pkg_pretend() {
73 - # Requires a c++20 compiler, see #831473
74 - if [[ ${MERGE_TYPE} != binary ]]; then
75 - if tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]]; then
76 - die "${PN} needs at least gcc 10"
77 - elif tc-is-clang && [[ $(clang-major-version) -lt 12 ]]; then
78 - die "${PN} needs at least clang 12"
79 - fi
80 - fi
81 -}
82 -
83 -src_prepare() {
84 - cmake_src_prepare
85 -
86 - # Needs unpackaged dwarfdump
87 - rm test/elf/{{dead,compress}-debug-sections,compressed-debug-info}.sh || die
88 -
89 - # Heavy tests, need qemu
90 - rm test/elf/gdb-index-{compress-output,dwarf{2,3,4,5}}.sh || die
91 - rm test/elf/lto-{archive,dso,gcc,llvm,version-script}.sh || die
92 -
93 - # Sandbox sadness
94 - rm test/elf/run.sh || die
95 - sed -i 's|`pwd`/mold-wrapper.so|"& ${LD_PRELOAD}"|' \
96 - test/elf/mold-wrapper{,2}.sh || die
97 -
98 - # static-pie tests require glibc built with static-pie support
99 - if ! has_version -d 'sys-libs/glibc[static-pie(+)]'; then
100 - rm test/elf/{,ifunc-}static-pie.sh || die
101 - fi
102 -
103 - # Don't require python. The next release has this script rewritten
104 - # in CMake and so this can be dropped.
105 - sed -e '/find_package(Python3/d' \
106 - -e '/add_dependencies/d' \
107 - -e '/UpdateGitHash/,/)/d' \
108 - -i CMakeLists.txt || die
109 - rm update-git-hash.py || die
110 - cat <<EOF>git-hash.cc
111 -#include <string>
112 -namespace mold {
113 -std::string mold_git_hash = "gentoo-${PVR}";
114 -}
115 -EOF
116 -}
117 -
118 -src_configure() {
119 - local mycmakeargs=(
120 - -DMOLD_ENABLE_QEMU_TESTS=OFF
121 - -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS.
122 - -DMOLD_USE_SYSTEM_MIMALLOC=ON
123 - -DMOLD_USE_SYSTEM_TBB=$(usex system-tbb)
124 - )
125 - cmake_src_configure
126 -}
127 -
128 -src_install() {
129 - dobin "${BUILD_DIR}"/${PN}
130 - dolib.so "${BUILD_DIR}"/${PN}-wrapper.so
131 -
132 - dodoc docs/{design,execstack}.md
133 - doman docs/${PN}.1
134 -
135 - dosym ${PN} /usr/bin/ld.${PN}
136 - dosym ${PN} /usr/bin/ld64.${PN}
137 - dosym ../../../usr/bin/${PN} /usr/libexec/${PN}/ld
138 -}