Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libunwind: metadata.xml ChangeLog libunwind-1.0.1-r1.ebuild
Date: Thu, 31 May 2012 20:35:50
Message-Id: 20120531203529.DBE062004B@flycatcher.gentoo.org
1 ssuominen 12/05/31 20:35:29
2
3 Modified: metadata.xml ChangeLog
4 Added: libunwind-1.0.1-r1.ebuild
5 Log:
6 Enable conservative checks with USE="debug", always pass --enable-cxx-exceptions and USE="debug-frame" for DWARF .debug_frame section information support wrt #418253 by Alexis Ballier and Mike Frysinger
7
8 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.2 sys-libs/libunwind/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libunwind/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 9 Apr 2005 02:13:35 -0000 1.1
24 +++ metadata.xml 31 May 2012 20:35:29 -0000 1.2
25 @@ -1,5 +1,8 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 -<herd>toolchain</herd>
30 + <herd>toolchain</herd>
31 + <use>
32 + <flag name='debug-frame'>Adds support for DWARF .debug_frame section: Use the information from this section if available</flag>
33 + </use>
34 </pkgmetadata>
35
36
37
38 1.18 sys-libs/libunwind/ChangeLog
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/ChangeLog?rev=1.18&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/ChangeLog?rev=1.18&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/ChangeLog?r1=1.17&r2=1.18
43
44 Index: ChangeLog
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libunwind/ChangeLog,v
47 retrieving revision 1.17
48 retrieving revision 1.18
49 diff -u -r1.17 -r1.18
50 --- ChangeLog 18 Sep 2011 05:49:01 -0000 1.17
51 +++ ChangeLog 31 May 2012 20:35:29 -0000 1.18
52 @@ -1,6 +1,14 @@
53 # ChangeLog for sys-libs/libunwind
54 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
55 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libunwind/ChangeLog,v 1.17 2011/09/18 05:49:01 vapier Exp $
56 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
57 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libunwind/ChangeLog,v 1.18 2012/05/31 20:35:29 ssuominen Exp $
58 +
59 +*libunwind-1.0.1-r1 (31 May 2012)
60 +
61 + 31 May 2012; Samuli Suominen <ssuominen@g.o>
62 + +libunwind-1.0.1-r1.ebuild, metadata.xml:
63 + Enable conservative checks with USE="debug", always pass
64 + --enable-cxx-exceptions and USE="debug-frame" for DWARF .debug_frame section
65 + information support wrt #418253 by Alexis Ballier and Mike Frysinger
66
67 *libunwind-1.0.1 (18 Sep 2011)
68
69
70
71
72 1.1 sys-libs/libunwind/libunwind-1.0.1-r1.ebuild
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/libunwind-1.0.1-r1.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libunwind/libunwind-1.0.1-r1.ebuild?rev=1.1&content-type=text/plain
76
77 Index: libunwind-1.0.1-r1.ebuild
78 ===================================================================
79 # Copyright 1999-2012 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libunwind/libunwind-1.0.1-r1.ebuild,v 1.1 2012/05/31 20:35:29 ssuominen Exp $
82
83 EAPI="4"
84
85 inherit autotools eutils
86
87 DESCRIPTION="Portable and efficient API to determine the call-chain of a program"
88 HOMEPAGE="http://savannah.nongnu.org/projects/libunwind"
89 SRC_URI="http://download.savannah.nongnu.org/releases/libunwind/${P}.tar.gz"
90
91 LICENSE="MIT"
92 SLOT="7"
93 KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
94 IUSE="debug debug-frame static-libs"
95
96 # https://savannah.nongnu.org/bugs/?22368
97 # https://bugs.gentoo.org/273372
98 RESTRICT="test"
99
100 DOCS=( AUTHORS ChangeLog NEWS README TODO )
101
102 QA_DT_NEEDED_x86_fbsd="usr/lib/libunwind.so.7.0.0"
103
104 src_prepare() {
105 epatch "${FILESDIR}"/${PN}-1.0.1-disable-setjmp.patch
106 eautoreconf
107 }
108
109 src_configure() {
110 # do not $(use_enable) because the configure.in is broken and parses
111 # --disable-debug the same as --enable-debug.
112 # https://savannah.nongnu.org/bugs/index.php?34324
113 # --enable-cxx-exceptions: always enable it, headers provide the interface
114 # and on some archs it is disabled by default causing a mismatch between the
115 # API and the ABI, bug #418253
116 # conservative-checks: validate memory addresses before use; as of 1.0.1,
117 # only x86_64 supports this, yet may be useful for debugging, couple it with
118 # debug useflag.
119 econf \
120 --enable-cxx-exceptions \
121 $(use_enable debug-frame) \
122 $(use_enable static-libs static) \
123 $(use_enable debug conservative_checks) \
124 $(use debug && echo --enable-debug)
125 }
126
127 src_test() {
128 # explicitly allow parallel build of tests
129 emake check
130 }
131
132 src_install() {
133 default
134 # libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without
135 # shared library, so we keep it in any case
136 use static-libs || rm -f "${ED}"usr/lib*/libunwind{-generic.a,*.la}
137 }