Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/nx/, net-misc/nx/files/
Date: Fri, 16 Apr 2021 12:37:44
Message-Id: 1618576644.1121bce8ec9678ca7f29d39cfea002dbee75327e.polynomial-c@gentoo
1 commit: 1121bce8ec9678ca7f29d39cfea002dbee75327e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 12:25:38 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 12:37:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1121bce8
7
8 net-misc/nx: Fixed build with binutils-2.36
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 net-misc/nx/files/nx-3.5.99.26-binutils-2.36.patch | 42 ++++++++++++++++++++++
13 net-misc/nx/nx-3.5.99.26.ebuild | 5 +++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/net-misc/nx/files/nx-3.5.99.26-binutils-2.36.patch b/net-misc/nx/files/nx-3.5.99.26-binutils-2.36.patch
17 new file mode 100644
18 index 00000000000..ec2925da979
19 --- /dev/null
20 +++ b/net-misc/nx/files/nx-3.5.99.26-binutils-2.36.patch
21 @@ -0,0 +1,42 @@
22 +From d35eba919c229cecf3c52a7dd034b9cd6b120ede Mon Sep 17 00:00:00 2001
23 +From: ponce <matteo.bernardini@×××××.com>
24 +Date: Mon, 5 Apr 2021 08:44:00 +0200
25 +Subject: [PATCH] fix building with binutils >= 2.36.
26 +
27 +The l option of ar in the newer binutils versions switched
28 +from being unused to being used to specify dependencies
29 +so here should be safely removed
30 +---
31 + nx-X11/config/cf/Imake.tmpl | 12 ------------
32 + 1 file changed, 12 deletions(-)
33 +
34 +diff --git a/nx-X11/config/cf/Imake.tmpl b/nx-X11/config/cf/Imake.tmpl
35 +index 25d985d75f..de1fca937e 100644
36 +--- a/nx-X11/config/cf/Imake.tmpl
37 ++++ b/nx-X11/config/cf/Imake.tmpl
38 +@@ -1015,25 +1015,13 @@ TCLIBDIR = TclLibDir
39 + #define ArCmdBase ar
40 + #endif
41 + #ifndef ArCmd
42 +-#if HasLargeTmp || SystemV4
43 + #define ArCmd ArCmdBase cq
44 +-#else
45 +-#define ArCmd ArCmdBase clq
46 +-#endif
47 + #endif
48 + #ifndef ArAddCmd
49 +-#if HasLargeTmp || SystemV4
50 + #define ArAddCmd ArCmdBase ru
51 +-#else
52 +-#define ArAddCmd ArCmdBase rul
53 +-#endif
54 + #endif
55 + #ifndef ArExtCmd
56 +-#if HasLargeTmp || SystemV4
57 + #define ArExtCmd ArCmdBase x
58 +-#else
59 +-#define ArExtCmd ArCmdBase xl
60 +-#endif
61 + #endif
62 + #ifndef BootstrapCFlags
63 + #define BootstrapCFlags /**/
64
65 diff --git a/net-misc/nx/nx-3.5.99.26.ebuild b/net-misc/nx/nx-3.5.99.26.ebuild
66 index 428f571e7e7..17d9b3f5472 100644
67 --- a/net-misc/nx/nx-3.5.99.26.ebuild
68 +++ b/net-misc/nx/nx-3.5.99.26.ebuild
69 @@ -43,6 +43,11 @@ BDEPEND="
70
71 S="${WORKDIR}/nx-libs-${PV}"
72
73 +PATCHES=(
74 + # https://github.com/ArcticaProject/nx-libs/pull/1012
75 + "${FILESDIR}/${PN}-3.5.99.26-binutils-2.36.patch"
76 +)
77 +
78 src_prepare() {
79 default