rpms/elfutils/devel fake-eu-strip,NONE,1.1 elfutils.spec,1.75,1.76

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Aug 24 20:21:02 UTC 2006


Author: aoliva

Update of /cvs/dist/rpms/elfutils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26051

Modified Files:
	elfutils.spec 
Added Files:
	fake-eu-strip 
Log Message:
* Thu Aug 24 2006 Alexandre Oliva <aoliva at redhat.com> 0.123-2
- Go back to eu-strip wrapper that uses binutils' objcopy.  (#203000)



--- NEW FILE fake-eu-strip ---
#!/bin/bash
[ "$1" != "-f" -a "$2" != "-f" ] && exec strip "$@"
if [ "$1" = "-f" ]; then
  opts=
  debug="$2"
  file="$3"
  [ $# -ne 3 ] && exit 1
  file "$file" 2>/dev/null | grep -q relocatable && opts=-g
elif [ "$1" = "-g" ]; then
  opts=-g
  debug="$3"
  file="$4"
  [ $# -ne 4 ] && exit 1
else
  exit 1
fi
set -e
objcopy --only-keep-debug "$file" "$debug"
strip $opts "$file"
objcopy --add-gnu-debuglink="$debug" "$file"


Index: elfutils.spec
===================================================================
RCS file: /cvs/dist/rpms/elfutils/devel/elfutils.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- elfutils.spec	15 Aug 2006 06:02:29 -0000	1.75
+++ elfutils.spec	24 Aug 2006 20:20:59 -0000	1.76
@@ -1,5 +1,5 @@
 %define eu_version 0.123
-%define eu_release 1
+%define eu_release 2
 
 %if %{?_with_compat:1}%{!?_with_compat:0}
 %define compat 1
@@ -17,12 +17,14 @@
 %endif
 License: GPL
 Group: Development/Tools
-Source: elfutils-%{version}.tar.gz
+Source0: elfutils-%{version}.tar.gz
+Source1: fake-eu-strip
 Patch1: elfutils-portability.patch
 Patch2: elfutils-robustify.patch
 Obsoletes: libelf libelf-devel
 Requires: elfutils-libelf = %{version}-%{release}
 Requires: elfutils-libs = %{version}-%{release}
+Requires: /usr/bin/objcopy
 
 # ExcludeArch: xxx
 
@@ -146,8 +148,11 @@
   rm -f .%{_libdir}/libasm-%{version}.so
   rm -f .%{_libdir}/libasm.so*
   rm -f .%{_libdir}/libasm.a
+  mv -f .%{_bindir}/eu-strip .%{_bindir}/eu-strip.bin
 }
 
+install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/eu-strip
+
 %check
 # XXX elflint not happy on ia64
 make check || :
@@ -176,6 +181,7 @@
 %{_bindir}/eu-size
 %{_bindir}/eu-strings
 %{_bindir}/eu-strip
+%{_bindir}/eu-strip.bin
 #%{_bindir}/eu-ld
 
 %files libs
@@ -214,6 +220,9 @@
 %{_libdir}/libelf.so
 
 %changelog
+* Thu Aug 24 2006 Alexandre Oliva <aoliva at redhat.com> 0.123-2
+- Go back to eu-strip wrapper that uses binutils' objcopy.  (#203000)
+
 * Mon Aug 14 2006 Roland McGrath <roland at redhat.com> 0.123-1
 - Update to 0.123
   - libebl: Backend build fixes, thanks to Stepan Kasal.




More information about the fedora-cvs-commits mailing list