1 |
commit: b79aa3db1cca97db331e6e058a1c751591f29759 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 27 23:07:20 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 27 23:07:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b79aa3db |
7 |
|
8 |
sys-libs/libaal: Fix build against glibc-2.6 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/637610 |
11 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
12 |
|
13 |
sys-libs/libaal/Manifest | 2 +- |
14 |
sys-libs/libaal/files/libaal-1.0.6-glibc26.patch | 89 ++++++++++++++++++++++ |
15 |
sys-libs/libaal/libaal-1.0.6.ebuild | 5 +- |
16 |
...{libaal-1.0.6.ebuild => libaal-1.0.7-r1.ebuild} | 22 +++--- |
17 |
4 files changed, 106 insertions(+), 12 deletions(-) |
18 |
|
19 |
diff --git a/sys-libs/libaal/Manifest b/sys-libs/libaal/Manifest |
20 |
index 994f6fffe8d..034f7e1aa3f 100644 |
21 |
--- a/sys-libs/libaal/Manifest |
22 |
+++ b/sys-libs/libaal/Manifest |
23 |
@@ -1,2 +1,2 @@ |
24 |
-DIST libaal-1.0.6.tar.gz 345894 SHA256 b1a1547746438b156156f82332557b05442e6d6c39fa9fe0d8dd47a3ad16ce9c SHA512 9b13096abcb90e75fff607ffd7b11ed8b100f349800b726acb01aca12f54abe784adb9912916fe8ed0751ebf367ecced04ab058e1e8b947f4209a5e6c390f123 WHIRLPOOL 7d93c3dc6eb62712a460f37bc933588c0b71d17472c64104a5cba939324af801ca0ba37063cd020caf8aa0d352a21b5222f838b427fbba0c03144b89d64e98c6 |
25 |
+DIST libaal-1.0.6.tar.gz 345894 BLAKE2B 726eb26d80ce5cb198a059e74ded76d7ce97aabd2bd38209194462be9c6ffd5aafbfff3a35fddcae8b6b1c88ad8a378a6328217aed490f156bbb806d4ec687b9 SHA512 9b13096abcb90e75fff607ffd7b11ed8b100f349800b726acb01aca12f54abe784adb9912916fe8ed0751ebf367ecced04ab058e1e8b947f4209a5e6c390f123 |
26 |
DIST libaal-1.0.7.tar.gz 376068 BLAKE2B 2fb7802401721a64b17c0409f3ff668524399efc03b4bda4b4523af2cce204fdb5cf41bb2b2a6af5cbda34ee88cbb4703eec9bb76774d705b1759c91a33b1e34 SHA512 9b39a8cd3f49257ea912bb0e463c0c63ad06914e8a310deb4d4dce544d3ee34f492203c7321f971af71dddc1eb85f207082a4791b19bd4fad3f7dab516513b3d |
27 |
|
28 |
diff --git a/sys-libs/libaal/files/libaal-1.0.6-glibc26.patch b/sys-libs/libaal/files/libaal-1.0.6-glibc26.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..298d75ae2d7 |
31 |
--- /dev/null |
32 |
+++ b/sys-libs/libaal/files/libaal-1.0.6-glibc26.patch |
33 |
@@ -0,0 +1,89 @@ |
34 |
+Stop redefining libc definitions that cause build failures under glibc-2.26. |
35 |
+ |
36 |
+[ 46s] In file included from /usr/include/sys/types.h:156:0, |
37 |
+[ 46s] from /usr/include/stdlib.h:279, |
38 |
+[ 46s] from malloc.c:15: |
39 |
+[ 46s] /usr/include/bits/stdint-intn.h:27:19: error: conflicting types for |
40 |
+'int64_t' |
41 |
+[ 46s] typedef __int64_t int64_t; |
42 |
+[ 46s]^~~ |
43 |
+[ 46s] In file included from ../include/aal/libaal.h:17:0, |
44 |
+[ 46s] from malloc.c:6: |
45 |
+[ 46s] ../include/aal/types.h:35:33: note: previous declaration of 'int64_t' |
46 |
+was here |
47 |
+[ 46s] typedef long long int int64_t; |
48 |
+ |
49 |
+Author: Jan Engelhardt |
50 |
+ |
51 |
+--- |
52 |
+ include/aal/types.h | 48 ++---------------------------------------------- |
53 |
+ 1 file changed, 2 insertions(+), 46 deletions(-) |
54 |
+ |
55 |
+Index: libaal-1.0.6/include/aal/types.h |
56 |
+=================================================================== |
57 |
+--- libaal-1.0.6.orig/include/aal/types.h |
58 |
++++ libaal-1.0.6/include/aal/types.h |
59 |
+@@ -26,24 +26,7 @@ |
60 |
+ #undef ESTRUCT |
61 |
+ #define ESTRUCT 50 |
62 |
+ |
63 |
+-#ifndef __int8_t_defined |
64 |
+-#define __int8_t_defined |
65 |
+-typedef signed char int8_t; |
66 |
+-typedef short int int16_t; |
67 |
+-typedef int int32_t; |
68 |
+-__extension__ |
69 |
+-typedef long long int int64_t; |
70 |
+-#endif |
71 |
+- |
72 |
+-typedef unsigned char uint8_t; |
73 |
+-typedef unsigned short int uint16_t; |
74 |
+-#ifndef __uint32_t_defined |
75 |
+-#define __uint32_t_defined |
76 |
+-typedef unsigned int uint32_t; |
77 |
+-__extension__ |
78 |
+-typedef unsigned long long int uint64_t; |
79 |
+-#endif |
80 |
+- |
81 |
++#include <stdint.h> |
82 |
+ #define MAX_UINT8 ((uint8_t)~0) |
83 |
+ #define MAX_UINT16 ((uint16_t)~0) |
84 |
+ #define MAX_UINT32 ((uint32_t)~0) |
85 |
+@@ -53,36 +36,9 @@ typedef unsigned long long int uint64_t |
86 |
+ because we don't want use gcc builtins in minimal mode for achive as small |
87 |
+ binary size as possible. */ |
88 |
+ |
89 |
+-#ifndef ENABLE_MINIMAL |
90 |
+ # include <stdarg.h> |
91 |
+-#else |
92 |
+-#ifndef _VA_LIST_ |
93 |
+-#define _VA_LIST_ |
94 |
+-typedef char *va_list; |
95 |
+-#endif |
96 |
+-#undef va_arg |
97 |
+-#undef va_end |
98 |
+-#undef va_start |
99 |
+- |
100 |
+-#define va_end(ap) \ |
101 |
+- do {} while(0); |
102 |
+- |
103 |
+-#define va_start(ap, p) \ |
104 |
+- (ap = (char *)(&(p)+1)) |
105 |
+- |
106 |
+-#define va_arg(ap, type) \ |
107 |
+- ((type *)(ap += sizeof(type)))[-1] |
108 |
+-#endif |
109 |
+- |
110 |
+-/* As libaal may be used without any standard headers, we need to declare NULL |
111 |
+- macro here in order to avoid compilation errors. */ |
112 |
+-#undef NULL |
113 |
+ |
114 |
+-#if defined(__cplusplus) |
115 |
+-# define NULL 0 |
116 |
+-#else |
117 |
+-# define NULL ((void *)0) |
118 |
+-#endif |
119 |
++#include <stdio.h> |
120 |
+ |
121 |
+ /* Simple type for direction denoting */ |
122 |
+ enum aal_dir { |
123 |
|
124 |
diff --git a/sys-libs/libaal/libaal-1.0.6.ebuild b/sys-libs/libaal/libaal-1.0.6.ebuild |
125 |
index 91f3ab182e1..21061c06745 100644 |
126 |
--- a/sys-libs/libaal/libaal-1.0.6.ebuild |
127 |
+++ b/sys-libs/libaal/libaal-1.0.6.ebuild |
128 |
@@ -1,9 +1,9 @@ |
129 |
-# Copyright 1999-2014 Gentoo Foundation |
130 |
+# Copyright 1999-2017 Gentoo Foundation |
131 |
# Distributed under the terms of the GNU General Public License v2 |
132 |
|
133 |
EAPI="4" |
134 |
|
135 |
-inherit toolchain-funcs |
136 |
+inherit toolchain-funcs eutils |
137 |
|
138 |
DESCRIPTION="library required by reiser4progs" |
139 |
HOMEPAGE="https://sourceforge.net/projects/reiser4/" |
140 |
@@ -23,6 +23,7 @@ src_prepare() { |
141 |
-e "/^CFLAGS=/s:\"\":\"${CFLAGS}\":" \ |
142 |
configure || die "sed" |
143 |
printf '#!/bin/sh\n:\n' > run-ldconfig |
144 |
+ epatch "${FILESDIR}"/${PN}-1.0.6-glibc26.patch |
145 |
} |
146 |
|
147 |
src_configure() { |
148 |
|
149 |
diff --git a/sys-libs/libaal/libaal-1.0.6.ebuild b/sys-libs/libaal/libaal-1.0.7-r1.ebuild |
150 |
similarity index 66% |
151 |
copy from sys-libs/libaal/libaal-1.0.6.ebuild |
152 |
copy to sys-libs/libaal/libaal-1.0.7-r1.ebuild |
153 |
index 91f3ab182e1..bd15352a4c1 100644 |
154 |
--- a/sys-libs/libaal/libaal-1.0.6.ebuild |
155 |
+++ b/sys-libs/libaal/libaal-1.0.7-r1.ebuild |
156 |
@@ -1,7 +1,7 @@ |
157 |
-# Copyright 1999-2014 Gentoo Foundation |
158 |
+# Copyright 1999-2017 Gentoo Foundation |
159 |
# Distributed under the terms of the GNU General Public License v2 |
160 |
|
161 |
-EAPI="4" |
162 |
+EAPI="6" |
163 |
|
164 |
inherit toolchain-funcs |
165 |
|
166 |
@@ -10,26 +10,30 @@ HOMEPAGE="https://sourceforge.net/projects/reiser4/" |
167 |
SRC_URI="mirror://sourceforge/reiser4/${P}.tar.gz" |
168 |
|
169 |
LICENSE="GPL-2" |
170 |
-SLOT="0" |
171 |
-KEYWORDS="amd64 arm ppc ppc64 -sparc x86" |
172 |
+SLOT="0/7" |
173 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 -sparc ~x86" |
174 |
IUSE="static-libs" |
175 |
|
176 |
DEPEND="virtual/os-headers" |
177 |
|
178 |
src_prepare() { |
179 |
+ default |
180 |
+ |
181 |
# remove stupid CFLAG hardcodes |
182 |
sed -i \ |
183 |
-e "/GENERIC_CFLAGS/s:-O3::" \ |
184 |
-e "/^CFLAGS=/s:\"\":\"${CFLAGS}\":" \ |
185 |
- configure || die "sed" |
186 |
- printf '#!/bin/sh\n:\n' > run-ldconfig |
187 |
+ configure || die |
188 |
+ printf '#!/bin/sh\n:\n' > run-ldconfig || die |
189 |
} |
190 |
|
191 |
src_configure() { |
192 |
- econf \ |
193 |
- --enable-libminimal \ |
194 |
- --enable-memory-manager \ |
195 |
+ local myeconfargs=( |
196 |
+ --enable-libminimal |
197 |
+ --enable-memory-manager |
198 |
$(use_enable static-libs static) |
199 |
+ ) |
200 |
+ econf "${myeconfargs[@]}" |
201 |
} |
202 |
|
203 |
src_install() { |