mkosi: Deal with ubuntu's special debug packages

Building debug packages on ubuntu requires the "debug" option to be
specified explicitly. Debug packages on Ubuntu have the .ddeb extension,
so let's make sure we handle that by copying the .ddeb packages in the
build script as well.
This commit is contained in:
Daan De Meyer
2024-04-23 09:09:37 +02:00
parent 388dcc785b
commit 89b44cbb4d

View File

@@ -45,7 +45,7 @@ build() {
DEB_BUILD_OPTIONS=$(awk '$1=$1' <<<"\
$( ((WITH_TESTS)) || echo nocheck) \
$( ((WITH_DOCS)) || echo nodoc) \
$( ((WITH_DEBUG)) || echo nostrip) \
$( ((WITH_DEBUG)) && echo debug || echo nostrip) \
terse \
optimize=-lto \
hardening=-fortify \
@@ -100,5 +100,8 @@ if ! build; then
build
fi
cp ../*.deb "$PACKAGEDIR"
cp ../*.deb "$OUTPUTDIR"
(
shopt -s nullglob
cp ../*.deb ../*.ddeb "$PACKAGEDIR"
cp ../*.deb ../*.ddeb "$OUTPUTDIR"
)