Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/statifier/, dev-util/statifier/files/
Date: Tue, 25 Aug 2020 21:59:42
Message-Id: 1598392765.23d581cdae14f8204aee903a3cbf9f02d65325db.conikost@gentoo
1 commit: 23d581cdae14f8204aee903a3cbf9f02d65325db
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 25 20:27:47 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 25 21:59:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d581cd
7
8 dev-util/statifier: fix compilation with clang
9
10 Closes: https://bugs.gentoo.org/730732
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 dev-util/statifier/files/statifier-1.7.4-clang.patch | 14 ++++++++++++++
15 dev-util/statifier/statifier-1.7.4-r1.ebuild | 2 +-
16 dev-util/statifier/statifier-1.7.4.ebuild | 13 +++++++------
17 3 files changed, 22 insertions(+), 7 deletions(-)
18
19 diff --git a/dev-util/statifier/files/statifier-1.7.4-clang.patch b/dev-util/statifier/files/statifier-1.7.4-clang.patch
20 new file mode 100644
21 index 00000000000..39905eca57f
22 --- /dev/null
23 +++ b/dev-util/statifier/files/statifier-1.7.4-clang.patch
24 @@ -0,0 +1,14 @@
25 +--- a/src/end.S
26 ++++ b/src/end.S
27 +@@ -39,6 +39,10 @@
28 + * to the register_size boundary but to 16 boundary.
29 + * Also as gcc's man say, that 16 is maximum alignment. So, i use it.
30 + */
31 +- .org . + ((16 - (. % 16 )) % 16)
32 ++#if defined(__clang__)
33 ++# define E(BASE, X)
34 ++#else
35 ++# define E(BASE, X) .org . + ((16 - (. % 16 )) % 16)
36 ++#endif
37 + data:
38 +
39
40 diff --git a/dev-util/statifier/statifier-1.7.4-r1.ebuild b/dev-util/statifier/statifier-1.7.4-r1.ebuild
41 index 046c0699da9..b986e79dd44 100644
42 --- a/dev-util/statifier/statifier-1.7.4-r1.ebuild
43 +++ b/dev-util/statifier/statifier-1.7.4-r1.ebuild
44 @@ -22,7 +22,7 @@ RDEPEND="
45 "
46
47 PATCHES=(
48 - # Respect users CFLAGS and LDFLAGS
49 + "${FILESDIR}"/${PN}-1.7.4-clang.patch
50 "${FILESDIR}"/${PN}-1.7.4-fix-build-system.patch
51 )
52
53
54 diff --git a/dev-util/statifier/statifier-1.7.4.ebuild b/dev-util/statifier/statifier-1.7.4.ebuild
55 index b4021f0a1cf..74c850e0b93 100644
56 --- a/dev-util/statifier/statifier-1.7.4.ebuild
57 +++ b/dev-util/statifier/statifier-1.7.4.ebuild
58 @@ -1,7 +1,7 @@
59 -# Copyright 1999-2018 Gentoo Authors
60 +# Copyright 1999-2020 Gentoo Authors
61 # Distributed under the terms of the GNU General Public License v2
62
63 -EAPI="6"
64 +EAPI=6
65
66 MULTILIB_COMPAT=( abi_x86_{32,64} )
67
68 @@ -14,14 +14,15 @@ SRC_URI="https://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${P}.tar.gz"
69 KEYWORDS="amd64 x86"
70 SLOT="0"
71 LICENSE="GPL-2"
72 -IUSE=""
73
74 -RDEPEND="app-shells/bash
75 +RDEPEND="
76 + app-shells/bash
77 sys-apps/coreutils
78 - virtual/awk"
79 + virtual/awk
80 +"
81
82 PATCHES=(
83 - # Respect users CFLAGS and LDFLAGS
84 + "${FILESDIR}"/${PN}-1.7.4-clang.patch
85 "${FILESDIR}"/${PN}-1.7.4-fix-build-system.patch
86 )