--- chrpath-0.16.orig/debian/changelog +++ chrpath-0.16/debian/changelog @@ -0,0 +1,149 @@ +chrpath (0.16-2build1) noble; urgency=medium + + * No change rebuild to gain buildinfo. + + -- Dimitri John Ledkov Sat, 17 Feb 2024 18:44:41 +0000 + +chrpath (0.16-2) unstable; urgency=medium + + * Handle DT_MIPS_RLD_MAP_REL on MIPS. Thanks to Aurelien Jarno for the + patch. Closes: #820335. + + -- Tollef Fog Heen Sat, 09 Apr 2016 10:20:53 +0200 + +chrpath (0.16-1) unstable; urgency=low + + * New upstream release. + * Add link to homepage in control file. Closes: #730232 + * Update Standards-Version. No changes needed. + + -- Tollef Fog Heen Sun, 19 Jan 2014 19:12:01 +0100 + +chrpath (0.14-3) unstable; urgency=low + + * Fix syntax error (Close → Closes) in 0.14-1 changelog entry. + * Add --with autotools_dev to dh call. Thanks to Colin Watson for the + patch. Closes: #700117 + * Update Standards-Version. No changes needed. + + -- Tollef Fog Heen Mon, 28 Oct 2013 10:52:04 +0100 + +chrpath (0.14-2) unstable; urgency=low + + * Upload to unstable. + + -- Tollef Fog Heen Thu, 11 Jul 2013 14:37:09 +0200 + +chrpath (0.14-1) experimental; urgency=low + + * Upload targeted at experimental, since wheezy is frozen. + * New upstream release. Closes: #578502 + * Drop ChangeLog.usermap from docs. + * Update to dh packaging and update compat level to 9. + * Mark the package as Multi-Arch: foreign + * Add watch file, thanks to Wookey for patch. + * Update upstream URL in copyright file. + * Update to current Standards-Version. + * Fix up copyright file somewhat. + * Add ${misc:Depends} to Depends line. + * Drop docs file and remove doubly-installed changelog. + * Drop INSTALL file. + + -- Tollef Fog Heen Thu, 15 Nov 2012 18:39:00 +0100 + +chrpath (0.13-2) unstable; urgency=low + + * Update config.{guess,sub}. (closes: #342383) + + -- Tollef Fog Heen Mon, 12 Jun 2006 13:36:38 +0200 + +chrpath (0.13-1) unstable; urgency=low + + * New upstream release + * Rerun aclocal, automake, autoconf since upstream seemingly used broken + versions. + + -- Tollef Fog Heen Tue, 21 Sep 2004 09:37:14 +0200 + +chrpath (0.12-3) unstable; urgency=low + + * Add AM_MAINTAINER_MODE support to configure.ac (closes: #259492) + + -- Tollef Fog Heen Thu, 15 Jul 2004 09:25:52 +0200 + +chrpath (0.12-2) unstable; urgency=low + + * Fix Hurd and k*BSD support (closes: #248084) + * Remove call to dh_undocumented. + + -- Tollef Fog Heen Thu, 10 Jun 2004 02:47:34 +0200 + +chrpath (0.12-1) unstable; urgency=low + + * New upstream release (closes: #211094) + + -- Tollef Fog Heen Tue, 23 Dec 2003 12:38:50 +0100 + +chrpath (0.10-2) unstable; urgency=low + + * Fix description (closes: #179923). + * Make chrpath work well on 64 bit arches. (closes: #197210) + * Make build also run make check + + -- Tollef Fog Heen Tue, 17 Jun 2003 00:18:37 +0200 + +chrpath (0.10-1) unstable; urgency=low + + * New upstream release (closes: #171256) + + -- Tollef Fog Heen Sat, 4 Jan 2003 00:26:41 +0100 + +chrpath (0.9-2) unstable; urgency=low + + * Remove ugliness due to patch applying twice. + * Fix loop introduced i 0.7-2. Thanks to liiwi for noticing this. + + -- Tollef Fog Heen Sat, 23 Nov 2002 21:39:28 +0100 + +chrpath (0.9-1) unstable; urgency=low + + * New upstream release + - Adds support for platforms not having DT_RUNPATH (like NetBSD) + (closes: #167169) + + -- Tollef Fog Heen Sat, 23 Nov 2002 21:25:05 +0100 + +chrpath (0.7-2) unstable; urgency=low + + * Fix segfault when converting rpath to runpath. (closes: #168670) + * Fix --delete weirdness where it wouldn't process the first argument + (closes: #163843) + + -- Tollef Fog Heen Tue, 12 Nov 2002 03:18:07 +0100 + +chrpath (0.7-1) unstable; urgency=low + + * New upstream release + - Adds runpath support (closes: #154611) + - Fixes typo in man page (closes: #154360) + + -- Tollef Fog Heen Fri, 13 Sep 2002 04:38:48 +0200 + +chrpath (0.6-1) unstable; urgency=low + + * New upstream release (with my contributed man page) + + -- Tollef Fog Heen Sun, 5 May 2002 17:35:20 +0200 + +chrpath (0.5-2) unstable; urgency=low + + * add man page. (closes: #137405) + * make non-native package. + + -- Tollef Fog Heen Sat, 4 May 2002 21:22:51 +0200 + +chrpath (0.5-1) unstable; urgency=low + + * Initial Release. + + -- Tollef Fog Heen Thu, 14 Feb 2002 04:03:22 +0100 --- chrpath-0.16.orig/debian/compat +++ chrpath-0.16/debian/compat @@ -0,0 +1 @@ +9 --- chrpath-0.16.orig/debian/control +++ chrpath-0.16/debian/control @@ -0,0 +1,16 @@ +Source: chrpath +Section: utils +Priority: optional +Maintainer: Tollef Fog Heen +Build-Depends: debhelper (>= 9), autotools-dev +Homepage: https://alioth.debian.org/projects/chrpath/ +Standards-Version: 3.9.5 + +Package: chrpath +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: foreign +Description: Tool to edit the rpath in ELF binaries + chrpath allows you to change the rpath (where the application looks + for libraries) in an application. It does not (yet) allow you to + add an rpath if there isn't one already. --- chrpath-0.16.orig/debian/copyright +++ chrpath-0.16/debian/copyright @@ -0,0 +1,9 @@ +This package was debianized by Tollef Fog Heen on +Thu, 14 Feb 2002 04:03:22 +0100. + +It was downloaded from https://alioth.debian.org/projects/chrpath/ + +Upstream Author: Petter Reinholdtsen + +chrpath is under the GNU Public License, which can normally +be found in /usr/share/common-licenses/GPL on Debian systems. --- chrpath-0.16.orig/debian/dirs +++ chrpath-0.16/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/doc --- chrpath-0.16.orig/debian/rules +++ chrpath-0.16/debian/rules @@ -0,0 +1,10 @@ +#! /usr/bin/make -f + +%: + dh $@ --with autotools_dev + +override_dh_auto_install: + dh_auto_install -- docdir="/usr/share/doc/chrpath" + rm debian/chrpath/usr/share/doc/chrpath/COPYING + rm debian/chrpath/usr/share/doc/chrpath/ChangeLog + rm debian/chrpath/usr/share/doc/chrpath/INSTALL --- chrpath-0.16.orig/debian/watch +++ chrpath-0.16/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://alioth.debian.org/frs/?group_id=31052 .*/chrpath-(.*)\.tar\.gz debian uupdate --- chrpath-0.16.orig/killrpath.c +++ chrpath-0.16/killrpath.c @@ -73,10 +73,26 @@ dynpos = 0; for (i = 0; DYNSS(i, d_tag) != DT_NULL; i++) { - if (is_e32()) + if (is_e32()) { ((Elf32_Dyn *)dyns)[dynpos] = ((Elf32_Dyn *)dyns)[i]; - else +#ifdef DT_MIPS_RLD_MAP_REL + /* DT_MIPS_RLD_MAP_REL is relative to the offset of the tag. + Adjust it consequently. */ + if (DYNSS(i, d_tag) == DT_MIPS_RLD_MAP_REL) + ((Elf32_Dyn *)dyns)[dynpos].d_un.d_val = + DO_SWAPU32(DYNSU(i, d_un.d_val) + + (i - dynpos) * sizeof(Elf32_Dyn)); +#endif + } else { ((Elf64_Dyn *)dyns)[dynpos] = ((Elf64_Dyn *)dyns)[i]; +#ifdef DT_MIPS_RLD_MAP_REL + /* Ditto */ + if (DYNSS(i, d_tag) == DT_MIPS_RLD_MAP_REL) + ((Elf64_Dyn *)dyns)[dynpos].d_un.d_val = + DO_SWAPU64(DYNSU(i, d_un.d_val) + + (i - dynpos) * sizeof(Elf64_Dyn)); +#endif + } if ( ! elf_dynpath_tag(DYNSS(i, d_tag)) ) dynpos++; }