summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-03-13 13:45:32 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-03-13 13:45:32 +0000
commit2ccb0e097cee21d5ee7c0c8691b2bba9f974c175 (patch)
tree65ded3fbe0d2423dca7a50f419dfc3c852777c60 /dev-libs/elfutils
parentVersion Bump. Fixes bug #84943. (diff)
downloadgentoo-2-2ccb0e097cee21d5ee7c0c8691b2bba9f974c175.tar.gz
gentoo-2-2ccb0e097cee21d5ee7c0c8691b2bba9f974c175.tar.bz2
gentoo-2-2ccb0e097cee21d5ee7c0c8691b2bba9f974c175.zip
Update version.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-libs/elfutils')
-rw-r--r--dev-libs/elfutils/ChangeLog9
-rw-r--r--dev-libs/elfutils/Manifest5
-rw-r--r--dev-libs/elfutils/elfutils-0.101.ebuild54
-rw-r--r--dev-libs/elfutils/files/digest-elfutils-0.1011
-rw-r--r--dev-libs/elfutils/files/elfutils-0.101-bswap.patch20
-rw-r--r--dev-libs/elfutils/files/elfutils-0.101-portability.patch198
6 files changed, 286 insertions, 1 deletions
diff --git a/dev-libs/elfutils/ChangeLog b/dev-libs/elfutils/ChangeLog
index 66788a86743f..11af24df14c9 100644
--- a/dev-libs/elfutils/ChangeLog
+++ b/dev-libs/elfutils/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/elfutils
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.42 2005/02/17 17:27:12 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/ChangeLog,v 1.43 2005/03/13 13:45:32 azarah Exp $
+
+*elfutils-0.101 (13 Mar 2005)
+
+ 13 Mar 2005; Martin Schlemmer <azarah@gentoo.org>
+ +files/elfutils-0.101-bswap.patch,
+ +files/elfutils-0.101-portability.patch, +elfutils-0.101.ebuild:
+ Update version.
17 Feb 2005; Markus Rothe <corsair@gentoo.org> elfutils-0.97.ebuild:
Added ~ppc64 to KEYWORDS
diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index cd1d6dcc9025..5a9aece048dc 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1,6 +1,11 @@
MD5 aab65e71b9d765bff7d136e854e4df0a ChangeLog 5068
MD5 0d79fae147a820d6d6952da909a8a373 elfutils-0.94-r1.ebuild 1823
MD5 adef9c3db26c7ae397827147b36224f2 elfutils-0.97.ebuild 1402
+MD5 c1286000acd6b18f059885c88be22401 elfutils-0.101.ebuild 1482
+MD5 fe81c97dd9f9fc7e3eda901d7612f1f9 .elfutils-0.101.ebuild.swp 12288
MD5 98e005817217428fef7c200faec78382 files/digest-elfutils-0.94-r1 65
MD5 25da57fec6a38ed0c69ec6682b595398 files/elfutils-0.94-alpha-mips-atime.diff 699
MD5 696196044decee0b8d782d08b3e907aa files/digest-elfutils-0.97 65
+MD5 1e6460efdb609828aa57b5874813972a files/elfutils-0.101-bswap.patch 849
+MD5 40321e776b95020f2e51e5f481b3486e files/elfutils-0.101-portability.patch 6052
+MD5 68f794575cd890d5131853a4ca7ee9f3 files/digest-elfutils-0.101 66
diff --git a/dev-libs/elfutils/elfutils-0.101.ebuild b/dev-libs/elfutils/elfutils-0.101.ebuild
new file mode 100644
index 000000000000..a352e412962c
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.101.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfutils/elfutils-0.101.ebuild,v 1.1 2005/03/13 13:45:32 azarah Exp $
+
+inherit eutils
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
+HOMEPAGE="http://people.redhat.com/drepper/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="OpenSoftware"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sparc ~x86 ~ppc64"
+IUSE="nls uclibc"
+
+# 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="!uclibc? ( >=sys-libs/glibc-2.3.2 )
+ >=sys-devel/binutils-2.14.90.0.6
+ >=sys-devel/gcc-3.2.1-r6
+ !dev-libs/libelf"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch ${FILESDIR}/${P}-bswap.patch
+ epatch ${FILESDIR}/${P}-portability.patch
+
+ # Needed by ${P}-portability.patch
+ autoreconf 2>&1 | grep -v 'underquoted definition' || die
+
+ find . -name Makefile.in | xargs sed -i -e 's:-W\(error\|extra\)::g'
+}
+
+src_compile() {
+ econf \
+ --program-prefix="eu-" \
+ --enable-shared \
+ $(use_enable nls) \
+ || 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() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
+}
diff --git a/dev-libs/elfutils/files/digest-elfutils-0.101 b/dev-libs/elfutils/files/digest-elfutils-0.101
new file mode 100644
index 000000000000..b2f7c234eeaa
--- /dev/null
+++ b/dev-libs/elfutils/files/digest-elfutils-0.101
@@ -0,0 +1 @@
+MD5 36e8e5532b8ba5004abd32c46256e876 elfutils-0.101.tar.gz 813599
diff --git a/dev-libs/elfutils/files/elfutils-0.101-bswap.patch b/dev-libs/elfutils/files/elfutils-0.101-bswap.patch
new file mode 100644
index 000000000000..86c5a39da98d
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.101-bswap.patch
@@ -0,0 +1,20 @@
+--- libelf/common.h.~1.3.~ 2005-02-15 14:23:41.000000000 -0800
++++ libelf/common.h 2005-02-15 14:52:48.706163944 -0800
+@@ -122,7 +122,7 @@ libelf_release_all (Elf *elf)
+ (Var) = (sizeof (Var) == 1 \
+ ? (unsigned char) (Var) \
+ : (sizeof (Var) == 2 \
+- ? bswap_16 (Var) \
++ ? (unsigned short int) bswap_16 (Var) \
+ : (sizeof (Var) == 4 \
+ ? bswap_32 (Var) \
+ : bswap_64 (Var))))
+@@ -131,7 +131,7 @@ libelf_release_all (Elf *elf)
+ (Dst) = (sizeof (Var) == 1 \
+ ? (unsigned char) (Var) \
+ : (sizeof (Var) == 2 \
+- ? bswap_16 (Var) \
++ ? (unsigned short int) bswap_16 (Var) \
+ : (sizeof (Var) == 4 \
+ ? bswap_32 (Var) \
+ : bswap_64 (Var))))
diff --git a/dev-libs/elfutils/files/elfutils-0.101-portability.patch b/dev-libs/elfutils/files/elfutils-0.101-portability.patch
new file mode 100644
index 000000000000..fc6a8413d728
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.101-portability.patch
@@ -0,0 +1,198 @@
+2005-02-07 Roland McGrath <roland@frob.com>
+
+ * configure.ac (WEXTRA): Check for -Wextra and set this substitution.
+
+2003-08-12 Roland McGrath <roland@redhat.com>
+
+ * configure.ac: Check for struct stat st_?tim members.
+ * src/strip.c (process_file): Use st_?time if st_?tim are not there.
+
+ * configure.ac: Check for futimes function.
+ * src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead.
+ (handle_ar) [! HAVE_FUTIMES]: Likewise.
+
+--- elfutils/configure.ac
++++ elfutils/configure.ac
+@@ -66,6 +66,15 @@ CFLAGS="$old_CFLAGS"])
+ AS_IF([test "x$ac_cv_c99" != xyes],
+ AC_MSG_ERROR([gcc with C99 support required]))
+
++AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl
++old_CFLAGS="$CFLAGS"
++CFLAGS="$CFLAGS -Wextra"
++AC_COMPILE_IFELSE([void foo (void) { }],
++ ac_cv_cc_wextra, ac_cv_cc_wextra=no)
++CFLAGS="$old_CFLAGS"])
++AC_SUBST(WEXTRA)
++AS_IF([test "x$ac_cv_cc_wextra" = yes], [WEXTRA=-Wextra])
++
+ LOCALEDIR=$datadir
+ AC_SUBST(LOCALEDIR)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
+--- elfutils/lib/ChangeLog
++++ elfutils/lib/ChangeLog
+@@ -1,3 +1,8 @@
++2005-02-07 Roland McGrath <roland@redhat.com>
++
++ * Makefile.am (WEXTRA): New variable, substituted by configure.
++ (AM_CFLAGS): Use it in place of -Wextra.
++
+ 2005-02-15 Ulrich Drepper <drepper@redhat.com>
+
+ * dynamicsizehash.c (lookup): Mark val parameter as possibly unused.
+--- elfutils/lib/Makefile.am
++++ elfutils/lib/Makefile.am
+@@ -17,12 +17,13 @@
+ ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ ##
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
++WEXTRA = @WEXTRA@
+ if MUDFLAP
+ AM_CFLAGS = -fmudflap
+ else
+ AM_CFLAGS =
+ endif
+-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra $($(*F)_CFLAGS)
++AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) $($(*F)_CFLAGS)
+ INCLUDES = -I$(srcdir)/../libelf -I..
+
+ noinst_LIBRARIES = libeu.a
+--- elfutils/libasm/Makefile.am
++++ elfutils/libasm/Makefile.am
+@@ -14,12 +14,13 @@
+ ## 3001 King Ranch Road, Ukiah, CA 95482.
+ ##
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
++WEXTRA = @WEXTRA@
+ if MUDFLAP
+ AM_CFLAGS = -fmudflap
+ else
+ AM_CFLAGS =
+ endif
+-AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
++AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2
+ INCLUDES = -I. -I$(srcdir) -I.. -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
+ -I$(top_srcdir)/lib
+ GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
+--- elfutils/libdw/Makefile.am
++++ elfutils/libdw/Makefile.am
+@@ -14,12 +14,13 @@
+ ## 3001 King Ranch Road, Ukiah, CA 95482.
+ ##
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
++WEXTRA = @WEXTRA@
+ if MUDFLAP
+ AM_CFLAGS = -fmudflap
+ else
+ AM_CFLAGS =
+ endif
+-AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
++AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
+ INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
+ VERSION = 1
+
+--- elfutils/libebl/Makefile.am
++++ elfutils/libebl/Makefile.am
+@@ -14,12 +14,13 @@
+ ## 3001 King Ranch Road, Ukiah, CA 95482.
+ ##
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
++WEXTRA = @WEXTRA@
+ if MUDFLAP
+ AM_CFLAGS = -fmudflap
+ else
+ AM_CFLAGS =
+ endif
+-AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
++AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
+ -std=gnu99
+
+ INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/lib -I..
+--- elfutils/libelf/Makefile.am
++++ elfutils/libelf/Makefile.am
+@@ -17,12 +17,13 @@
+ ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ ##
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
++WEXTRA = @WEXTRA@
+ if MUDFLAP
+ AM_CFLAGS = -fpic -fmudflap
+ else
+ AM_CFLAGS =
+ endif
+-AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
++AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
+ $($(*F)_CFLAGS)
+ INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
+ GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
+--- elfutils/src/Makefile.am
++++ elfutils/src/Makefile.am
+@@ -15,14 +15,15 @@
+ ##
+ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H $(YYDEBUG) \
+ -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
++WEXTRA = @WEXTRA@
+ if MUDFLAP
+-AM_CFLAGS = -Wall -Wshadow -Wunused -Wextra -std=gnu99 -fmudflap \
++AM_CFLAGS = -Wall -Wshadow -Wunused $(WEXTRA) -std=gnu99 -fmudflap \
+ $(native_ld_cflags) $(if $($(*F)_no_Wunused),,-Wunused) \
+ $(if $($(*F)_no_Wformat),,-Wformat=2)
+ else
+ AM_CFLAGS = -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
+ $(if $($(*F)_no_Werror),,-Werror) \
+- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
++ $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
+ $(if $($(*F)_no_Wformat),,-Wformat=2)
+ endif
+ if MUDFLAP
+--- elfutils/src/strip.c
++++ elfutils/src/strip.c
+@@ -245,8 +245,18 @@ process_file (const char *fname)
+
+ /* If we have to preserve the timestamp, we need it in the
+ format utimes() understands. */
++#ifdef HAVE_STRUCT_STAT_ST_ATIM
+ TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
++#else
++ tv[0].tv_sec = pre_st.st_atime;
++ tv[0].tv_usec = 0;
++#endif
++#ifdef HAVE_STRUCT_STAT_ST_MTIM
+ TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
++#else
++ tv[1].tv_sec = pre_st.st_atime;
++ tv[1].tv_usec = 0;
++#endif
+ }
+
+ /* Open the file. */
+@@ -1677,7 +1687,13 @@ handle_elf (int fd, Elf *elf, const char
+ /* If requested, preserve the timestamp. */
+ if (tvp != NULL)
+ {
+- if (futimes (fd, tvp) != 0)
++ if (
++#ifdef HAVE_FUTIMES
++ futimes (fd, tvp) != 0
++#else
++ utimes (output_fname, tvp) != 0
++#endif
++ )
+ {
+ error (0, errno, gettext ("\
+ cannot set access and modification date of \"%s\""),
+@@ -1734,7 +1750,13 @@ handle_ar (int fd, Elf *elf, const char
+
+ if (tvp != NULL)
+ {
+- if (unlikely (futimes (fd, tvp) != 0))
++ if (unlikely (
++#ifdef HAVE_FUTIMES
++ futimes (fd, tvp)
++#else
++ utimes (fname, tvp)
++#endif
++ != 0))
+ {
+ error (0, errno, gettext ("\
+ cannot set access and modification date of \"%s\""), fname);