Fix build process to follow official Debian backporting guidelines
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 3m25s
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 3m25s
- Add dch --bpo to add backport revision number as per Debian guidelines - Add fakeroot debian/rules binary test build before main build - Use dpkg-buildpackage --build=binary --unsigned-changes as recommended - This follows the SimpleBackportCreation workflow from Debian wiki - Should finally produce proper .deb binary packages
This commit is contained in:
parent
65d5ef02da
commit
4f3d9cb521
1 changed files with 17 additions and 4 deletions
|
|
@ -146,7 +146,20 @@ jobs:
|
|||
echo 'Changelog:'
|
||||
head -20 debian/changelog
|
||||
|
||||
# Build packages
|
||||
# Add backport revision number (following Debian guidelines)
|
||||
echo 'Adding backport revision number...'
|
||||
dch --bpo || echo 'dch --bpo failed, continuing...'
|
||||
|
||||
# Test build first (following Debian guidelines)
|
||||
echo 'Testing build with fakeroot debian/rules binary...'
|
||||
if fakeroot debian/rules binary; then
|
||||
echo 'Test build successful!'
|
||||
else
|
||||
echo 'Test build failed!'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Build packages properly (following Debian guidelines)
|
||||
echo 'Building ostree packages...'
|
||||
echo 'Current directory before build:'
|
||||
pwd
|
||||
|
|
@ -159,9 +172,9 @@ jobs:
|
|||
dpkg -l | grep libfuse3-dev || echo "libfuse3-dev not found"
|
||||
dpkg -l | grep libsystemd-dev || echo "libsystemd-dev not found"
|
||||
|
||||
echo 'Running dpkg-buildpackage with verbose output...'
|
||||
echo 'Forcing binary package build...'
|
||||
if dpkg-buildpackage -us -uc --build=source,binary -v; then
|
||||
echo 'Running dpkg-buildpackage with proper Debian backport flags...'
|
||||
echo 'Using --build=binary --unsigned-changes as per Debian guidelines...'
|
||||
if dpkg-buildpackage --build=binary --unsigned-changes; then
|
||||
echo 'Build successful!'
|
||||
else
|
||||
echo 'Build failed! Checking for any partial packages...'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue