1 |
commit: 5ad0c179fe9c6c5cbfe3edde28f2759386675bb1 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 20 14:37:42 2022 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 20 14:40:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ad0c179 |
7 |
|
8 |
sys-devel/mold: new revision sans "GNU gold" in --version. |
9 |
|
10 |
The new mold-1.0.1-r1 includes upstream commit cea6a569afa5 which |
11 |
removes the string "GNU gold" from mold's --version string. This is |
12 |
necessary on Gentoo to prevent false positives from tc-ld-is-gold() in |
13 |
the toolchain-funcs eclass. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/831478 |
16 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
17 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
18 |
|
19 |
.../mold/files/mold-1.0.1-no-gold-in-version.patch | 50 ++++++++++++++++++++++ |
20 |
.../{mold-1.0.1.ebuild => mold-1.0.1-r1.ebuild} | 4 +- |
21 |
2 files changed, 53 insertions(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/sys-devel/mold/files/mold-1.0.1-no-gold-in-version.patch b/sys-devel/mold/files/mold-1.0.1-no-gold-in-version.patch |
24 |
new file mode 100644 |
25 |
index 000000000000..429e55cc51a9 |
26 |
--- /dev/null |
27 |
+++ b/sys-devel/mold/files/mold-1.0.1-no-gold-in-version.patch |
28 |
@@ -0,0 +1,50 @@ |
29 |
+From cea6a569afa544826c91fda7ef0f9941f50c9459 Mon Sep 17 00:00:00 2001 |
30 |
+From: Rui Ueyama <ruiu@×××××××××××.edu> |
31 |
+Date: Wed, 12 Jan 2022 16:31:04 +0900 |
32 |
+Subject: [PATCH] [ELF] Remove "GNU gold" from the --version string |
33 |
+ |
34 |
+That substring was introduced in de7ba9014f9d9d70b9173c4bfac6c3433186ba49 |
35 |
+to appease Gentoo's dev-libs/jansson-2.13.1-r1 package. But I think I |
36 |
+shouldn't done that from the beginning to avoid the sitaution of the |
37 |
+"User-Agent" string of the web browser, which everybody claims they |
38 |
+are Mozilla, AppleWebKit, Chrome and Safari simultaneously. |
39 |
+--- |
40 |
+ main.cc | 4 ++-- |
41 |
+ test/elf/version.sh | 6 +++--- |
42 |
+ 2 files changed, 5 insertions(+), 5 deletions(-) |
43 |
+ |
44 |
+diff --git a/main.cc b/main.cc |
45 |
+index 38a41cdf..8831f7f2 100644 |
46 |
+--- a/main.cc |
47 |
++++ b/main.cc |
48 |
+@@ -26,10 +26,10 @@ std::string_view errno_string() { |
49 |
+ |
50 |
+ #ifdef GIT_HASH |
51 |
+ const std::string mold_version = |
52 |
+- "mold " MOLD_VERSION " (" GIT_HASH "; compatible with GNU ld and GNU gold)"; |
53 |
++ "mold " MOLD_VERSION " (" GIT_HASH "; compatible with GNU ld)"; |
54 |
+ #else |
55 |
+ const std::string mold_version = |
56 |
+- "mold " MOLD_VERSION " (compatible with GNU ld and GNU gold)"; |
57 |
++ "mold " MOLD_VERSION " (compatible with GNU ld)"; |
58 |
+ #endif |
59 |
+ |
60 |
+ void cleanup() { |
61 |
+diff --git a/test/elf/version.sh b/test/elf/version.sh |
62 |
+index ae52b504..4ca576ef 100755 |
63 |
+--- a/test/elf/version.sh |
64 |
++++ b/test/elf/version.sh |
65 |
+@@ -10,10 +10,10 @@ mold="$(pwd)/mold" |
66 |
+ t=out/test/elf/$testname |
67 |
+ mkdir -p $t |
68 |
+ |
69 |
+-"$mold" -v | grep -q 'mold .*compatible with GNU ld and GNU gold' |
70 |
+-"$mold" --version | grep -q 'mold .*compatible with GNU ld and GNU gold' |
71 |
++"$mold" -v | grep -q 'mold .*compatible with GNU ld' |
72 |
++"$mold" --version | grep -q 'mold .*compatible with GNU ld' |
73 |
+ |
74 |
+-"$mold" -V | grep -q 'mold .*compatible with GNU ld and GNU gold' |
75 |
++"$mold" -V | grep -q 'mold .*compatible with GNU ld' |
76 |
+ "$mold" -V | grep -q elf_x86_64 |
77 |
+ "$mold" -V | grep -q elf_i386 |
78 |
+ |
79 |
|
80 |
diff --git a/sys-devel/mold/mold-1.0.1.ebuild b/sys-devel/mold/mold-1.0.1-r1.ebuild |
81 |
similarity index 93% |
82 |
rename from sys-devel/mold/mold-1.0.1.ebuild |
83 |
rename to sys-devel/mold/mold-1.0.1-r1.ebuild |
84 |
index 9751b231a53f..e0cd2503b621 100644 |
85 |
--- a/sys-devel/mold/mold-1.0.1.ebuild |
86 |
+++ b/sys-devel/mold/mold-1.0.1-r1.ebuild |
87 |
@@ -1,4 +1,4 @@ |
88 |
-# Copyright 2021 Gentoo Authors |
89 |
+# Copyright 2021-2022 Gentoo Authors |
90 |
# Distributed under the terms of the GNU General Public License v2 |
91 |
|
92 |
EAPI=8 |
93 |
@@ -31,6 +31,8 @@ RDEPEND=">=dev-cpp/tbb-2021.4.0:= |
94 |
)" |
95 |
DEPEND="${RDEPEND}" |
96 |
|
97 |
+PATCHES=( "${FILESDIR}/${P}-no-gold-in-version.patch" ) |
98 |
+ |
99 |
src_prepare() { |
100 |
default |