From 9b07aedb91408ef61d4ea314c997861cca2dd022 Mon Sep 17 00:00:00 2001
From: Stefan Jones <cretin@gentoo.org>
Date: Fri, 27 Jun 2003 11:23:35 +0000
Subject: Modified Files: 	ChangeLog Manifest Added Files:  
 elfutils-0.76-r2.ebuild files/digest-elfutils-0.76-r2  
 files/elfutils-0.76-hidden.diff

	Oh dear, silly me, where is the club ...
---
 dev-libs/elfutils/ChangeLog                       |  5 ++-
 dev-libs/elfutils/Manifest                        | 15 ++++---
 dev-libs/elfutils/elfutils-0.76-r2.ebuild         | 53 +++++++++++++++++++++++
 dev-libs/elfutils/files/digest-elfutils-0.76-r2   |  1 +
 dev-libs/elfutils/files/elfutils-0.76-hidden.diff | 24 ++++++++++
 5 files changed, 91 insertions(+), 7 deletions(-)
 create mode 100644 dev-libs/elfutils/elfutils-0.76-r2.ebuild
 create mode 100644 dev-libs/elfutils/files/digest-elfutils-0.76-r2
 create mode 100644 dev-libs/elfutils/files/elfutils-0.76-hidden.diff

(limited to 'dev-libs/elfutils')

diff --git a/dev-libs/elfutils/ChangeLog b/dev-libs/elfutils/ChangeLog
index 1af22c0a7bf5..a273b21bbdf0 100644
--- a/dev-libs/elfutils/ChangeLog
+++ b/dev-libs/elfutils/ChangeLog
@@ -1,9 +1,12 @@
 # ChangeLog for dev-libs/elfutils
 # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.11 2003/06/25 06:56:45 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.12 2003/06/27 11:23:34 cretin Exp $
 
 *elfutils-0.76-r2 (14 May 2003)
 
+  27 June 2003; Stefan Jones <cretin@gentoo.org> :
+  Opps, adding it back, I was wrong ...
+
   24 June 2003; Stefan Jones <cretin@gentoo.org> :
   Remove from portage as bug fix is not needed anymore, 
   it was a gcc / binutils bug. sys-devel/binutils-2.14.90.0.2
diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index 3653066573d1..20d8fa39188e 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1,9 +1,12 @@
+MD5 9972075a3e7daae565e20816f0d2c44a elfutils-0.76-r2.ebuild 1277
+MD5 80693c73d37ba4a03bc9d30194bd23c7 elfutils-0.72.ebuild 963
+MD5 885eae2d29d9e49c2cc205a0112926e9 elfutils-0.76-r1.ebuild 1220
+MD5 221ffb37f5e6c385358719a3f6764d63 elfutils-0.76.ebuild 1190
+MD5 44762913c2127b2b3b15fa2d1b61bae8 ChangeLog 1790
+MD5 ead62149bda908303979625c49247974 elfutils-0.73.ebuild 963
+MD5 6cf1b4c89c8668b6f6ac5713b8b496c7 files/elfutils-0.76-hidden.diff 789
+MD5 6cbd1797e98b78a920f6c33f1f2f3d57 files/digest-elfutils-0.76-r1 65
+MD5 6cbd1797e98b78a920f6c33f1f2f3d57 files/digest-elfutils-0.76-r2 65
 MD5 791693c15921aea311880b2ccfc4c746 files/digest-elfutils-0.72 65
 MD5 2de05b71e2683bd9bfaaf58a758431dd files/digest-elfutils-0.73 65
 MD5 6cbd1797e98b78a920f6c33f1f2f3d57 files/digest-elfutils-0.76 65
