libbz2: fix hardcoded paths (/bin/rm /tmp)
This commit is contained in:
parent
37e6c444f7
commit
56f20f2ea6
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://www.bzip.org/
|
||||
TERMUX_PKG_DESCRIPTION="BZ2 format compression library"
|
||||
TERMUX_PKG_LICENSE="BSD"
|
||||
TERMUX_PKG_VERSION=1.0.6
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SHA256=4bbea71ae30a0e5a8ddcee8da750bc978a479ba11e04498d082fa65c2f8c1ad5
|
||||
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/bzip2-${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
|
||||
|
21
packages/libbz2/fix-paths.patch
Normal file
21
packages/libbz2/fix-paths.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff -uNr bzip2-1.0.6/bzdiff bzip2-1.0.6.mod/bzdiff
|
||||
--- bzip2-1.0.6/bzdiff 2007-01-03 04:00:55.000000000 +0200
|
||||
+++ bzip2-1.0.6.mod/bzdiff 2019-03-01 20:44:12.401418675 +0200
|
||||
@@ -37,7 +37,7 @@
|
||||
echo "Usage: $prog [${comp}_options] file [file]"
|
||||
exit 1
|
||||
fi
|
||||
-tmp=`mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
|
||||
+tmp=`mktemp ${TMPDIR:-@TERMUX_PREFIX@/tmp}/bzdiff.XXXXXXXXXX` || {
|
||||
echo 'cannot create a temporary file' >&2
|
||||
exit 1
|
||||
}
|
||||
@@ -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="$?";;
|
Loading…
Reference in New Issue
Block a user