From b5349b90117e020d4e8cdad1a91bb0b9f32bb99f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:20:47 +0100 Subject: [PATCH] update to 0.16 [release 0.16-1mamba;Thu Mar 06 2014] --- README.md | 3 ++ chrpath-0.13-NULL-entry.patch | 14 +++++++++ chrpath.spec | 56 +++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 chrpath-0.13-NULL-entry.patch create mode 100644 chrpath.spec diff --git a/README.md b/README.md index 84ddef0..0af5121 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # chrpath +Chrpath allows you to modify the dynamic library load path (rpath) of compiled programs. +Currently, only removing and modifying the rpath is supported. + diff --git a/chrpath-0.13-NULL-entry.patch b/chrpath-0.13-NULL-entry.patch new file mode 100644 index 0000000..bdb7019 --- /dev/null +++ b/chrpath-0.13-NULL-entry.patch @@ -0,0 +1,14 @@ +--- killrpath.c 2010-11-28 23:58:20.000000000 +0100 ++++ killrpath.c.fix 2010-11-29 00:00:50.000000000 +0100 +@@ -74,7 +74,10 @@ + dynpos++; + } + for (; dynpos < i; dynpos++) +- dyns[dynpos].d_tag = DT_NULL; ++ { ++ dyns[dynpos].d_tag = DT_NULL; ++ dyns[dynpos].d_un.d_val = 0x0; ++ } + + if (lseek(fd, phdr.p_offset, SEEK_SET) == -1 + || write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz) diff --git a/chrpath.spec b/chrpath.spec new file mode 100644 index 0000000..cffccaa --- /dev/null +++ b/chrpath.spec @@ -0,0 +1,56 @@ +Name: chrpath +Version: 0.16 +Release: 1mamba +Summary: Dynamic library load path (rpath) alterer +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://www.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/ +Source: https://alioth.debian.org/frs/download.php/file/3979/chrpath-%{version}.tar.gz +#http://www.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/chrpath-%{version}.tar.gz +Patch: %{name}-0.13-NULL-entry.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Chrpath allows you to modify the dynamic library load path (rpath) of compiled programs. +Currently, only removing and modifying the rpath is supported. + +%prep +%setup -q +#%patch -p0 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall +rm -fr %{buildroot}/usr/doc + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/chrpath +%{_mandir}/man1/chrpath.* +%doc AUTHORS COPYING ChangeLog NEWS README + +%changelog +* Thu Mar 06 2014 Silvan Calarco 0.16-1mamba +- update to 0.16 + +* Sun Nov 28 2010 Davide Madrisan 0.13-3mamba +- fix last entry in .dynamic (by Christian Krause ). + +* Tue Dec 04 2007 Aleph0 0.13-2mamba +- updated specfile + +* Tue Aug 02 2005 Davide Madrisan 0.13-1qilnx +- package created by autospec