ChangeLog

# ChangeLog for dev-libs/elfutils
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.116 2008/05/10 12:08:25 vapier Exp $

10 May 2008; Mike Frysinger
files/elfutils-0.131-gnu-inline.patch:
Fix building with no optimization #220641.

10 May 2008; Mike Frysinger elfutils-0.131-r2.ebuild:
Make sure we carry forward the PaX fix #219848.

*elfutils-0.131-r2 (20 Apr 2008)

20 Apr 2008; Mike Frysinger
+files/elfutils-0.131-gnu-inline.patch, +elfutils-0.131-r2.ebuild:
Use Debian patched tarball to fix #158438 and add fix by Ryan Hill for
building with gcc-4.3 #204610.

*elfutils-0.131-r1 (06 Jan 2008)

06 Jan 2008; Mike Frysinger +elfutils-0.131-r1.ebuild:
Change off64_t in libelf.h to __off64_t as the latter type is not always
available #204502 by Ryan Hill.

*elfutils-0.131 (30 Dec 2007)

30 Dec 2007; Diego Pettenò +elfutils-0.131.ebuild:
Version bump, needed for dev-util/dwarves.

20 Nov 2007; Samuli Suominen elfutils-0.127.ebuild:
amd64 stable too, closing also bug 196489.

19 Nov 2007; Joshua Kinard elfutils-0.127.ebuild:
Stable on mips.

27 Sep 2007; Jeroen Roovers elfutils-0.127.ebuild:
Stable for HPPA too.

13 Aug 2007; Tobias Scherbaum
elfutils-0.127.ebuild:
ppc. stable

13 Aug 2007; Gustavo Zacarias elfutils-0.127.ebuild:
Stable on sparc

24 Jul 2007; Raúl Porcel elfutils-0.127.ebuild:
alpha stable

21 Jul 2007; Tom Gall elfutils-0.127.ebuild:
stable on ppc64

28 Jun 2007; Raúl Porcel elfutils-0.127.ebuild:
ia64/x86 stable

12 May 2007; Joshua Kinard elfutils-0.125.ebuild:
Stable on mips for #165798.

*elfutils-0.127 (04 May 2007)

04 May 2007; Mike Frysinger +elfutils-0.127.ebuild:
Version bump #175753 by Raul Porcel.

23 Apr 2007; Gustavo Zacarias elfutils-0.125.ebuild:
Stable on sparc

21 Apr 2007; Raúl Porcel elfutils-0.125.ebuild:
ia64 stable

15 Apr 2007; Markus Rothe elfutils-0.125.ebuild:
Stable on ppc64

06 Apr 2007; Tobias Scherbaum
elfutils-0.125.ebuild:
ppc stable

20 Mar 2007; Raúl Porcel elfutils-0.125.ebuild:
x86 stable

05 Mar 2007; Jeroen Roovers elfutils-0.125.ebuild:
Stable for HPPA.

14 Feb 2007; Chris Gianelloni elfutils-0.123.ebuild:
Stable on alpha wrt bug #165798.

13 Feb 2007; Markus Rothe elfutils-0.123.ebuild:
Stable on ppc64; bug #165798

12 Feb 2007; Gustavo Zacarias elfutils-0.123.ebuild:
Stable on sparc wrt #165798

12 Feb 2007; Simon Stelling elfutils-0.123.ebuild:
stable on amd64; bug 165798

