[Buildroot] [PATCH 1/2] packages/sudo: explicitly set with-tzdir

Nuno Gonçalves nunog at fr24.com
Thu Nov 10 14:00:53 UTC 2022


If TZDATA is built then use actual zoneinfo path.

Otherwise explicitly disable it to avoid including the host path.

Signed-off-by: Nuno Gonçalves <nunog at fr24.com>
---
 package/sudo/sudo.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk
index 1826f72017..28cfcbb1e2 100644
--- a/package/sudo/sudo.mk
+++ b/package/sudo/sudo.mk
@@ -16,6 +16,7 @@ SUDO_SELINUX_MODULES = sudo
 # This is to avoid sudo's make install from chown()ing files which fails
 SUDO_INSTALL_TARGET_OPTS = INSTALL_OWNER="" DESTDIR="$(TARGET_DIR)" install
 SUDO_CONF_OPTS = \
+	--with-tzdir=$(if $(BR2_PACKAGE_TZDATA),/usr/share/zoneinfo,no) \
 	--without-lecture \
 	--without-sendmail \
 	--without-umask \
-- 
2.38.1




More information about the buildroot mailing list