[patchelf/f12/master] Initial commit (#602574).

Jeremy Sanders jsanders at fedoraproject.org
Wed Aug 25 21:11:37 UTC 2010


commit cd7f40242d7c0534ec601ae9c2f60e60d35d35f8
Author: Jeremy Sanders <jeremy at jeremysanders.net>
Date:   Wed Aug 25 22:11:28 2010 +0100

    Initial commit (#602574).

 patchelf.1    |   63 +++++++++++++++++++++++++++++++++++++++++++++++++
 patchelf.spec |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 137 insertions(+), 0 deletions(-)
---
diff --git a/patchelf.1 b/patchelf.1
new file mode 100644
index 0000000..489eaf7
--- /dev/null
+++ b/patchelf.1
@@ -0,0 +1,63 @@
+.\" Process this file with
+.\" groff -man -Tascii foo.1
+.\"
+.TH PATCHELF 1 "JUNE 2010" PATCHELF "User Manuals"
+.SH NAME
+patchelf - Modify ELF files
+
+.SH SYNOPSIS
+.B patchelf
+.I OPTION
+.B
+.I FILE
+.B
+
+.SH DESCRIPTION
+
+PatchELF is a simple utility for modifying existing ELF executables
+and libraries.  It can change the dynamic loader ("ELF interpreter")
+of executables and change the RPATH of executables and libraries.
+
+.SH OPTIONS
+
+The single option given operates on a given FILE, editing in place.
+
+.IP "--set-interpreter INTERPRETER"
+Change the dynamic loader ("ELF interpreter") of executable given to
+INTERPRETER
+
+.IP --print-intepreter
+Prints the ELF interpreter of the executable
+
+.IP "--set-rpath RPATH"
+Change the RPATH of the executable or library to RPATH
+
+.IP --shrink-rpath
+Remove from the RPATH all directories that do not contain a
+library referenced by DT_NEEDED fields of the executable or library.
+
+For instance, if an executable references one library libfoo.so, has
+an RPATH "/lib:/usr/lib:/foo/lib", and libfoo.so can only be found
+in /foo/lib, then the new RPATH will be "/foo/lib".
+
+.IP --print-rpath
+Prints the RPATH for an executable or library
+
+.IP --force-rpath
+Forces the use of the obsolete DT_RPATH in the file instead of
+DT_RUNPATH. By default DT_RPATH is converted to DT_RUNPATH.
+
+.IP --debug
+Prints details of the changes made to the input file
+
+.IP --version
+Shows the version of patchelf
+
+.SH AUTHOR
+Eelco Dolstra <e.dolstra at tudelft.nl>
+
+.SH "SEE ALSO"
+.BR elf (5),
+.BR ld.so (8)
+
+
diff --git a/patchelf.spec b/patchelf.spec
new file mode 100644
index 0000000..b2a4154
--- /dev/null
+++ b/patchelf.spec
@@ -0,0 +1,73 @@
+Name:           patchelf
+Version:        0.5
+Release:        6%{?dist}
+Summary:        A utility for patching ELF binaries
+
+Group:          Development/Tools
+License:        GPLv3+
+URL:            http://nixos.org/patchelf.html
+Source0:        http://hydra.nixos.org/build/114505/download/2/%{name}-%{version}.tar.bz2
+Source1:        patchelf.1
+
+# make check does not work on these architectures: see bug #627370
+ExcludeArch:    ppc ppc64
+
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%description
+PatchELF is a simple utility for modifying existing ELF executables
+and libraries.  It can change the dynamic loader ("ELF interpreter")
+of executables and change the RPATH of executables and libraries.
+
+%prep
+%setup -q
+
+# package ships elf.h - delete to use glibc-headers one
+rm src/elf.h
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+# the docs get put in a funny place, so delete and include in the
+# standard way in the docs section below
+rm -rf %{buildroot}/usr/share/doc/%{name}
+
+# install the man page
+mkdir -p %{buildroot}/%{_mandir}/man1
+install --mode=0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/patchelf
+%{_mandir}/man1/patchelf.1*
+%doc README COPYING
+
+%changelog
+* Wed Aug 25 2010 Jeremy Sanders <jeremy at jeremysanders.net> - 0.5-6
+- Put new bug number in for ppc/ppc64 issue
+
+* Tue Aug 24 2010 Jeremy Sanders <jeremy at jeremysanders.net> - 0.5-5
+- Disable building for ppc/ppc64
+
+* Tue Jun 15 2010 Jeremy Sanders <jeremy at jeremysanders.net> - 0.5-4
+- Delete elf.h from source to use native header in glibc-headers
+
+* Mon Jun 14 2010 Jeremy Sanders <jeremy at jeremysanders.net> - 0.5-3
+- Corrections from initial review by Martin Gieseking
+
+* Thu Jun 10 2010 Jeremy Sanders <jeremy at jeremysanders.net> - 0.5-2
+- Add man page
+
+* Tue Jun  8 2010 Jeremy Sanders <jeremy at jeremysanders.net> - 0.5-1
+- Initial package
diff --git a/sources b/sources
index e69de29..2bafa54 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c41fc98091d15dc93ba876c3ef11f43c  patchelf-0.5.tar.bz2


More information about the scm-commits mailing list