@@ -8,6 +8,7 @@ Build-Depends:
dh-systemd,
cpio,
kernel-wedge,
+ dctrl-tools,
kmod <!stage1>,
makedumpfile [amd64] <!stage1>,
libcap-dev <!stage1>,
@@ -11,3 +11,4 @@ Description: Linux kernel buildinfo for version PKGVER on DESC
DESC.
.
You likely do not want to install this package.
+
@@ -220,10 +220,13 @@ $(DEBIAN)/control.stub: \
debian/control: $(DEBIAN)/control.stub
echo "# placebo control.stub for kernel-wedge flow change" >debian/control.stub
cp $(DEBIAN)/control.stub debian/control
+ # start new paragraph in debian/control
+ echo >> debian/control
+ # append udeb packages
export KW_DEFCONFIG_DIR=$(DEBIAN)/d-i && \
export KW_CONFIG_DIR=$(DEBIAN)/d-i && \
LANG=C kernel-wedge gen-control $(release)-$(abinum) | \
- perl -f $(DROOT)/scripts/misc/kernel-wedge-arch.pl $(arch) \
+ grep-dctrl -FArchitecture $(arch) \
>>$(CURDIR)/debian/control
debian/canonical-certs.pem: $(wildcard $(DROOT)/certs/*-all.pem) $(wildcard $(DROOT)/certs/*-$(arch).pem) $(wildcard $(DEBIAN)/certs/*-all.pem) $(wildcard $(DEBIAN)/certs/*-$(arch).pem)
deleted file mode 100755
@@ -1,26 +0,0 @@
-#!/usr/bin/perl
-#
-# kernel-wedge-arch.pl -- select only specifiers for the supplied arch.
-#
-use strict;
-
-require Dpkg::Control;
-require Dpkg::Deps;
-
-my $fh = \*STDIN;
-
-my @entries;
-
-my $wanted = $ARGV[0];
-
-my $entry;
-while (!eof($fh)) {
- $entry = Dpkg::Control->new();
- $entry->parse($fh, '???');
-
- if ($entry->{'Architecture'} eq $wanted) {
- print("\n" . $entry);
- }
-}
-
-close($fh);
Use a tool from the archive to filter just the current architecture udeb packages. Add new line to control file snippet, in case extra paragraphs are generated elsehwere without a leading new line. Before adding udebs, add a new line too, in case the last snippet anywhere else did not end with a new line. BugLink: https://bugs.launchpad.net/bugs/1916095 Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> --- debian.master/control.stub.in | 1 + debian/control.d/flavour-buildinfo.stub | 1 + debian/rules | 5 ++++- debian/scripts/misc/kernel-wedge-arch.pl | 26 ------------------------ 4 files changed, 6 insertions(+), 27 deletions(-) delete mode 100755 debian/scripts/misc/kernel-wedge-arch.pl