chiark / gitweb /
67c7a99442a8c677da3d9023153f0fe4911bbe00
[termux-packages] / packages / debootstrap / functions.patch
1 diff -u -r ../debootstrap-1.0.91/functions ./functions
2 --- ../debootstrap-1.0.91/functions     2017-07-25 05:02:27.000000000 +0200
3 +++ ./functions 2017-08-09 23:16:36.589942373 +0200
4 @@ -883,7 +883,7 @@
5  extract_dpkg_deb_data () {
6         local pkg="$1"
7  
8 -       dpkg-deb --fsys-tarfile "$pkg" | tar $EXTRACT_DEB_TAR_OPTIONS -xf -
9 +       dpkg-deb --fsys-tarfile "$pkg" | proot --link2symlink tar $EXTRACT_DEB_TAR_OPTIONS -xf -
10  }
11  
12  # Raw .deb extractors
13 @@ -922,6 +922,7 @@
14  
15         if in_path $cat_cmd; then
16                 ar -p "$pkg" "$tarball" | $cat_cmd | tar $EXTRACT_DEB_TAR_OPTIONS -xf -
17 +               ar -p "$pkg" "$tarball" | $cat_cmd | proot --link2symlink tar $EXTRACT_DEB_TAR_OPTIONS -xf -
18         else
19                 error 1 UNPACKCMDUNVL "Extracting %s requires the %s command, which is not available" "$pkg" "$cat_cmd"
20         fi
21 @@ -1139,7 +1140,6 @@
22             hurd*)
23                 ;;
24             *)
25 -               setup_devices_simple
26                 ;;
27         esac
28  }