Browse Source

apt: Fix ssh:// sources (fixes #3093)

android-5
Fredrik Fornwall 6 years ago
parent
commit
36b0e5f0ce
  1. 2
      packages/apt/build.sh
  2. 12
      packages/apt/methods-rsh.cc.patch

2
packages/apt/build.sh

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://packages.debian.org/apt
TERMUX_PKG_DESCRIPTION="Front-end for the dpkg package manager"
TERMUX_PKG_DEPENDS="libcurl, liblzma, dpkg, gpgv, libc++, termux-exec"
TERMUX_PKG_VERSION=1.4.8
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SHA256=767ad7d6efb64cde52faececb7d3c0bf49800b9fe06f3a5b0132ab4c01a5b8f8
TERMUX_PKG_SRCURL=http://ftp.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

12
packages/apt/methods-rsh.cc.patch

@ -1,12 +0,0 @@
diff -uNr apt-1.4.8/methods/rsh.cc apt-1.4.8.mod/methods/rsh.cc
--- apt-1.4.8/methods/rsh.cc 2017-09-13 19:47:33.000000000 +0300
+++ apt-1.4.8.mod/methods/rsh.cc 2018-06-19 13:41:50.497061290 +0300
@@ -152,7 +152,7 @@
if (Host.empty() == false) {
Args[i++] = Host.c_str();
}
- Args[i++] = "/bin/sh";
+ Args[i++] = "@TERMUX_PREFIX@/bin/sh";
Args[i] = 0;
execvp(Args[0],(char **)Args);
exit(100);
Loading…
Cancel
Save