Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libffi/files/, dev-libs/libffi/
Date: Wed, 21 Jun 2017 21:51:23
Message-Id: 1498081861.6acaa7787fa53d19b19c0f193b24969a5641a315.tamiko@gentoo
1 commit: 6acaa7787fa53d19b19c0f193b24969a5641a315
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 21 21:42:23 2017 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 21 21:51:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6acaa778
7
8 dev-libs/libffi: drop old versions, bug #622226
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-libs/libffi/Manifest | 3 -
13 .../files/libffi-3.0.13-emutramp_pax_proc.patch | 37 -------------
14 dev-libs/libffi/files/libffi-3.1-execstack.patch | 12 ----
15 .../libffi/files/libffi-3.1-typing_error.patch | 14 -----
16 dev-libs/libffi/libffi-3.0.13-r1.ebuild | 64 ----------------------
17 dev-libs/libffi/libffi-3.1-r3.ebuild | 62 ---------------------
18 dev-libs/libffi/libffi-3.2.ebuild | 59 --------------------
19 7 files changed, 251 deletions(-)
20
21 diff --git a/dev-libs/libffi/Manifest b/dev-libs/libffi/Manifest
22 index 98cc0cd0b06..e9774e1aba6 100644
23 --- a/dev-libs/libffi/Manifest
24 +++ b/dev-libs/libffi/Manifest
25 @@ -1,4 +1 @@
26 -DIST libffi-3.0.13.tar.gz 845747 SHA256 1dddde1400c3bcb7749d398071af88c3e4754058d2d4c0b3696c2f82dc5cf11c SHA512 fc47f5d25197c631754efe05a349edb556d072807ecef19b41f17c1a8f39c95221be64926fbd05b1f8439181df1ddff8fc01462ce3a26005b75159ddc27e6f6a WHIRLPOOL d5b14d48a7b35f7349ec938d0deac62db7022ac4d611ab13bc7a6a2766a47e210fc1663fc8c6d7ee48d421c06b66f558010829ac2c215620c76d0bf7650e1308
27 -DIST libffi-3.1.tar.gz 937214 SHA256 97feeeadca5e21870fa4433bc953d1b3af3f698d5df8a428f68b73cd60aef6eb SHA512 8994973d75facf5ad928c270e17b1a56e24d1543af75b93731a0048e747df27e4190a736b6dc2dca7d43de1d7e88891220304802c10fcccdcebee9c9ffd3d1b9 WHIRLPOOL 19c08cffd39c998fcd762b1e3767b4fd86915427226833411302bebd2d5bcf93d515e6df4a4cab11327595d3966e46442e457fbe09ae986b58bdfb2bb6adb913
28 DIST libffi-3.2.1.tar.gz 940837 SHA256 d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37 SHA512 980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 WHIRLPOOL b9d3c86e347029fa9f03fd3813405cc731099812ad6186bd4d2ea646354383803c90912b20e1804a6b7fc12719403b3c0c3b800bdbcab564a2c93fcb4fd722ad
29 -DIST libffi-3.2.tar.gz 940691 SHA256 6b2680fbf6ae9c2381d381248705857de22e05bae191889298f8e6bfb2ded4ef SHA512 fed5f6eec86144608966857f54bd69a5faa43427f27bc9178ebe2c7a1cecf925c20dbd6df07a207ae469842874efcf5b99fb7e09db59cbd92ebfc0a7e1bb62b7 WHIRLPOOL db7491bc5914eb6691aa366677c63af51979453330373251b1043b53163d1b56dbed65ba23c9f5047257e476e0d216045a06faa346790987047854ae1d04361d
30
31 diff --git a/dev-libs/libffi/files/libffi-3.0.13-emutramp_pax_proc.patch b/dev-libs/libffi/files/libffi-3.0.13-emutramp_pax_proc.patch
32 deleted file mode 100644
33 index c27bd9bf889..00000000000
34 --- a/dev-libs/libffi/files/libffi-3.0.13-emutramp_pax_proc.patch
35 +++ /dev/null
36 @@ -1,37 +0,0 @@
37 -2013-05-22 Magnus Granberg <zorry@g.o>
38 -
39 - #457194
40 - * src/closuer.c (emutramp_enabled_check): Check with /proc.
41 -
42 ---- a/src/closures.c 2013-03-17 23:27:11.000000000 +0100
43 -+++ b/src/closures.c 2013-04-29 23:26:02.279022022 +0200
44 -@@ -181,10 +181,26 @@ static int emutramp_enabled = -1;
45 - static int
46 - emutramp_enabled_check (void)
47 - {
48 -- if (getenv ("FFI_DISABLE_EMUTRAMP") == NULL)
49 -- return 1;
50 -- else
51 -+ char *buf = NULL;
52 -+ size_t len = 0;
53 -+ FILE *f;
54 -+ int ret;
55 -+ f = fopen ("/proc/self/status", "r");
56 -+ if (f == NULL)
57 - return 0;
58 -+ ret = 0;
59 -+
60 -+ while (getline (&buf, &len, f) != -1)
61 -+ if (!strncmp (buf, "PaX:", 4))
62 -+ {
63 -+ char emutramp;
64 -+ if (sscanf (buf, "%*s %*c%c", &emutramp) == 1)
65 -+ ret = (emutramp == 'E');
66 -+ break;
67 -+ }
68 -+ free (buf);
69 -+ fclose (f);
70 -+ return ret;
71 - }
72 -
73 - #define is_emutramp_enabled() (emutramp_enabled >= 0 ? emutramp_enabled \
74
75 diff --git a/dev-libs/libffi/files/libffi-3.1-execstack.patch b/dev-libs/libffi/files/libffi-3.1-execstack.patch
76 deleted file mode 100644
77 index b9943aa0a13..00000000000
78 --- a/dev-libs/libffi/files/libffi-3.1-execstack.patch
79 +++ /dev/null
80 @@ -1,12 +0,0 @@
81 -https://bugs.gentoo.org/511634
82 -https://sourceware.org/ml/libffi-discuss/2014/msg00058.html
83 -
84 ---- src/x86/win32.S
85 -+++ src/x86/win32.S
86 -@@ -1304,3 +1304,6 @@
87 -
88 - #endif /* !_MSC_VER */
89 -
90 -+#if defined __ELF__ && defined __linux__
91 -+ .section .note.GNU-stack,"",@progbits
92 -+#endif
93
94 diff --git a/dev-libs/libffi/files/libffi-3.1-typing_error.patch b/dev-libs/libffi/files/libffi-3.1-typing_error.patch
95 deleted file mode 100644
96 index 0e917020e91..00000000000
97 --- a/dev-libs/libffi/files/libffi-3.1-typing_error.patch
98 +++ /dev/null
99 @@ -1,14 +0,0 @@
100 -https://bugs.gentoo.org/511752
101 -https://sourceware.org/ml/libffi-discuss/2014/msg00059.html
102 -
103 ---- include/ffi.h.in
104 -+++ include/ffi.h.in
105 -@@ -221,7 +221,7 @@ typedef struct {
106 - #endif
107 - } ffi_cif;
108 -
109 --#if HAVE_LONG_DOUBLE_VARIANT
110 -+#if @HAVE_LONG_DOUBLE_VARIANT@
111 - /* Used to adjust size/alignment of ffi types. */
112 - void ffi_prep_types (ffi_abi abi);
113 - # endif
114
115 diff --git a/dev-libs/libffi/libffi-3.0.13-r1.ebuild b/dev-libs/libffi/libffi-3.0.13-r1.ebuild
116 deleted file mode 100644
117 index aed09f2e6a8..00000000000
118 --- a/dev-libs/libffi/libffi-3.0.13-r1.ebuild
119 +++ /dev/null
120 @@ -1,64 +0,0 @@
121 -# Copyright 1999-2017 Gentoo Foundation
122 -# Distributed under the terms of the GNU General Public License v2
123 -
124 -EAPI=5
125 -inherit eutils libtool multilib toolchain-funcs multilib-minimal
126 -
127 -DESCRIPTION="a portable, high level programming interface to various calling conventions"
128 -HOMEPAGE="https://sourceware.org/libffi/"
129 -SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
130 -
131 -LICENSE="MIT"
132 -SLOT="0"
133 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
134 -IUSE="debug pax_kernel static-libs test"
135 -
136 -RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r1
137 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
138 -DEPEND="test? ( dev-util/dejagnu )"
139 -
140 -DOCS="ChangeLog* README"
141 -
142 -ECONF_SOURCE=${S}
143 -
144 -pkg_setup() {
145 - # Check for orphaned libffi, see https://bugs.gentoo.org/354903 for example
146 - if [[ ${ROOT} == "/" && ${EPREFIX} == "" ]] && ! has_version ${CATEGORY}/${PN}; then
147 - local base="${T}"/conftest
148 - echo 'int main() { }' > "${base}".c
149 - $(tc-getCC) -o "${base}" "${base}".c -lffi >&/dev/null
150 - if [ $? -eq 0 ]; then
151 - eerror "The linker reported linking against -lffi to be working while it shouldn't have."
152 - eerror "This is wrong and you should find and delete the old copy of libffi before continuing."
153 - die "The system is in inconsistent state with unknown libffi installed."
154 - fi
155 - fi
156 -}
157 -
158 -src_prepare() {
159 - sed -i 's:@toolexeclibdir@:$(libdir):g' Makefile.in || die #462814
160 - epatch "${FILESDIR}"/${P}-emutramp_pax_proc.patch #457194
161 - epatch_user
162 - elibtoolize
163 -}
164 -
165 -multilib_src_configure() {
166 - use userland_BSD && export HOST="${CHOST}"
167 - econf \
168 - $(use_enable static-libs static) \
169 - $(use_enable pax_kernel pax_emutramp) \
170 - $(use_enable debug)
171 -}
172 -
173 -multilib_src_install_all() {
174 - prune_libtool_files
175 - einstalldocs
176 -}
177 -
178 -pkg_preinst() {
179 - preserve_old_lib /usr/$(get_libdir)/${PN}$(get_libname 5)
180 -}
181 -
182 -pkg_postinst() {
183 - preserve_old_lib_notify /usr/$(get_libdir)/${PN}$(get_libname 5)
184 -}
185
186 diff --git a/dev-libs/libffi/libffi-3.1-r3.ebuild b/dev-libs/libffi/libffi-3.1-r3.ebuild
187 deleted file mode 100644
188 index 2b71c3a3e82..00000000000
189 --- a/dev-libs/libffi/libffi-3.1-r3.ebuild
190 +++ /dev/null
191 @@ -1,62 +0,0 @@
192 -# Copyright 1999-2017 Gentoo Foundation
193 -# Distributed under the terms of the GNU General Public License v2
194 -
195 -EAPI=5
196 -inherit eutils libtool multilib multilib-minimal toolchain-funcs
197 -
198 -DESCRIPTION="a portable, high level programming interface to various calling conventions"
199 -HOMEPAGE="https://sourceware.org/libffi/"
200 -SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
201 -
202 -LICENSE="MIT"
203 -SLOT="0"
204 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
205 -IUSE="debug pax_kernel static-libs test"
206 -
207 -RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r1
208 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
209 -DEPEND="test? ( dev-util/dejagnu )"
210 -
211 -DOCS="ChangeLog* README"
212 -
213 -ECONF_SOURCE=${S}
214 -
215 -pkg_setup() {
216 - # Check for orphaned libffi, see https://bugs.gentoo.org/354903 for example
217 - if [[ ${ROOT} == "/" && ${EPREFIX} == "" ]] && ! has_version ${CATEGORY}/${PN}; then
218 - local base="${T}"/conftest
219 - echo 'int main() { }' > "${base}".c
220 - $(tc-getCC) -o "${base}" "${base}".c -lffi >&/dev/null
221 - if [ $? -eq 0 ]; then
222 - eerror "The linker reported linking against -lffi to be working while it shouldn't have."
223 - eerror "This is wrong and you should find and delete the old copy of libffi before continuing."
224 - die "The system is in inconsistent state with unknown libffi installed."
225 - fi
226 - fi
227 -}
228 -
229 -src_prepare() {
230 - epatch \
231 - "${FILESDIR}"/${P}-execstack.patch \
232 - "${FILESDIR}"/${P}-typing_error.patch
233 -
234 - sed -i -e 's:@toolexeclibdir@:$(libdir):g' Makefile.in || die #462814
235 - # https://sourceware.org/ml/libffi-discuss/2014/msg00060.html
236 - sed -i -e 's:@toolexeclibdir@:${libdir}:' libffi.pc.in || die #511726
237 -
238 - epatch_user
239 - elibtoolize
240 -}
241 -
242 -multilib_src_configure() {
243 - use userland_BSD && export HOST="${CHOST}"
244 - econf \
245 - $(use_enable static-libs static) \
246 - $(use_enable pax_kernel pax_emutramp) \
247 - $(use_enable debug)
248 -}
249 -
250 -multilib_src_install_all() {
251 - prune_libtool_files
252 - einstalldocs
253 -}
254
255 diff --git a/dev-libs/libffi/libffi-3.2.ebuild b/dev-libs/libffi/libffi-3.2.ebuild
256 deleted file mode 100644
257 index 67c52e76584..00000000000
258 --- a/dev-libs/libffi/libffi-3.2.ebuild
259 +++ /dev/null
260 @@ -1,59 +0,0 @@
261 -# Copyright 1999-2015 Gentoo Foundation
262 -# Distributed under the terms of the GNU General Public License v2
263 -
264 -EAPI=5
265 -inherit eutils libtool multilib multilib-minimal toolchain-funcs
266 -
267 -DESCRIPTION="a portable, high level programming interface to various calling conventions"
268 -HOMEPAGE="https://sourceware.org/libffi/"
269 -SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
270 -
271 -LICENSE="MIT"
272 -SLOT="0"
273 -# A number of people report python ctypes errors #529044
274 -#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
275 -IUSE="debug pax_kernel static-libs test"
276 -
277 -RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r1
278 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
279 -DEPEND="test? ( dev-util/dejagnu )"
280 -
281 -DOCS="ChangeLog* README"
282 -
283 -ECONF_SOURCE=${S}
284 -
285 -pkg_setup() {
286 - # Check for orphaned libffi, see https://bugs.gentoo.org/354903 for example
287 - if [[ ${ROOT} == "/" && ${EPREFIX} == "" ]] && ! has_version ${CATEGORY}/${PN}; then
288 - local base="${T}"/conftest
289 - echo 'int main() { }' > "${base}".c
290 - $(tc-getCC) -o "${base}" "${base}".c -lffi >&/dev/null
291 - if [ $? -eq 0 ]; then
292 - eerror "The linker reported linking against -lffi to be working while it shouldn't have."
293 - eerror "This is wrong and you should find and delete the old copy of libffi before continuing."
294 - die "The system is in inconsistent state with unknown libffi installed."
295 - fi
296 - fi
297 -}
298 -
299 -src_prepare() {
300 - sed -i -e 's:@toolexeclibdir@:$(libdir):g' Makefile.in || die #462814
301 -
302 - epatch "${FILESDIR}"/${PN}-3.1-darwin-x32.patch
303 -
304 - epatch_user
305 - elibtoolize
306 -}
307 -
308 -multilib_src_configure() {
309 - use userland_BSD && export HOST="${CHOST}"
310 - econf \
311 - $(use_enable static-libs static) \
312 - $(use_enable pax_kernel pax_emutramp) \
313 - $(use_enable debug)
314 -}
315 -
316 -multilib_src_install_all() {
317 - prune_libtool_files
318 - einstalldocs
319 -}