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.0.10_rc5.ebuild
Date: Wed, 23 Feb 2011 17:21:21
Message-Id: 20110223172111.3E4C820054@flycatcher.gentoo.org
1 ssuominen 11/02/23 17:21:11
2
3 Modified: ChangeLog libffi-3.0.10_rc5.ebuild
4 Log:
5 Detect and document broken installation of sys-devel/gcc in the build.log wrt #354903
6
7 (Portage version: 2.2.0_alpha24/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.113 dev-libs/libffi/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/ChangeLog?rev=1.113&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/ChangeLog?rev=1.113&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/ChangeLog?r1=1.112&r2=1.113
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v
19 retrieving revision 1.112
20 retrieving revision 1.113
21 diff -u -r1.112 -r1.113
22 --- ChangeLog 15 Feb 2011 17:51:42 -0000 1.112
23 +++ ChangeLog 23 Feb 2011 17:21:11 -0000 1.113
24 @@ -1,6 +1,10 @@
25 # ChangeLog for dev-libs/libffi
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.112 2011/02/15 17:51:42 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.113 2011/02/23 17:21:11 ssuominen Exp $
29 +
30 + 23 Feb 2011; Samuli Suominen <ssuominen@g.o> libffi-3.0.10_rc5.ebuild:
31 + Detect and document broken installation of sys-devel/gcc in the build.log wrt
32 + #354903
33
34 *libffi-3.0.10_rc5 (15 Feb 2011)
35
36
37
38
39 1.2 dev-libs/libffi/libffi-3.0.10_rc5.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/libffi-3.0.10_rc5.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/libffi-3.0.10_rc5.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/libffi-3.0.10_rc5.ebuild?r1=1.1&r2=1.2
44
45 Index: libffi-3.0.10_rc5.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.10_rc5.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- libffi-3.0.10_rc5.ebuild 15 Feb 2011 17:51:42 -0000 1.1
52 +++ libffi-3.0.10_rc5.ebuild 23 Feb 2011 17:21:11 -0000 1.2
53 @@ -1,12 +1,12 @@
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.10_rc5.ebuild,v 1.1 2011/02/15 17:51:42 ssuominen Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.10_rc5.ebuild,v 1.2 2011/02/23 17:21:11 ssuominen Exp $
58
59 EAPI=2
60
61 MY_P=${P/_}
62
63 -inherit libtool
64 +inherit libtool toolchain-funcs
65
66 DESCRIPTION="a portable, high level programming interface to various calling conventions."
67 HOMEPAGE="http://sourceware.org/libffi/"
68 @@ -22,6 +22,16 @@
69
70 S=${WORKDIR}/${MY_P}
71
72 +pkg_setup() {
73 + # Detect and document broken installation of sys-devel/gcc in the build.log wrt #354903
74 + if ! has_version dev-libs/libffi; then
75 + local base="${T}/conftest"
76 + echo 'int main() { }' > "${base}.c"
77 + $(tc-getCC) -o "${base}" "${base}.c" -lffi >&/dev/null && \
78 + ewarn "Found a copy of second libffi in your system. Uninstall it before continuing."
79 + fi
80 +}
81 +
82 src_prepare() {
83 elibtoolize
84 }