From db0ef6bf915043e327a0b0ac785553ce0c46f413 Mon Sep 17 00:00:00 2001 From: robojerk Date: Sat, 6 Sep 2025 09:53:00 -0700 Subject: [PATCH] Fix binary package building with proper Debian method - 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 --- .forgejo/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index f209b5e..767a45e 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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...'