1 |
commit: a210fd9af7db9e2d9088fd39d3f030153596c17a |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 18 18:28:08 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 18 18:28:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a210fd9a |
7 |
|
8 |
sys-libs/efivar: backport fix for binutils-2.36 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831417 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
sys-libs/efivar/efivar-38.ebuild | 1 + |
14 |
.../efivar/files/efivar-38-binutils-2.36.patch | 30 ++++++++++++++++++++++ |
15 |
2 files changed, 31 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/efivar/efivar-38.ebuild b/sys-libs/efivar/efivar-38.ebuild |
18 |
index 24459558e6fc..0febea4fe5ce 100644 |
19 |
--- a/sys-libs/efivar/efivar-38.ebuild |
20 |
+++ b/sys-libs/efivar/efivar-38.ebuild |
21 |
@@ -32,6 +32,7 @@ src_prepare() { |
22 |
"${FILESDIR}"/efivar-38-ia64-relro.patch |
23 |
"${FILESDIR}"/efivar-38-march-native.patch |
24 |
"${FILESDIR}"/efivar-38-Makefile-dep.patch |
25 |
+ "${FILESDIR}"/efivar-38-binutils-2.36.patch |
26 |
) |
27 |
default |
28 |
} |
29 |
|
30 |
diff --git a/sys-libs/efivar/files/efivar-38-binutils-2.36.patch b/sys-libs/efivar/files/efivar-38-binutils-2.36.patch |
31 |
new file mode 100644 |
32 |
index 000000000000..df0575de7f33 |
33 |
--- /dev/null |
34 |
+++ b/sys-libs/efivar/files/efivar-38-binutils-2.36.patch |
35 |
@@ -0,0 +1,30 @@ |
36 |
+From 197a0874ea4010061b98b4b55eff65b33b1cd741 Mon Sep 17 00:00:00 2001 |
37 |
+From: Robbie Harwood <rharwood@××××××.com> |
38 |
+Date: Mon, 17 Jan 2022 12:34:55 -0500 |
39 |
+Subject: [PATCH] Add -T workaround for GNU ld 2.36 |
40 |
+ |
41 |
+Signed-off-by: Robbie Harwood <rharwood@××××××.com> |
42 |
+Resolves: #195 |
43 |
+--- |
44 |
+ src/include/workarounds.mk | 4 ++-- |
45 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
46 |
+ |
47 |
+diff --git a/src/include/workarounds.mk b/src/include/workarounds.mk |
48 |
+index 31188342..143e7902 100644 |
49 |
+--- a/src/include/workarounds.mk |
50 |
++++ b/src/include/workarounds.mk |
51 |
+@@ -4,12 +4,12 @@ |
52 |
+ |
53 |
+ LD_FLAVOR := $(shell $(LD) --version | grep -E '^(LLD|GNU ld)'|sed 's/ .*//g') |
54 |
+ LD_VERSION := $(shell $(LD) --version | grep -E '^(LLD|GNU ld)'|sed 's/.* //') |
55 |
+-# I haven't tested 2.36 here; 2.35 is definitely broken and 2.37 seems to work |
56 |
++# 2.35 is definitely broken and 2.36 seems to work |
57 |
+ LD_DASH_T := $(shell \ |
58 |
+ if [ "x${LD_FLAVOR}" = xLLD ] ; then \ |
59 |
+ echo '-T' ; \ |
60 |
+ elif [ "x${LD_FLAVOR}" = xGNU ] ; then \ |
61 |
+- if echo "${LD_VERSION}" | grep -q -E '^2\.3[789]|^2\.[456789]|^[3456789]|^[[:digit:]][[:digit:]]' ; then \ |
62 |
++ if echo "${LD_VERSION}" | grep -q -E '^2\.3[6789]|^2\.[456789]|^[3456789]|^[[:digit:]][[:digit:]]' ; then \ |
63 |
+ echo '-T' ; \ |
64 |
+ else \ |
65 |
+ echo "" ; \ |