Skip to contentSkip to conversation

sudo: Set vardir deterministically

PATCH New Richard Purdie 1 participant 2 messages Feb 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sudo: Set vardir deterministically

Without setting this it will vary depending on which directories are present on the host.

[YOCTO #13775]

---
 meta/recipes-extended/sudo/sudo_1.8.29.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/sudo/sudo_1.8.29.bb +1 -0
index 8da2d646318..7089e1a1d2e 100644
@@ -17,6 +17,7 @@ EXTRA_OECONF += " \
              ac_cv_type_rsize_t=no \
              ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
              ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \
+             --with-vardir=/var/lib/sudo \
              "
 
 do_install_append () {
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 libxshmfence: Set shm directory deterministically

Without setting this it will vary depending on which directories are present on the host.

[YOCTO #13778]

---
 meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb +2 -0
index 85a48e4c588..cc456965305 100644
@@ -11,6 +11,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=47e508ca280fde97906eacb77892c3ac"
 
 DEPENDS += "virtual/libx11"
 
+EXTRA_OECONF += "--with-shared-memory-dir=/dev/shm"
+
 BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI[md5sum] = "42dda8016943dc12aff2c03a036e0937"
Signature · 1 line
2.20.1