2
1
Эх сурвалжийг харах

packages/sudo: explicitly set enable-tmpfiles.d

sudo's configure script looks up on the host to determine the path where
to install its systemd tmpfiles. That is incorrect in cross-compilation.

We can explicitly tell sudo where to install its tmpfiles, which we do
when systemd is enabled (in Buildroot, systemd-tmpfiles is always
enabled when systemd is), or we can tell it not to install tmpfiles at
all, which we do otherwise.

Signed-off-by: Nuno Gonçalves <nunog@fr24.com>
[yann.morin.1998@free.fr: reword and extend commit log]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 9c333176a3dae8aa4fa5468e3345d71bc10c44ca)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Nuno Gonçalves 2 жил өмнө
parent
commit
2e7f3dcc8e
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      package/sudo/sudo.mk

+ 1 - 0
package/sudo/sudo.mk

@@ -17,6 +17,7 @@ SUDO_SELINUX_MODULES = sudo
 SUDO_INSTALL_TARGET_OPTS = INSTALL_OWNER="" DESTDIR="$(TARGET_DIR)" install
 SUDO_CONF_OPTS = \
 	--with-tzdir=$(if $(BR2_PACKAGE_TZDATA),/usr/share/zoneinfo,no) \
+	--enable-tmpfiles.d=$(if $(BR2_PACKAGE_SYSTEMD),/usr/lib/tmpfiles.d,no) \
 	--without-lecture \
 	--without-sendmail \
 	--without-umask \