0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-27 06:08:57 +00:00
glibc-packages/gpkg/libbz2/bzdiff.patch
Ivan Max 94159a9710
new pkgs to gpkg (#115)
gpkg/libicu
gpkg/libwayland
gpkg/libxml2
gpkg/termux-exec
gpkg/gettext
gpkg/grep
gpkg/libtool
gpkg/pcre2
gpkg/sed
gpkg/tar
gpkg/jq
gpkg/oniguruma

Improving gpkg/glibc-runner
2023-10-03 09:32:40 +03:00

21 lines
802 B
Diff

diff -uNr bzip2-1.0.8/bzdiff bzip2-1.0.8.mod/bzdiff
--- bzip2-1.0.8/bzdiff 2019-07-13 20:50:05.000000000 +0300
+++ bzip2-1.0.8.mod/bzdiff 2019-07-20 11:46:36.090211623 +0300
@@ -49,14 +49,14 @@
case "$2" in
*.bz2)
F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
- tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || {
+ tmp=`mktemp "${TMPDIR:-@TERMUX_PREFIX_CLASSICAL@/tmp}"/bzdiff.XXXXXXXXXX` || {
echo 'cannot create a temporary file' >&2
exit 1
}
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="$?";;