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: Thu, 16 Mar 2023 23:51:14
Message-Id: 1679010631.99d8939ecb4770edf31e1b7d9036ea5f3882aaf2.sam@gentoo
1 commit: 99d8939ecb4770edf31e1b7d9036ea5f3882aaf2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 16 23:38:34 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 16 23:50:31 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99d8939e
7
8 sys-devel/mold: drop 1.8.0-r1, 1.9.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-devel/mold/Manifest | 2 -
13 sys-devel/mold/mold-1.8.0-r1.ebuild | 89 -------------------------------------
14 sys-devel/mold/mold-1.9.0.ebuild | 89 -------------------------------------
15 3 files changed, 180 deletions(-)
16
17 diff --git a/sys-devel/mold/Manifest b/sys-devel/mold/Manifest
18 index 9735bd00497b..8075830bf769 100644
19 --- a/sys-devel/mold/Manifest
20 +++ b/sys-devel/mold/Manifest
21 @@ -1,3 +1 @@
22 DIST mold-1.10.1.tar.gz 8173701 BLAKE2B 142b4ec6297f1d4eb7576d16603a214244216592df7320639da3fce32890fc3d13e681dcb79ed23e4c0c7dba1f97eb10c622052c67787b6699925ae67ddb1d15 SHA512 b9df5ddc3a3a022523506638309373c3440128f3c702a7db69c44c180177148e92fbf73347be0c4e0e890395cfb2a5b12d2650ee267f9f58212ccfa981519bbf
23 -DIST mold-1.8.0.tar.gz 8155820 BLAKE2B cd4285953ec56fa437d32c74b928617a50508c0b947dd0c0a3fac6813d7b929d9499f24aa2641faab78d5e81fbced48d734389c61313d752f509d25d2e1f9c61 SHA512 923158563c7abd39c7111e3871a90c7f6f17e0b2412c5de0c9924f3fb55d7fe57db4a83d8a20c3d4966b7b117d1c95cf4a59f63d5076db422b9aa5c3485fd7f8
24 -DIST mold-1.9.0.tar.gz 8163212 BLAKE2B 09ce66e4214c184ea2f36720bc0f839f77ff2a708d56a5767d29758d62310eaf1193394d581c4352404958052c29c0cbc55a4826d10285beda50afb20bd51c80 SHA512 c1c45bced963d4f7c9b67905177157d6f76c518b234fe3eefa2a9ba6c35a08dd6659e64b7939744355ebcd72ae343ef0249ef6a0c80b4d77b1e69e327eb3ba19
25
26 diff --git a/sys-devel/mold/mold-1.8.0-r1.ebuild b/sys-devel/mold/mold-1.8.0-r1.ebuild
27 deleted file mode 100644
28 index 11b57176b2ba..000000000000
29 --- a/sys-devel/mold/mold-1.8.0-r1.ebuild
30 +++ /dev/null
31 @@ -1,89 +0,0 @@
32 -# Copyright 2021-2023 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -inherit cmake toolchain-funcs
38 -
39 -DESCRIPTION="A Modern Linker"
40 -HOMEPAGE="https://github.com/rui314/mold"
41 -if [[ ${PV} == 9999 ]] ; then
42 - EGIT_REPO_URI="https://github.com/rui314/mold.git"
43 - inherit git-r3
44 -else
45 - SRC_URI="https://github.com/rui314/mold/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
46 - KEYWORDS="amd64 ~riscv ~x86"
47 -fi
48 -
49 -# mold (AGPL-3)
50 -# - xxhash (BSD-2)
51 -LICENSE="AGPL-3 BSD-2"
52 -SLOT="0"
53 -
54 -RDEPEND="
55 - app-arch/zstd:=
56 - >=dev-cpp/tbb-2021.7.0-r1:=
57 - sys-libs/zlib
58 - !kernel_Darwin? (
59 - >=dev-libs/mimalloc-2:=
60 - dev-libs/openssl:=
61 - )
62 -"
63 -DEPEND="${RDEPEND}"
64 -
65 -pkg_pretend() {
66 - # Requires a c++20 compiler, see #831473
67 - if [[ ${MERGE_TYPE} != binary ]]; then
68 - if tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]]; then
69 - die "${PN} needs at least gcc 10"
70 - elif tc-is-clang && [[ $(clang-major-version) -lt 12 ]]; then
71 - die "${PN} needs at least clang 12"
72 - fi
73 - fi
74 -}
75 -
76 -src_prepare() {
77 - cmake_src_prepare
78 -
79 - # Needs unpackaged dwarfdump
80 - rm test/elf/{{dead,compress}-debug-sections,compressed-debug-info}.sh || die
81 -
82 - # Heavy tests, need qemu
83 - rm test/elf/gdb-index-{compress-output,dwarf{2,3,4,5}}.sh || die
84 - rm test/elf/lto-{archive,dso,gcc,llvm,version-script}.sh || die
85 -
86 - # Sandbox sadness
87 - rm test/elf/run.sh || die
88 - sed -i 's|`pwd`/mold-wrapper.so|"& ${LD_PRELOAD}"|' \
89 - test/elf/mold-wrapper{,2}.sh || die
90 -
91 - # static-pie tests require glibc built with static-pie support
92 - if ! has_version -d 'sys-libs/glibc[static-pie(+)]'; then
93 - rm test/elf/{,ifunc-}static-pie.sh || die
94 - fi
95 -}
96 -
97 -src_configure() {
98 - local mycmakeargs=(
99 - -DMOLD_ENABLE_QEMU_TESTS=OFF
100 - -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS.
101 - -DMOLD_USE_SYSTEM_MIMALLOC=ON
102 - -DMOLD_USE_SYSTEM_TBB=ON
103 - )
104 - cmake_src_configure
105 -}
106 -
107 -src_install() {
108 - dobin "${BUILD_DIR}"/${PN}
109 -
110 - # https://bugs.gentoo.org/872773
111 - insinto /usr/$(get_libdir)/mold
112 - doins "${BUILD_DIR}"/${PN}-wrapper.so
113 -
114 - dodoc docs/{design,execstack}.md
115 - doman docs/${PN}.1
116 -
117 - dosym ${PN} /usr/bin/ld.${PN}
118 - dosym ${PN} /usr/bin/ld64.${PN}
119 - dosym ../../../usr/bin/${PN} /usr/libexec/${PN}/ld
120 -}
121
122 diff --git a/sys-devel/mold/mold-1.9.0.ebuild b/sys-devel/mold/mold-1.9.0.ebuild
123 deleted file mode 100644
124 index 8063ade34f39..000000000000
125 --- a/sys-devel/mold/mold-1.9.0.ebuild
126 +++ /dev/null
127 @@ -1,89 +0,0 @@
128 -# Copyright 2021-2023 Gentoo Authors
129 -# Distributed under the terms of the GNU General Public License v2
130 -
131 -EAPI=8
132 -
133 -inherit cmake toolchain-funcs
134 -
135 -DESCRIPTION="A Modern Linker"
136 -HOMEPAGE="https://github.com/rui314/mold"
137 -if [[ ${PV} == 9999 ]] ; then
138 - EGIT_REPO_URI="https://github.com/rui314/mold.git"
139 - inherit git-r3
140 -else
141 - SRC_URI="https://github.com/rui314/mold/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
142 - KEYWORDS="~amd64 ~riscv ~x86"
143 -fi
144 -
145 -# mold (AGPL-3)
146 -# - xxhash (BSD-2)
147 -LICENSE="AGPL-3 BSD-2"
148 -SLOT="0"
149 -
150 -RDEPEND="
151 - app-arch/zstd:=
152 - >=dev-cpp/tbb-2021.7.0-r1:=
153 - sys-libs/zlib
154 - !kernel_Darwin? (
155 - >=dev-libs/mimalloc-2:=
156 - dev-libs/openssl:=
157 - )
158 -"
159 -DEPEND="${RDEPEND}"
160 -
161 -pkg_pretend() {
162 - # Requires a c++20 compiler, see #831473
163 - if [[ ${MERGE_TYPE} != binary ]]; then
164 - if tc-is-gcc && [[ $(gcc-major-version) -lt 10 ]]; then
165 - die "${PN} needs at least gcc 10"
166 - elif tc-is-clang && [[ $(clang-major-version) -lt 12 ]]; then
167 - die "${PN} needs at least clang 12"
168 - fi
169 - fi
170 -}
171 -
172 -src_prepare() {
173 - cmake_src_prepare
174 -
175 - # Needs unpackaged dwarfdump
176 - rm test/elf/{{dead,compress}-debug-sections,compressed-debug-info}.sh || die
177 -
178 - # Heavy tests, need qemu
179 - rm test/elf/gdb-index-{compress-output,dwarf{2,3,4,5}}.sh || die
180 - rm test/elf/lto-{archive,dso,gcc,llvm,version-script}.sh || die
181 -
182 - # Sandbox sadness
183 - rm test/elf/run.sh || die
184 - sed -i 's|`pwd`/mold-wrapper.so|"& ${LD_PRELOAD}"|' \
185 - test/elf/mold-wrapper{,2}.sh || die
186 -
187 - # static-pie tests require glibc built with static-pie support
188 - if ! has_version -d 'sys-libs/glibc[static-pie(+)]'; then
189 - rm test/elf/{,ifunc-}static-pie.sh || die
190 - fi
191 -}
192 -
193 -src_configure() {
194 - local mycmakeargs=(
195 - -DMOLD_ENABLE_QEMU_TESTS=OFF
196 - -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS.
197 - -DMOLD_USE_SYSTEM_MIMALLOC=ON
198 - -DMOLD_USE_SYSTEM_TBB=ON
199 - )
200 - cmake_src_configure
201 -}
202 -
203 -src_install() {
204 - dobin "${BUILD_DIR}"/${PN}
205 -
206 - # https://bugs.gentoo.org/872773
207 - insinto /usr/$(get_libdir)/mold
208 - doins "${BUILD_DIR}"/${PN}-wrapper.so
209 -
210 - dodoc docs/{design,execstack}.md
211 - doman docs/${PN}.1
212 -
213 - dosym ${PN} /usr/bin/ld.${PN}
214 - dosym ${PN} /usr/bin/ld64.${PN}
215 - dosym ../../../usr/bin/${PN} /usr/libexec/${PN}/ld
216 -}