-MD5 6cbd1797e98b78a920f6c33f1f2f3d57 files/digest-elfutils-0.76-r1 65
-MD5 80693c73d37ba4a03bc9d30194bd23c7 elfutils-0.72.ebuild 963
-MD5 ead62149bda908303979625c49247974 elfutils-0.73.ebuild 963
-MD5 08c2d4895c88475727b8152d380f67d3 ChangeLog 1654
-MD5 221ffb37f5e6c385358719a3f6764d63 elfutils-0.76.ebuild 1190
-MD5 885eae2d29d9e49c2cc205a0112926e9 elfutils-0.76-r1.ebuild 1220
diff --git a/dev-libs/elfutils/elfutils-0.76-r2.ebuild b/dev-libs/elfutils/elfutils-0.76-r2.ebuild
new file mode 100644
index 000000000000..c74803373aa0
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.76-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.76-r2.ebuild,v 1.3 2003/06/27 11:23:35 cretin Exp $
+
+inherit eutils
+
+IUSE=""
+
+S="${WORKDIR}/${P}"
+DESCRIPTION="Libraries and utilities to handle compiled objects.
+This should be a drop in replacement for libelf."
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+HOMEPAGE="http://www.redhat.com/"
+
+LICENSE="OpenSoftware"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~ppc ~alpha"
+
+DEPEND="virtual/glibc
+	>=sys-devel/gcc-3.2.1-r6
+	!dev-libs/libelf"
+
+src_unpack() {
+	unpack ${A}
+	epatch ${FILESDIR}/${P}-hidden.diff
+
+	for x in $(find ${S}/ -name Makefile.in) ; do
+		cp ${x} ${x}.orig
+		sed -e 's:-Werror::g' \
+		${x}.orig > ${x}
+	done
+}
+
+src_compile() {
+	econf --program-prefix="eu-" \
+		--enable-shared || die "./configure failed"
+		
+	emake || die
+}
+
+src_install() {
+	make DESTDIR=${D} install || die
+
+	# Remove stuff we do not use ...
+	rm -f ${D}/usr/bin/eu-ld
+	rm -f ${D}/usr/include/elfutils/lib{asm,dw,dwarf}.h
+	rm -f ${D}/usr/lib/lib{asm,dw}-${PV}.so
+	rm -f ${D}/usr/lib/lib{asm,dw}.so*
+	rm -f ${D}/usr/lib/lib{asm,dw,dwarf}.a
+	rm -rf ${D}/usr/usr
+
+	dodoc AUTHORS COPYING ChangeLog NEWS NOTES README THANKS TODO
+}
diff --git a/dev-libs/elfutils/files/digest-elfutils-0.76-r2 b/dev-libs/elfutils/files/digest-elfutils-0.76-r2
new file mode 100644
index 000000000000..566928d8de69
--- /dev/null
+++ b/dev-libs/elfutils/files/digest-elfutils-0.76-r2
@@ -0,0 +1 @@
+MD5 51adf608642cd5fd6a4e3f25545b3c42 elfutils-0.76.tar.gz 746988
diff --git a/dev-libs/elfutils/files/elfutils-0.76-hidden.diff b/dev-libs/elfutils/files/elfutils-0.76-hidden.diff
new file mode 100644
index 000000000000..4f4f03138ed5
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.76-hidden.diff
@@ -0,0 +1,24 @@
+diff -ur elfutils-0.76.orig/libelf/elf_fill.c elfutils-0.76/libelf/elf_fill.c
+--- elfutils-0.76.orig/libelf/elf_fill.c	2002-11-29 01:13:55.000000000 +0000
++++ elfutils-0.76/libelf/elf_fill.c	2003-05-14 11:08:46.000000000 +0100
+@@ -21,7 +21,7 @@
+ #include "libelfP.h"
+ 
+ 
+-int __libelf_fill_byte;
++int __libelf_fill_byte = 0;
+ 
+ 
+ void
+diff -ur elfutils-0.76.orig/libelf/elf_version.c elfutils-0.76/libelf/elf_version.c
+--- elfutils-0.76.orig/libelf/elf_version.c	2002-11-29 01:13:55.000000000 +0000
++++ elfutils-0.76/libelf/elf_version.c	2003-05-14 11:03:33.000000000 +0100
+@@ -20,7 +20,7 @@
+ 
+ 
+ /* Is the version initialized?  */
+-int __libelf_version_initialized;
++int __libelf_version_initialized = 0;
+ 
+ /* Currently selected version.  */
+ unsigned int __libelf_version = EV_CURRENT;
-- 
cgit v1.2.3-65-gdbad