Skip to contentSkip to conversation

policycoreutils: Improve reproducibility

PATCH New Oleksiy Obitotskyy 1 participant 1 message Jan 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 policycoreutils: Improve reproducibility

LOCALEDIR should be set to target path, e.g. /usr/share/locale not host absolute path. This prevent to build reproducible package.

LOCALEDIR constructed from:
$(DESTDIR)$(PREFIX)/share/locale

Change PREFIX from ${D} to ${prefix}. DESTDIR is not set during compilation and is set to proper value during install.

---
 recipes-security/selinux/policycoreutils.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/selinux/policycoreutils.inc +1 -1
index 92f7a75..43a641d 100644
@@ -118,7 +118,7 @@ EXTRA_OEMAKE += "\
         ${@bb.utils.contains('PACKAGECONFIG', 'libpam', 'PAMH=y', 'PAMH=', d)} \
         ${@bb.utils.contains('PACKAGECONFIG', 'audit', 'AUDITH=y', 'AUDITH=', d)} \
         INOTIFYH=n \
-        PREFIX=${D} \
+        PREFIX=${prefix} \
         SBINDIR=${base_sbindir} \
 "
 
Signature · 1 line
2.26.2.Cisco