building of linux-signed package failing on arm64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-signed-aws (Ubuntu) |
Fix Committed
|
Undecided
|
Ian May | ||
Bionic |
Fix Committed
|
Undecided
|
Ian May |
Bug Description
dpkg-buildpackage
-----------------
dpkg-buildpackage: info: source package linux-signed-aws
dpkg-buildpackage: info: source version 4.15.0-1119.126
dpkg-buildpackage: info: source distribution bionic
dpkg-source --before-build linux-signed-
dpkg-buildpackage: info: host architecture arm64
dpkg-source: info: using options from linux-signed-
fakeroot debian/rules clean
sed <debian/
-e "s/@ABI@
-e "s/@UNSIGNED_
-e "s/@UNSIGNED_
-e 's/@SRCPKGNAME@
-e 's/@HEADERS_
-e 's/@HEADERS_
rm -rf ./4.15.0-1119.126 UNSIGNED SIGNED
rm -f debian/
debian/
debian/
debian/
debian/
rm -f debian/
dh clean
dh_clean
debian/rules build-arch
dh build-arch
dh_update_
debian/rules override_
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./download-signed "linux-
Downloading http://
Downloading http://
Extracting 4.15.0-1119.126 ...
Extracting 4.15.0-
Extracting 4.15.0-
mkdir SIGNED
( \
cd "4.15.0-1119.126" || exit 1; \
for s in *.efi.signed; do \
[ ! -f "$s" ] && continue; \
base=$(echo "$s" | sed -e 's/.efi.signed//'); \
( \
vars=
[ -f "$vars" ] && . "./$vars"; \
if [ "$GZIP" = "1" ]; then \
gzip -9 "$s"; \
mv "${s}.gz" "$s"; \
fi; \
); \
chmod 600 "$s"; \
ln "$s" "../SIGNED/$base"; \
done; \
for s in *.opal.sig; do \
[ ! -f "$s" ] && continue; \
chmod 600 "$s"; \
base=$(echo "$s" | sed -e 's/.opal.sig//'); \
cat "$base.opal" "$s" >"../SIGNED/$base"; \
done; \
for s in *.sipl.sig; do \
[ ! -f "$s" ] && continue; \
base=$(echo "$s" | sed -e 's/.sipl.sig//'); \
cat "$base.sipl" "$s" >"../SIGNED/$base"; \
chmod 600 "../SIGNED/$base"; \
done \
)
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
fakeroot debian/rules binary-arch
dh binary-arch
dh_testroot -a
dh_prep -a
debian/rules override_
make[1]: Entering directory '/<<PKGBUILDDIR>>'
for signed in "SIGNED"/*; do \
flavour=$(echo "$signed" | sed -e "s@.*-4.
instfile=$(echo "$signed" | sed -e "s@[^/]*/@@" -e "s@-4.15.
verflav=
\
package=
echo "$package: adding $signed"; \
echo "$signed boot" >>"debian/
\
package=
echo "$package: adding $signed"; \
echo "$signed boot" >>"debian/
\
./generate-depends linux-image-
linux-
>>"debian/
\
for which in postinst postrm preinst prerm; do \
template=
script=
sed -e "s/@abiname@
-e "s/@localversio
-e "s/@image-
<"$template" >"$script"; \
done; \
echo "interest linux-update-
>"debian/
done
kernel-
/bin/sh: 8: cannot create debian/
linux-image-
/bin/sh: 12: cannot create debian/
/bin/sh: 14: cannot create debian/
/bin/sh: 21: cannot create debian/
/bin/sh: 21: cannot create debian/
/bin/sh: 21: cannot create debian/
/bin/sh: 21: cannot create debian/
/bin/sh: 26: cannot create debian/
debian/rules:81: recipe for target 'override_
make[1]: *** [override_
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:45: recipe for target 'binary-arch' failed
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch subprocess returned exit status 2
This can be resolved by applying the following patches that were added for arm64 signed support in Disco
UBUNTU: [Packaging] remove handoff check for uefi signing
UBUNTU: [Packaging] decompress gzipped efi images in signing tarball