Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libffi: ChangeLog libffi-3.1-r3.ebuild
Date: Fri, 30 May 2014 11:09:01
Message-Id: 20140530110856.E360D2004E@flycatcher.gentoo.org
1 ssuominen 14/05/30 11:08:56
2
3 Modified: ChangeLog
4 Added: libffi-3.1-r3.ebuild
5 Log:
6 Fix typing error in ffi.h.in (missing @@) wrt #511752 by Ryan Hill and Patrick Lauer
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.191 dev-libs/libffi/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/ChangeLog?rev=1.191&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/ChangeLog?rev=1.191&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/ChangeLog?r1=1.190&r2=1.191
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v
20 retrieving revision 1.190
21 retrieving revision 1.191
22 diff -u -r1.190 -r1.191
23 --- ChangeLog 29 May 2014 04:51:18 -0000 1.190
24 +++ ChangeLog 30 May 2014 11:08:56 -0000 1.191
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-libs/libffi
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.190 2014/05/29 04:51:18 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.191 2014/05/30 11:08:56 ssuominen Exp $
30 +
31 +*libffi-3.1-r3 (30 May 2014)
32 +
33 + 30 May 2014; Samuli Suominen <ssuominen@g.o> +libffi-3.1-r3.ebuild,
34 + +files/libffi-3.1-typing_error.patch:
35 + Fix typing error in ffi.h.in (missing @@) wrt #511752 by Ryan Hill and
36 + Patrick Lauer
37
38 29 May 2014; Samuli Suominen <ssuominen@g.o> -libffi-3.1-r1.ebuild,
39 -libffi-3.1.ebuild:
40
41
42
43 1.1 dev-libs/libffi/libffi-3.1-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/libffi-3.1-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/libffi-3.1-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libffi-3.1-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.1-r3.ebuild,v 1.1 2014/05/30 11:08:56 ssuominen Exp $
53
54 EAPI=5
55 inherit eutils libtool multilib multilib-minimal toolchain-funcs
56
57 DESCRIPTION="a portable, high level programming interface to various calling conventions."
58 HOMEPAGE="http://sourceware.org/libffi/"
59 SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
60
61 LICENSE="MIT"
62 SLOT="0"
63 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"
64 IUSE="debug pax_kernel static-libs test"
65
66 RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r1
67 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
68 DEPEND="test? ( dev-util/dejagnu )"
69
70 DOCS="ChangeLog* README"
71
72 ECONF_SOURCE=${S}
73
74 pkg_setup() {
75 # Check for orphaned libffi, see http://bugs.gentoo.org/354903 for example
76 if [[ ${ROOT} == "/" && ${EPREFIX} == "" ]] && ! has_version ${CATEGORY}/${PN}; then
77 local base="${T}"/conftest
78 echo 'int main() { }' > "${base}".c
79 $(tc-getCC) -o "${base}" "${base}".c -lffi >&/dev/null
80 if [ $? -eq 0 ]; then
81 eerror "The linker reported linking against -lffi to be working while it shouldn't have."
82 eerror "This is wrong and you should find and delete the old copy of libffi before continuing."
83 die "The system is in inconsistent state with unknown libffi installed."
84 fi
85 fi
86 }
87
88 src_prepare() {
89 epatch \
90 "${FILESDIR}"/${P}-execstack.patch \
91 "${FILESDIR}"/${P}-typing_error.patch
92
93 sed -i -e 's:@toolexeclibdir@:$(libdir):g' Makefile.in || die #462814
94 # http://sourceware.org/ml/libffi-discuss/2014/msg00060.html
95 sed -i -e 's:@toolexeclibdir@:${libdir}:' libffi.pc.in || die #511726
96
97 epatch_user
98 elibtoolize
99 }
100
101 multilib_src_configure() {
102 use userland_BSD && export HOST="${CHOST}"
103 econf \
104 $(use_enable static-libs static) \
105 $(use_enable pax_kernel pax_emutramp) \
106 $(use_enable debug)
107 }
108
109 multilib_src_install_all() {
110 prune_libtool_files
111 einstalldocs
112 }