1 |
commit: dca74e8493fee4b80a20d44c281feb9a20894d78 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 10 00:18:13 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 10 00:18:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dca74e84 |
7 |
|
8 |
sys-apps/memtester: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/708052 |
11 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
.../memtester-4.3.0-fix-gcc10-fno-common.patch | 31 ++++++++++++++++++++++ |
15 |
sys-apps/memtester/memtester-4.3.0.ebuild | 16 ++++++----- |
16 |
2 files changed, 40 insertions(+), 7 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch b/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..8bb58e5771c |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/memtester/files/memtester-4.3.0-fix-gcc10-fno-common.patch |
23 |
@@ -0,0 +1,31 @@ |
24 |
+--- a/tests.c |
25 |
++++ b/tests.c |
26 |
+@@ -27,6 +27,9 @@ |
27 |
+ #define PROGRESSOFTEN 2500 |
28 |
+ #define ONE 0x00000001L |
29 |
+ |
30 |
++union mword8_type mword8; |
31 |
++union mword16_type mword16; |
32 |
++ |
33 |
+ /* Function definitions. */ |
34 |
+ |
35 |
+ int compare_regions(ulv *bufa, ulv *bufb, size_t count) { |
36 |
+--- a/types.h |
37 |
++++ b/types.h |
38 |
+@@ -25,12 +25,12 @@ |
39 |
+ int (*fp)(); |
40 |
+ }; |
41 |
+ |
42 |
+-union { |
43 |
++union mword8_type { |
44 |
+ unsigned char bytes[UL_LEN/8]; |
45 |
+ ul val; |
46 |
+-} mword8; |
47 |
++}; |
48 |
+ |
49 |
+-union { |
50 |
++union mword16_type { |
51 |
+ unsigned short u16s[UL_LEN/16]; |
52 |
+ ul val; |
53 |
+-} mword16; |
54 |
++}; |
55 |
|
56 |
diff --git a/sys-apps/memtester/memtester-4.3.0.ebuild b/sys-apps/memtester/memtester-4.3.0.ebuild |
57 |
index 56a07613ef1..cccff64b5d4 100644 |
58 |
--- a/sys-apps/memtester/memtester-4.3.0.ebuild |
59 |
+++ b/sys-apps/memtester/memtester-4.3.0.ebuild |
60 |
@@ -1,23 +1,25 @@ |
61 |
-# Copyright 1999-2014 Gentoo Foundation |
62 |
+# Copyright 1999-2020 Gentoo Authors |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
|
65 |
-EAPI="4" |
66 |
+EAPI=7 |
67 |
|
68 |
inherit toolchain-funcs |
69 |
|
70 |
DESCRIPTION="userspace utility for testing the memory subsystem for faults" |
71 |
HOMEPAGE="http://pyropus.ca/software/memtester/" |
72 |
-SRC_URI="http://pyropus.ca/software/memtester/${P}.tar.gz |
73 |
+SRC_URI=" |
74 |
+ http://pyropus.ca/software/memtester/${P}.tar.gz |
75 |
http://pyropus.ca/software/memtester/old-versions/${P}.tar.gz" |
76 |
|
77 |
LICENSE="GPL-2" |
78 |
SLOT="0" |
79 |
KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ppc ppc64 sparc x86" |
80 |
-IUSE="" |
81 |
|
82 |
-src_prepare() { |
83 |
- echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DPOSIX -c" > conf-cc |
84 |
- echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld |
85 |
+PATCHES=( "${FILESDIR}"/${PN}-4.3.0-fix-gcc10-fno-common.patch ) |
86 |
+ |
87 |
+src_configure() { |
88 |
+ echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DPOSIX -c" > conf-cc || die |
89 |
+ echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld || die |
90 |
} |
91 |
|
92 |
src_install() { |