From f24fd9098ca93f494615e582c52e8926c9aa91c3 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sat, 11 Jul 2020 01:01:06 +0300 Subject: [PATCH] cronie: keep LD_PRELOAD and TZ variables --- packages/cronie/build.sh | 2 +- packages/cronie/fix-default-environment.patch | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/cronie/build.sh b/packages/cronie/build.sh index 918b5a8d2..ae8df9618 100644 --- a/packages/cronie/build.sh +++ b/packages/cronie/build.sh @@ -2,7 +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_LICENSE="BSD" TERMUX_PKG_VERSION=1.5.5 -TERMUX_PKG_REVISION=4 +TERMUX_PKG_REVISION=5 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_DEPENDS="dash" diff --git a/packages/cronie/fix-default-environment.patch b/packages/cronie/fix-default-environment.patch index 9c91f93fd..1660fd43e 100644 --- a/packages/cronie/fix-default-environment.patch +++ b/packages/cronie/fix-default-environment.patch @@ -1,6 +1,7 @@ +diff -uNr cronie-1.5.5/src/env.c cronie-1.5.5.mod/src/env.c --- 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 @@ ++++ cronie-1.5.5.mod/src/env.c 2020-07-11 01:00:33.448944127 +0300 +@@ -123,21 +123,20 @@ int env_set_from_environ(char ***envpp) { static const char *names[] = { "LANG", @@ -28,8 +29,10 @@ + "BOOTCLASSPATH", + "DEX2OATBOOTCLASSPATH", + "EXTERNAL_STORAGE", ++ "LD_PRELOAD", + "PREFIX", + "TMPDIR", ++ "TZ", NULL }; const char **name;