[SRU][BIONIC][PATCH 14/16] UBUNTU: [Packaging] build canonical-revoked-certs.pem from branch/arch certs
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Tue Nov 30 11:04:14 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1932029
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
Signed-off-by: Andrea Righi <andrea.righi at canonical.com>
(cherry picked from commit 3e44f229eef829ee3044651975512569824c4e5f)
(xnox: cherry-pick is from impish:linux)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
debian/rules | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 73c0ee19a1..ca87ccf8f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -126,7 +126,7 @@ binary: binary-indep binary-arch
build: build-arch build-indep
-clean: debian/control debian/canonical-certs.pem
+clean: debian/control debian/canonical-certs.pem debian/canonical-revoked-certs.pem
dh_testdir
dh_testroot
dh_clean
@@ -222,3 +222,15 @@ debian/canonical-certs.pem: $(wildcard $(DROOT)/certs/*-all.pem) $(wildcard $(DR
fi; \
done; \
done >"$@"
+
+debian/canonical-revoked-certs.pem: $(wildcard $(DROOT)/revoked-certs/*-all.pem) $(wildcard $(DROOT)/revoked-certs/*-$(arch).pem) $(wildcard $(DEBIAN)/revoked-certs/*-all.pem) $(wildcard $(DEBIAN)/revoked-certs/*-$(arch).pem)
+ for cert in $(sort $(notdir $^)); \
+ do \
+ for dir in $(DEBIAN) $(DROOT); \
+ do \
+ if [ -f "$$dir/revoked-certs/$$cert" ]; then \
+ cat "$$dir/revoked-certs/$$cert"; \
+ break; \
+ fi; \
+ done; \
+ done >"$@"
--
2.32.0
More information about the kernel-team
mailing list