10 Feb 2007; Jeroen Roovers elfutils-0.123.ebuild:
Stable for HPPA (bug #165798).

10 Feb 2007; nixnut elfutils-0.123.ebuild:
Stable on ppc wrt bug 165798

10 Feb 2007; Christian Faulhammer
elfutils-0.123.ebuild:
stable x86; bug #165798

*elfutils-0.125 (15 Jan 2007)

15 Jan 2007; Mike Frysinger +elfutils-0.125.ebuild:
Version bump.

28 Nov 2006; Jeroen Roovers elfutils-0.118.ebuild:
Stable for HPPA (bug #130121).

20 Oct 2006; Bryan Østergaard elfutils-0.118.ebuild:
Stable on Alpha.

*elfutils-0.123 (26 Sep 2006)

26 Sep 2006; Mike Frysinger +elfutils-0.123.ebuild:
Version bump.

*elfutils-0.122 (25 Jul 2006)

25 Jul 2006; Martin Schlemmer +elfutils-0.122.ebuild:
Update version.

28 Apr 2006; Joseph Jezak elfutils-0.118.ebuild:
Marked ppc stable for bug #130121.

29 Apr 2006; Joshua Kinard elfutils-0.118.ebuild:
Marked stable on mips.

20 Apr 2006; Mike Frysinger
+files/elfutils-0.118-glibc-hacks.patch, elfutils-0.118.ebuild:
Add a hack for old glibc installs #130121.

18 Apr 2006; Markus Rothe elfutils-0.118.ebuild:
Stable on ppc64; bug #130121

18 Apr 2006; Patrick McLean elfutils-0.118.ebuild:
Stable on amd64 (bug 130121).

18 Apr 2006; Krzysiek Pawlik elfutils-0.118.ebuild:
Stable on x86, see bug #130121.

*elfutils-0.120 (16 Apr 2006)

16 Apr 2006; Mike Frysinger
+files/elfutils-0.120-mkinstalldirs.patch, +elfutils-0.120.ebuild:
Version bump.

13 Jan 2006; Mike Frysinger elfutils-0.108.ebuild,
elfutils-0.108-r1.ebuild, elfutils-0.118.ebuild:
Force nls since the package refuses to build without it.

06 Jan 2006; Mike Frysinger
+files/elfutils-0.118-no-nested-functions.patch, elfutils-0.118.ebuild:
Add a hack so eu-nm is not generated with an executable stack #116968 by
Benno Schulenberg.

19 Dec 2005; Mike Frysinger
+files/elfutils-0.118-libelf-link.patch, elfutils-0.118.ebuild:
Fix linking of utilities with libelf #115385.

17 Dec 2005; Mike Frysinger
+files/elfutils-0.118-PaX-support.patch, elfutils-0.118.ebuild:
Kevin F. Quinn: fix PaX support #115100.

10 Dec 2005; elfutils-0.108-r1.ebuild,
elfutils-0.108.ebuild, elfutils-0.118.ebuild:
- changed depends to use elibc_glibc vs !elibc_uclibc

*elfutils-0.118 (10 Dec 2005)

10 Dec 2005; Martin Schlemmer +elfutils-0.118.ebuild:
New release.

16 Sep 2005; Ciaran McCreesh ChangeLog:
Converted to UTF-8, fixed encoding screwups

24 Jul 2005; Martin Schlemmer
-files/elfutils-0.108-robustify3.patch, elfutils-0.108-r1.ebuild:
Move robustify3.patch to mirrors, bug #99961.

*elfutils-0.108-r1 (20 Jul 2005)

20 Jul 2005; Martin Schlemmer
+files/elfutils-0.108-robustify3.patch, +elfutils-0.108-r1.ebuild:
Update robustify patch.

03 Jun 2005; Stephen P. Becker elfutils-0.108.ebuild:
stable on mips

01 Jun 2005; +metadata.xml,
-files/elfutils-0.101-portability.patch,
-files/elfutils-0.94-alpha-mips-atime.diff,
-files/elfutils-sections-heap-overflow.diff, -elfutils-0.101-r1.ebuild,
-elfutils-0.101.ebuild, -elfutils-0.94-r1.ebuild, -elfutils-0.94-r2.ebuild,
-elfutils-0.97-r1.ebuild, -elfutils-0.97.ebuild:
- Remove old ebuilds.
- Added a metadata.xml (assigned to toolchain@) for now.
- Ready for GLSA.

29 May 2005; elfutils-0.101-r1.ebuild,
elfutils-0.101.ebuild, elfutils-0.108.ebuild, elfutils-0.94-r1.ebuild,
elfutils-0.94-r2.ebuild, elfutils-0.97-r1.ebuild, elfutils-0.97.ebuild:
echangelog - update package to use libc expanded variable elibc_uclibc vs
uclibc so USE=-* works

22 May 2005; Olivier Crête elfutils-0.108.ebuild:
Marking stable on x86 per security bug #91398

20 May 2005; Bryan Østergaard elfutils-0.108.ebuild:
Stable on alpha + ia64, bug 91817.

19 May 2005; Gustavo Zacarias elfutils-0.108.ebuild:
Stable on sparc wrt #91817

19 May 2005; Jan Brinkmann elfutils-0.108.ebuild:
stable on amd64 wrt #91817

19 May 2005; Rene Nussbaumer elfutils-0.108.ebuild:
stable on hppa; bug #91817

19 May 2005; Michael Hanselmann elfutils-0.108.ebuild:
Stable on ppc.

19 May 2005; Yuta SATOH elfutils-0.108.ebuild:
Stable on ppc64, bug #91817

17 May 2005; +files/elfutils-0.108-robustify2.patch,
elfutils-0.108.ebuild:
- add additional incremental from Jakub which solves remaining regression
failure with elfutils that we found. This version or a 0.109 is what arches
will want to mark stable in general

*elfutils-0.108 (17 May 2005)

17 May 2005; +files/elfutils-0.108-portability.patch,
+elfutils-0.108.ebuild:
- version bump to 0.108 and added a new patch from Jakub Jelinek to fix misc
crashes and the heap overflow on some invalid ELF files

15 May 2005; Bryan Østergaard
elfutils-0.94-r2.ebuild:
Stable on alpha + ia64, bug 91817.

15 May 2005; Markus Rothe elfutils-0.97-r1.ebuild:
Stable on ppc64; bug #91817

14 May 2005; Olivier Crête elfutils-0.94-r2.ebuild:
Stable on x86 per security bug #91817

13 May 2005; Rene Nussbaumer
elfutils-0.94-r2.ebuild:
Stable on hppa; bug #91817

13 May 2005; Gustavo Zacarias
elfutils-0.94-r2.ebuild:
Stable on sparc wrt #91817

13 May 2005; Jan Brinkmann elfutils-0.94-r2.ebuild:
stable on amd64 wrt #91817

13 May 2005; Michael Hanselmann
elfutils-0.94-r2.ebuild:
Stable on ppc.

*elfutils-0.94-r2 (12 May 2005)

12 May 2005; Tavis Ormandy
+files/elfutils-sections-heap-overflow.diff, +elfutils-0.101-r1.ebuild,
+elfutils-0.94-r2.ebuild, +elfutils-0.97-r1.ebuild:
fix for #91817

31 Mar 2005; Aron Griffis elfutils-0.97.ebuild:
stable on ia64

17 Mar 2005; Markus Rothe elfutils-0.97.ebuild:
Stable on ppc64; bug #85575

*elfutils-0.101 (13 Mar 2005)

13 Mar 2005; Martin Schlemmer
+files/elfutils-0.101-bswap.patch,
+files/elfutils-0.101-portability.patch, +elfutils-0.101.ebuild:
Update version.

17 Feb 2005; Markus Rothe elfutils-0.97.ebuild:
Added ~ppc64 to KEYWORDS

*elfutils-0.97 (09 Feb 2005)

09 Feb 2005; Mike Frysinger +elfutils-0.97.ebuild:
Version bump.

25 Nov 2004; Daniel Black elfutils-0.94-r1.ebuild:
fixed test routine as per bug #72347. Thanks to Sébastien DIAZ


02 Aug 2004; elfutils-0.94-r1.ebuild:
elfutils does not actually seem to compile currently in a uClibc environment
(xrealloc errs), but we need to ensure that glibc never gets pulled in as a
dep, since this package does not respect virtual/libc

20 Apr 2004; elfutils-0.94-r1.ebuild:
Add missing ia64 keyword

16 Apr 2004; elfutils-0.94-r1.ebuild:
files/elfutils-0.94-alpha-mips-atime.diff: Fix 0.94 compilation on mips and
alpha

11 Apr 2004; elfutils-0.94-r1.ebuild:
Stable on all archs

09 Apr 2004; elfutils-0.89.ebuild:
Stable on mips

22 Mar 2004; Jason Wever elfutils-0.84.ebuild:
Marked stable on sparc.

07 Mar 2004; Jason Wever elfutils-0.94-r1.ebuild:
Added ~sparc keyword, fixes bug #43828.

*elfutils-0.94-r1 (29 Feb 2004)

29 Feb 2004; Martin Schlemmer elfutils-0.94-r1.ebuild:
Utils need libdw ...

*elfutils-0.94 (24 Feb 2004)

24 Feb 2004; Stefan Jones :
New version from what was RedHat rawhide. x86 only

22 Feb 2004; elfutils-0.89.ebuild:
files/elfutils-0.89-alpha-mips-atime.diff: Fix 0.89 compilation on mips

22 Feb 2004; elfutils-0.84.ebuild:
Fix 0.84 compilation on mips

31 Dec 2003; Aron Griffis elfutils-0.89.ebuild:
Stable on alpha and ia64 to support ircd-hybrid

14 Dec 2003; Guy Martin elfutils-0.84.ebuild:
Marked stable on hppa.

14 Nov 2003; Brad House elfutils-0.89.ebuild:
add ~amd64 flag

13 Nov 2003; elfutils-0.76-r2.ebuild:
added mips to KEYWORDS

29 Oct 2003; Seemant Kulleen elfutils-0.89.ebuild:
added nls USE flag check

26 Oct 2003; Aron Griffis
files/elfutils-0.89-atime.diff:
Fix 0.89 compilation on alpha

*elfutils-0.89 (20 Oct 2003)

30 Oct 2003; Stefan Jones :
New version

*elfutils-0.84 (23 Aug 2003)

30 Sep 2003; Joshua Kinard elfutils-0.84.ebuild:
Added ~mips to KEYWORDS

03 Sep 2003; Stefan Jones :
Move to stable and require binutils-2.14.90.0.6

01 Sep 2003; Stefan Jones :
Add patch for alpha for st_atime, bug #27372

27 Aug 2003; Stefan Jones :
Mark stable as unstable till sys-devel/binutils-2.14.90.0.6-r1
becomes stable, without it fails to compile

27 Aug 2003; Stefan Jones :
Mark stable as fixes #19285

23 Aug 2003; Stefan Jones :
New version for testing.
It seems on my system the hidden patch is not needed anymore

*elfutils-0.76-r2 (14 May 2003)

23 Aug 2003; Luca Barbato :
Setting ppc for elfutils-0.76-r2, fixes bug 27017.

27 June 2003; Stefan Jones :
Opps, adding it back, I was wrong ...

24 June 2003; Stefan Jones :
Remove from portage as bug fix is not needed anymore,
it was a gcc / binutils bug. sys-devel/binutils-2.14.90.0.2
works fine

14 May 2003; Stefan Jones elfutils-0.76-hidden.diff :
Added patch to fix bug #20948

*elfutils-0.76-r1 (24 Apr 2003)

24 June 2003; Stefan Jones :
Added to stable amd64 tree.

24 Apr 2003; Martin Holzer elfutils-0.76-r1.ebuild:
Removed /usr/usr/share. closes #19758.

*elfutils-0.76 (08 Mar 2003)

14 Apr 2003; Stefan Jones elfutils-0.76.ebuild :
Moved to stable tree.

08 Mar 2003; Martin Schlemmer elfutils-0.76.ebuild :
Update version.

*elfutils-0.73 (03 Feb 2003)

03 Feb 2003; Martin Schlemmer elfutils-0.73.ebuild :
Update version.

*elfutils-0.72 (02 Jan 2003)

13 Jan 2003; Stefan Jones elfutils-0.72.ebuild :
Zapped -Werror as per bugreport, even with newer gcc's it fails without.

07 Jan 2003; Stefan Jones elfutils-0.72.ebuild :
Requires sys-devel/gcc-3.2.1-r6 or higher

02 Jan 2003; Martin Schlemmer elfutils-0.72.ebuild :
Initial release. Unfortunately there are no source tarballs for this
on a public ftp/http server, so we need to check for new releases:

http://rawhide.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX elfutils-0.118-PaX-support.patch 954 RMD160 ed86dfec7b51b273721f3dd0c6e11bba935e6c1e SHA1 baaaa3686902c3f4ce9f81f7a83e2e66ba1575d2 SHA256 e769e1168dc645ce99655f984f5c19a54d765210cacd098556b6b68743b877fa
AUX elfutils-0.131-gnu-inline.patch 8899 RMD160 6c41d63b3e231eda0ba2f337a206bf649ec85729 SHA1 53d0d15bc925f559471e2ab0ad86539208f93140 SHA256 69e1781732b3babd00d6fbc5976f908d293942cc3f253f451e9c22f49ee6b7b6
DIST elfutils-0.127-patches-1.0.tar.bz2 19950 RMD160 7bd6e8fd52a2c5df3b423a6e9f553a745dab6047 SHA1 20591f01ae916464aa28ca291e96a3d3a632dd4f SHA256 ccaa15294c9a1e11b6b0d0cf20ea2f882a8fbda47141301b5af57db5064f23eb
DIST elfutils-0.127.tar.gz 1247883 RMD160 f083e5d3d5fdbb82f15a95f4b420c0086d2f52e1 SHA1 2b6074069960ed9258df0efc9899e7a3a0be5aeb SHA256 bb5d2a846dbb5c9e779cec37a0ebdb4b1c8071131cfcce05358a08367281c38a
DIST elfutils-0.131-patches-1.0.tar.bz2 16640 RMD160 28c168d3d3f6731697354ab867a25c99c387ed32 SHA1 d83422054505c8e265afda85946b930636cc1321 SHA256 f959d97b68a53eedf1712bdfbf496faae0de5a0e2474aa5641a9811263b5ff8e
DIST elfutils-0.131.tar.gz 1412328 RMD160 18483d0d03e642eafdceabdfcebf88456b5aafba SHA1 d371731e3c09f05aad05f9b02ac2abc049528fac SHA256 947a9566a622f701a2fe2416d3b85b397d38d5f4189da91fc0a306b4d9950e6f
DIST elfutils_0.131.orig.tar.gz 1412328 RMD160 18483d0d03e642eafdceabdfcebf88456b5aafba SHA1 d371731e3c09f05aad05f9b02ac2abc049528fac SHA256 947a9566a622f701a2fe2416d3b85b397d38d5f4189da91fc0a306b4d9950e6f
EBUILD elfutils-0.127.ebuild 1634 RMD160 e54b2eebd01feae4d5f744b74a659b378f63292e SHA1 8f25094d816c1dda4fdef7ace8e7dee720776f09 SHA256 4122c95b20f86d5d6ac53f5a84d4c947cc837199f970041d66e871f1617133ea
EBUILD elfutils-0.131-r1.ebuild 1718 RMD160 3f616ab94b1e857de1debb37861393010027d6b1 SHA1 aa77b3e6fbf17a6a345b114cc79e143a44955fa8 SHA256 33dfcd202766305fa203e77c8ef2eee5819f456fddef1f5e063bb5445f4f88c0
EBUILD elfutils-0.131-r2.ebuild 1673 RMD160 ee2cd8c3081aa633773972416e5714397991794e SHA1 4bcc0da29b0685261c8370f01fae89df173226cb SHA256 282a07329509758fee1ede0f27f397f5091f1f18d03cf2640ce43154d503a302
MISC ChangeLog 14714 RMD160 a9c80fa171cfe0f4dfc7dae803544632e0502947 SHA1 3c37472ac384427ac9e3d3efe3a6f37e1016aed9 SHA256 6edf41215380b9dffafb5e9fe26d458fcacc98cad3c5ff4cc3c7b5204ee853d5
MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFIJZCGj9hvisErhMIRArO8AJ4g5XmH01IZWG8TKoJrn4eEuRuepQCfYA1O
N3cDFYBW0a2VvXukYaKt3I8=
=azgu
-----END PGP SIGNATURE-----

elfutils-0.127.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.127.ebuild,v 1.10 2007/11/20 10:25:10 drac Exp $

inherit eutils autotools

PVER="1.0"
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
HOMEPAGE="http://people.redhat.com/drepper/"
SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz
mirror://gentoo/${P}-patches-${PVER}.tar.bz2"

LICENSE="OpenSoftware"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
IUSE=""

# This pkg does not actually seem to compile currently in a uClibc
# environment (xrealloc errs), but we need to ensure that glibc never
# gets pulled in as a dep since this package does not respect virtual/libc
DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3.2 )
sys-devel/gettext
sys-devel/autoconf
>=sys-devel/binutils-2.15.90.0.1
>=sys-devel/gcc-3.3.3
!dev-libs/libelf"
RDEPEND=""

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/patch/*.patch
# this will make more files +x than need be, but who cares really
chmod a+rx config/*

AT_M4DIR="${S}/m4" eautoreconf
find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
}

src_compile() {
econf \
--program-prefix="eu-" \
--enable-shared \
|| die "./configure failed"
emake || die
}

src_test() {
env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \
make check || die "test failed"
}

src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
}

elfutils-0.131-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.131-r1.ebuild,v 1.1 2008/01/06 17:38:46 vapier Exp $

inherit eutils autotools

PVER="1.0"
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
HOMEPAGE="http://people.redhat.com/drepper/"
SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz
mirror://gentoo/${P}-patches-${PVER}.tar.bz2"

LICENSE="OpenSoftware"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""

# This pkg does not actually seem to compile currently in a uClibc
# environment (xrealloc errs), but we need to ensure that glibc never
# gets pulled in as a dep since this package does not respect virtual/libc
DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3.2 )
sys-devel/gettext
sys-devel/autoconf
>=sys-devel/binutils-2.15.90.0.1
>=sys-devel/gcc-3.3.3
!dev-libs/libelf"
RDEPEND=""

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/patch/*.patch
# this will make more files +x than need be, but who cares really
chmod a+rx config/*

AT_M4DIR="${S}/m4" eautoreconf
find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'

sed -i 's:\:__off64_t:g' libelf/libelf.h || die #204502
}

src_compile() {
econf \
--program-prefix="eu-" \
--enable-shared \
|| die "./configure failed"
emake || die
}

src_test() {
env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \
make check || die "test failed"
}

src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
}

elfutils-0.131-r2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.131-r2.ebuild,v 1.2 2008/05/10 12:05:34 vapier Exp $

inherit eutils

DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
HOMEPAGE="http://people.redhat.com/drepper/"
#SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz"
SRC_URI="mirror://debian/pool/main/e/elfutils/elfutils_${PV}.orig.tar.gz"

LICENSE="OpenSoftware"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""

# This pkg does not actually seem to compile currently in a uClibc
# environment (xrealloc errs), but we need to ensure that glibc never
# gets pulled in as a dep since this package does not respect virtual/libc
DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3.2 )
sys-devel/gettext
sys-devel/autoconf
>=sys-devel/binutils-2.15.90.0.1
>=sys-devel/gcc-3.3.3
!dev-libs/libelf"
RDEPEND=""

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gnu-inline.patch #204610
epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
sed -i 's:\:__off64_t:g' libelf/libelf.h || die #204502
}

src_compile() {
econf \
--program-prefix="eu-" \
--enable-shared \
|| die "./configure failed"
emake || die
}

src_test() {
env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \
make check || die "test failed"
}

src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
}

files

metadata.xml




toolchain