cronie: copy important environment variables

https://github.com/termux/termux-packages/issues/5510
This commit is contained in:
Leonid Pliushch 2020-07-10 19:24:49 +03:00
parent e303a010a4
commit b341639e0f
2 changed files with 36 additions and 0 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/cronie-crond/cronie/
TERMUX_PKG_DESCRIPTION="Daemon that runs specified programs at scheduled times and related tools" TERMUX_PKG_DESCRIPTION="Daemon that runs specified programs at scheduled times and related tools"
TERMUX_PKG_LICENSE="BSD" TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_VERSION=1.5.5 TERMUX_PKG_VERSION=1.5.5
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/cronie-crond/cronie/releases/download/cronie-${TERMUX_PKG_VERSION}/cronie-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/cronie-crond/cronie/releases/download/cronie-${TERMUX_PKG_VERSION}/cronie-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=be34c79505e5544323281854744b9955ff16b160ee569f9df7c0dddae5720eac TERMUX_PKG_SHA256=be34c79505e5544323281854744b9955ff16b160ee569f9df7c0dddae5720eac
TERMUX_PKG_DEPENDS="bash" TERMUX_PKG_DEPENDS="bash"

View File

@ -0,0 +1,35 @@
--- cronie-1.5.5/src/env.c 2019-04-15 11:41:50.000000000 +0300
+++ cronie-1.5.5.mod/src/env.c 2020-07-10 19:23:38.370596567 +0300
@@ -123,21 +123,18 @@
int env_set_from_environ(char ***envpp) {
static const char *names[] = {
"LANG",
- "LC_CTYPE",
- "LC_NUMERIC",
- "LC_TIME",
- "LC_COLLATE",
- "LC_MONETARY",
- "LC_MESSAGES",
- "LC_PAPER",
- "LC_NAME",
- "LC_ADDRESS",
- "LC_TELEPHONE",
- "LC_MEASUREMENT",
- "LC_IDENTIFICATION",
- "LC_ALL",
- "LANGUAGE",
"RANDOM_DELAY",
+ "ANDROID_ART_ROOT",
+ "ANDROID_DATA",
+ "ANDROID_I18N_ROOT",
+ "ANDROID_ROOT",
+ "ANDROID_RUNTIME_ROOT",
+ "ANDROID_TZDATA_ROOT",
+ "BOOTCLASSPATH",
+ "DEX2OATBOOTCLASSPATH",
+ "EXTERNAL_STORAGE",
+ "PREFIX",
+ "TMPDIR",
NULL
};
const char **name;