From ca8703db016e1c4ff61b007c3f15c2cce1760104 Mon Sep 17 00:00:00 2001 From: tomty89 Date: Mon, 23 Apr 2018 03:21:15 +0800 Subject: [PATCH] dash: fix etc/profile hardcoded path (#2357) --- packages/dash/build.sh | 1 + packages/dash/etc-profile.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 packages/dash/etc-profile.patch diff --git a/packages/dash/build.sh b/packages/dash/build.sh index 37a7acae..599d95f0 100644 --- a/packages/dash/build.sh +++ b/packages/dash/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://gondor.apana.org.au/~herbert/dash/ TERMUX_PKG_DESCRIPTION="Small POSIX-compliant implementation of /bin/sh" TERMUX_PKG_ESSENTIAL=yes TERMUX_PKG_VERSION=0.5.9.1 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=5ecd5bea72a93ed10eb15a1be9951dd51b52e5da1d4a7ae020efd9826b49e659 # Use a mirror as upstream has issues: # TERMUX_PKG_SRCURL=http://gondor.apana.org.au/~herbert/dash/files/dash-${TERMUX_PKG_VERSION}.tar.gz diff --git a/packages/dash/etc-profile.patch b/packages/dash/etc-profile.patch new file mode 100644 index 00000000..e629e0e1 --- /dev/null +++ b/packages/dash/etc-profile.patch @@ -0,0 +1,13 @@ +diff --git a/src/main.c b/src/main.c +index fcd3e7d..39b6e70 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -146,7 +146,7 @@ main(int argc, char **argv) + login = procargs(argc, argv); + if (login) { + state = 1; +- read_profile("/etc/profile"); ++ read_profile("@TERMUX_PREFIX@/etc/profile"); + state1: + state = 2; + read_profile("$HOME/.profile"); -- 2.11.0