diff options
author | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-04-05 15:48:38 +0200 |
---|---|---|
committer | Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> | 2017-04-05 15:48:38 +0200 |
commit | f3f2bc9ec57bd5308d58925e25cfab984852c59b (patch) | |
tree | 4d4d6870efecf376d4de2a243d50b73890479d37 /app-arch/bzip2/files | |
parent | sys-apps/portage: update prefix-chaining patch (diff) | |
download | prefix-f3f2bc9ec57bd5308d58925e25cfab984852c59b.tar.gz prefix-f3f2bc9ec57bd5308d58925e25cfab984852c59b.tar.bz2 prefix-f3f2bc9ec57bd5308d58925e25cfab984852c59b.zip |
app-arch/bzip2: let portage prefixify shebangs (for prefix-chaining)
Package-Manager: Portage-2.3.4-prefix, Repoman-2.3.2
Diffstat (limited to 'app-arch/bzip2/files')
-rw-r--r-- | app-arch/bzip2/files/bzip2-1.0.6-prefix.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-arch/bzip2/files/bzip2-1.0.6-prefix.patch b/app-arch/bzip2/files/bzip2-1.0.6-prefix.patch new file mode 100644 index 0000000000..2092efe098 --- /dev/null +++ b/app-arch/bzip2/files/bzip2-1.0.6-prefix.patch @@ -0,0 +1,42 @@ +--- bzdiff ++++ bzdiff +@@ -12,7 +12,7 @@ + # necessary) and fed to cmp or diff. The exit status from cmp + # or diff is preserved. + +-PATH="/usr/bin:/bin:$PATH"; export PATH ++PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/bin:$PATH"; export PATH + prog=`echo $0 | sed 's|.*/||'` + case "$prog" in + *cmp) comp=${CMP-cmp} ;; +@@ -56,7 +56,7 @@ + bzip2 -cdfq "$2" > $tmp + bzip2 -cdfq "$1" | $comp $OPTIONS - $tmp + STAT="$?" +- /bin/rm -f $tmp;; ++ rm -f $tmp;; + + *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2" + STAT="$?";; +--- bzgrep ++++ bzgrep +@@ -6,7 +6,7 @@ + ## zgrep -- a wrapper around a grep program that decompresses files as needed + ## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca> + +-PATH="/usr/bin:$PATH"; export PATH ++PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:$PATH"; export PATH + + prog=`echo $0 | sed 's|.*/||'` + case "$prog" in +--- bzmore ++++ bzmore +@@ -3,7 +3,7 @@ + # Bzmore wrapped for bzip2, + # adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux. + +-PATH="/usr/bin:$PATH"; export PATH ++PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:$PATH"; export PATH + + prog=`echo $0 | sed 's|.*/||'` + case "$prog" in |