ACK: [Plucky/Unstable PATCH] UBUNTU: [Packaging] avoid arch-specific certificate creation
Agathe Porte
agathe.porte at canonical.com
Mon Nov 25 16:24:28 UTC 2024
2024-11-25 11:08 CET, Masahiro Yamada:
> Currently, the debian/canonical-(revoked-)certs.pem files are generated
> by the clean target and included in the source package.
>
> These files are created by concatenating *-all.pem and *-$(arch).pem
> files.
>
> When creating a source package, $(arch) expands to the architecture of
> the build machine.
>
> Although it is unclear whether arch-specific certificates have ever
> been used, if they were, canonical-(revoked-)certs.pem would become
> architecture-specific, resulting in an architecture-dependent source
> package.
>
> The source package should be consistent, regardless of the architecture
> of the build machine.
>
> This commit changes the build rules to concatenate all *.pem files,
> ensuring the output is independent of the build machine architecture.
>
> Signed-off-by: Masahiro Yamada <masahiro.yamada at canonical.com>
> ---
>
> I am resending this as a single patch.
>
> debian/rules | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/debian/rules b/debian/rules
> index c6facd5717c6..600e7bab2150 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -213,7 +213,7 @@ $(DEBIAN)/control.stub: \
> debian/control: $(DEBIAN)/control.stub
> cp $(DEBIAN)/control.stub debian/control
>
> -debian/canonical-certs.pem: $(wildcard debian/certs/*-all.pem) $(wildcard debian/certs/*-$(arch).pem) $(wildcard $(DEBIAN)/certs/*-all.pem) $(wildcard $(DEBIAN)/certs/*-$(arch).pem)
> +debian/canonical-certs.pem: $(wildcard debian/certs/*.pem $(DEBIAN)/certs/*.pem)
> for cert in $(sort $(notdir $^)); \
> do \
> for dir in $(DEBIAN) debian; \
> @@ -225,7 +225,7 @@ debian/canonical-certs.pem: $(wildcard debian/certs/*-all.pem) $(wildcard debian
> done; \
> done >"$@"
>
> -debian/canonical-revoked-certs.pem: $(wildcard debian/revoked-certs/*-all.pem) $(wildcard debian/revoked-certs/*-$(arch).pem) $(wildcard $(DEBIAN)/revoked-certs/*-all.pem) $(wildcard $(DEBIAN)/revoked-certs/*-$(arch).pem)
> +debian/canonical-revoked-certs.pem: $(wildcard debian/revoked-certs/*.pem $(DEBIAN)/revoked-certs/*.pem)
> for cert in $(sort $(notdir $^)); \
> do \
> for dir in $(DEBIAN) debian; \
Acked-by: Agathe Porte <agathe.porte at canonical.com>
More information about the kernel-team
mailing list