[meta-selinux] policycoreutils: Improve reproducibility

Submitted by Oleksiy Obitotskyy via lists.yoctoproject.org on Jan. 28, 2021, 12:45 p.m. | Patch ID: 179293

Details

Message ID 20210128124552.116513-1-oobitots@cisco.com
State New
Headers show

Commit Message

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.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
---
 recipes-security/selinux/policycoreutils.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/recipes-security/selinux/policycoreutils.inc b/recipes-security/selinux/policycoreutils.inc
index 92f7a75..43a641d 100644
--- a/recipes-security/selinux/policycoreutils.inc
+++ b/recipes-security/selinux/policycoreutils.inc
@@ -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} \
 "