paxctl: Fix do_package QA Issue.
A message that is not in the archive (sent off-list or not yet received): [email protected]
ping
Quoted 86 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of leimaohui
Sent: Friday, September 1, 2023 9:20 AM
To: [email protected]
Cc: Lei, Maohui <[email protected]>
Subject: [yocto] [meta-security][PATCH] paxctl: Fixdo_packageQA Issue.From: Lei Maohui <[email protected]>
After usrmerge had been enabled, paxctl has the fowllowing error:
ERROR: paxctl-0.9-r0do_package: QA Issue: paxctl: Files/directories were installed but not shipped in any package:
/sbin/paxctlSigned-off-by Lei Maohui <[email protected]>--- ...ckage-error-if-DESTDIR-is-set-to-usr.patch | 26 +++++++++++++++++++ recipes-security/paxctl/paxctl_0.9.bb | 4 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644recipes-security/paxctl/paxctl/0001-To-fix-package-error-if-DESTDIR-is-set-to-us r.patch
diff --git a/recipes-security/paxctl/paxctl/0001-To-fix-package-error-if-DESTDIR-is-set-to- usr.patch b/recipes-security/paxctl/paxctl/0001-To-fix-package-error-if-DESTDIR-is-set-to- usr.patch
new file mode 100644
index 0000000..451cb7frecipes-security/paxctl/paxctl/0001-To-fix-package-error-if-DESTDI new file +2
-0+++ R-is-set-to-usr.patch@@ -0,0 +1,26 @@ +From 824c5d7b96aeef1b4e182f657ac002bed6e14cd5 Mon Sep 17 00:00:002001
recipes-security/paxctl/paxctl/0001-To-fix-package-error-if-DESTDI new file +19
-0+From: Lei Maohui <[email protected]> +Date: Thu, 31 Aug 2023 08:20:56 +0000 +Subject: [PATCH] To fix package error if DESTDIR is set to /usr. + +Upstream-Status: Inappropriate +Signed-off-by: Lei Maohui <[email protected]> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 0d7bc0c..46fd664 100644 +--- a/Makefile ++++ b/Makefile +@@ -19,7 +19,7 @@ $(PROG).o: $(PROG).c $(PROG).h $(PROG)-elf.c + + install: $(PROG) + # $(MKDIR) $(DESTDIR)/sbin $(DESTDIR)$(MANDIR) +- $(INSTALL) -D --owner 0 --group 0 --mode a=rx $(PROG)$(DESTDIR)/sbin/$(PROG)
++ $(INSTALL) -D --owner 0 --group 0 --mode a=rx $(PROG)
++$(DESTDIR)/usr/sbin/$(PROG)recipes-security/paxctl/paxctl/0001-To-fix-package-error-if-DESTDI new file +6
-0+ $(INSTALL) -D --owner 0 --group 0 --mode a=r $(PROG).1 +$(DESTDIR)/$(MANDIR)/$(PROG).1 + + clean: +-- +2.34.1recipes-security/paxctl/paxctl_0.9.bb +0
-0@@ -8,7 +8,9 @@ LIC_FILES_CHKSUM ="file://paxctl.c;beginline=1;endline=5;md5=0ddd065c61020dda79
file://paxctl-elf.c;beginline=1;endline=5;md5=99f453ce7f6d1687ee808982e2924 813 \
recipes-security/paxctl/paxctl_0.9.bb +3
-1" -SRC_URI = "http://pax.grsecurity.net/${BP}.tar.gz" +SRC_URI = "http://pax.grsecurity.net/${BP}.tar.gz \ + +file://0001-To-fix-package-error-if-DESTDIR-is-set-to-usr.patch \ " SRC_URI[md5sum] = "9bea59b1987dc4e16c2d22d745374e64" SRC_URI[sha256sum] ="
a330ddd812688169802a3ba29e5e3b19956376b8f6f73b8d7e9586eb04423c2e" --
2.25.1