mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
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:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user