Fix binary package building with proper Debian method
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 1m4s
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 1m4s
- Use --build=source,binary instead of --build=any,all for dpkg-buildpackage - Add apt-get build-dep -y . to install build dependencies properly - This follows Debian best practices for building binary packages
This commit is contained in:
parent
93151efdec
commit
db0ef6bf91
1 changed files with 4 additions and 2 deletions
|
|
@ -106,11 +106,13 @@ jobs:
|
|||
|
||||
# Install build dependencies
|
||||
echo 'Installing build dependencies...'
|
||||
apt-get update
|
||||
apt-get build-dep -y . || echo 'Build deps installation failed, continuing...'
|
||||
mk-build-deps -i -t 'apt-get -y' debian/control || echo 'Build deps installation failed, continuing...'
|
||||
|
||||
# Ensure we have all necessary build tools
|
||||
echo 'Installing additional build tools...'
|
||||
apt-get update && apt-get install -y build-essential fakeroot devscripts || echo 'Additional tools installation failed'
|
||||
apt-get install -y build-essential fakeroot devscripts || echo 'Additional tools installation failed'
|
||||
|
||||
# Check source package structure
|
||||
echo 'Checking source package structure...'
|
||||
|
|
@ -139,7 +141,7 @@ jobs:
|
|||
|
||||
echo 'Running dpkg-buildpackage with verbose output...'
|
||||
echo 'Forcing binary package build...'
|
||||
if dpkg-buildpackage -us -uc -b -v --build=any,all; then
|
||||
if dpkg-buildpackage -us -uc --build=source,binary -v; then
|
||||
echo 'Build successful!'
|
||||
else
|
||||
echo 'Build failed! Checking for any partial packages...'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue