Skip to contentSkip to conversation

ima-policy-hashed: Start WORKDIR -> UNPACKDIR transition

PATCH New [email protected] 1 participant 3 messages Jun 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ima-policy-hashed: Start WORKDIR -> UNPACKDIR transition

From: Wang Mingyu <[email protected]>

Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR.

---
 .../recipes-security/ima_policy_hashed/ima-policy-hashed_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-integrity/recipes-security/ima_policy_hashed/ima-policy-hashed_1.0.bb +1 -1
index 57c0640..8c670e8 100644
@@ -11,7 +11,7 @@ REQUIRED_DISTRO_FEATURES = "ima"
 
 do_install () {
     install -d ${D}/${sysconfdir}/ima
-    install ${WORKDIR}/ima_policy_hashed ${D}/${sysconfdir}/ima/ima-policy
+    install ${UNPACKDIR}/ima_policy_hashed ${D}/${sysconfdir}/ima/ima-policy
 }
 
 FILES:${PN} = "${sysconfdir}/ima"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/3 suricata: Start WORKDIR -> UNPACKDIR transition

From: Wang Mingyu <[email protected]>

Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR.

---
 recipes-ids/suricata/suricata_7.0.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-ids/suricata/suricata_7.0.0.bb +3 -1
index a01b3d9..21d4306 100644
@@ -66,6 +66,8 @@ do_configure:prepend () {
     oe_runconf
 }
 
+CFLAGS += "-Wno-error=incompatible-pointer-types"
+
 do_compile () {
     # we do this to bypass the make provided by this pkg 
     # patches Makefile to skip the subdir
@@ -82,7 +84,7 @@ do_install () {
     oe_runmake install DESTDIR=${D}
 
     install -d ${D}${sysconfdir}/suricata ${D}${sysconfdir}/default/volatiles
-    install -m 0644 ${WORKDIR}/volatiles.03_suricata  ${D}${sysconfdir}/default/volatiles/03_suricata
+    install -m 0644 ${UNPACKDIR}/volatiles.03_suricata  ${D}${sysconfdir}/default/volatiles/03_suricata
 
     install -m 0644 ${S}/threshold.config ${D}${sysconfdir}/suricata
     install -m 0644 ${S}/suricata.yaml ${D}${sysconfdir}/suricata
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/3 libmhash: Start WORKDIR -> UNPACKDIR transition

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR.

---
 recipes-security/libmhash/libmhash_0.9.9.9.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-security/libmhash/libmhash_0.9.9.9.bb +2 -2
index 49139d2..f725a26 100644
@@ -31,8 +31,8 @@ do_install:append() {
 
 do_compile_ptest() {
     if [ ! -d ${S}/demo ]; then mkdir ${S}/demo; fi
-    cp ${WORKDIR}/Makefile.test ${S}/demo/Makefile
-    cp ${WORKDIR}/mhash.c ${S}/demo/
+    cp ${UNPACKDIR}/Makefile.test ${S}/demo/Makefile
+    cp ${UNPACKDIR}/mhash.c ${S}/demo/
     make -C ${S}/demo CFLAGS="${CFLAGS} -I${S}/include/" LDFLAGS="${LDFLAGS} -L${S}/lib/.libs"
 }
 
Signature · 1 line
2.34.1