Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/elfutils: elfutils-0.161.ebuild ChangeLog
Date: Wed, 31 Dec 2014 08:26:00
Message-Id: 20141231082555.F28E1E8DD@oystercatcher.gentoo.org
1 vapier 14/12/31 08:25:55
2
3 Modified: ChangeLog
4 Added: elfutils-0.161.ebuild
5 Log:
6 Version bump and libelf directory traversal fix from upstream #534000 by Agostino Sarubbo.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.191 dev-libs/elfutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/ChangeLog?rev=1.191&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/ChangeLog?rev=1.191&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/ChangeLog?r1=1.190&r2=1.191
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v
20 retrieving revision 1.190
21 retrieving revision 1.191
22 diff -u -r1.190 -r1.191
23 --- ChangeLog 1 Sep 2014 09:02:16 -0000 1.190
24 +++ ChangeLog 31 Dec 2014 08:25:55 -0000 1.191
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-libs/elfutils
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.190 2014/09/01 09:02:16 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.191 2014/12/31 08:25:55 vapier Exp $
30 +
31 +*elfutils-0.161 (31 Dec 2014)
32 +
33 + 31 Dec 2014; Mike Frysinger <vapier@g.o> +elfutils-0.161.ebuild,
34 + +files/elfutils-0.161-libelf-dir-traversal.patch:
35 + Version bump and libelf directory traversal fix from upstream #534000 by
36 + Agostino Sarubbo.
37
38 *elfutils-0.160 (01 Sep 2014)
39
40
41
42
43 1.1 dev-libs/elfutils/elfutils-0.161.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/elfutils-0.161.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/elfutils-0.161.ebuild?rev=1.1&content-type=text/plain
47
48 Index: elfutils-0.161.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/elfutils/elfutils-0.161.ebuild,v 1.1 2014/12/31 08:25:55 vapier Exp $
53
54 EAPI="4"
55
56 inherit eutils flag-o-matic multilib-minimal
57
58 DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
59 HOMEPAGE="https://fedorahosted.org/elfutils/"
60 SRC_URI="https://fedorahosted.org/releases/e/l/${PN}/${PV}/${P}.tar.bz2
61 https://fedorahosted.org/releases/e/l/${PN}/${PV}/${PN}-portability-${PV}.patch -> ${P}-portability.patch"
62
63 LICENSE="GPL-2-with-exceptions"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
66 IUSE="bzip2 lzma nls static-libs test +threads +utils zlib"
67
68 # This pkg does not actually seem to compile currently in a uClibc
69 # environment (xrealloc errs), but we need to ensure that glibc never
70 # gets pulled in as a dep since this package does not respect virtual/libc
71 RDEPEND="zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
72 bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
73 lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
74 !dev-libs/libelf
75 abi_x86_32? (
76 !<=app-emulation/emul-linux-x86-baselibs-20130224-r11
77 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
78 )"
79 DEPEND="${RDEPEND}
80 nls? ( sys-devel/gettext )
81 >=sys-devel/flex-2.5.4a
82 sys-devel/m4"
83
84 src_prepare() {
85 epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
86 epatch "${DISTDIR}"/${P}-portability.patch
87 epatch "${FILESDIR}"/${P}-libelf-dir-traversal.patch #534000
88 use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
89 sed -i 's:-Werror::' */Makefile.in
90 # some patches touch both configure and configure.ac
91 find -type f -exec touch -r configure {} +
92 }
93
94 src_configure() {
95 use test && append-flags -g #407135
96 multilib-minimal_src_configure
97 }
98
99 multilib_src_configure() {
100 ECONF_SOURCE="${S}" econf \
101 --disable-werror \
102 $(use_enable nls) \
103 $(use_enable threads thread-safety) \
104 --program-prefix="eu-" \
105 $(use_with zlib) \
106 $(use_with bzip2 bzlib) \
107 $(use_with lzma)
108 }
109
110 multilib_src_test() {
111 env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
112 LC_ALL="C" \
113 emake check || die
114 }
115
116 multilib_src_install_all() {
117 einstalldocs
118 dodoc NOTES
119 # These build quick, and are needed for most tests, so don't
120 # disable their building when the USE flag is disabled.
121 use utils || rm -rf "${ED}"/usr/bin
122 }