Raise debhelper compat to 13, and add packaging CI - #56
Draft
AnHeuermann wants to merge 1 commit into
Draft
Conversation
dh_clean, dh_installdirs and dh_install each warned "Compatibility levels
before 10 are deprecated (level 9 in use)" on every nightly build. Declare
debhelper-compat (= 13) in Build-Depends and drop debian/compat in all four
packaging trees. Compat 12 removed --list-missing from dh_install, so
binary-arch now calls dh_missing --list-missing instead; passing it
explicitly keeps the warn-only behaviour rather than compat 13's
--fail-missing default.
Verified in the four distributions the nightly builds target (jammy, noble,
resolute, trixie): all ship debhelper >= 13, and "fakeroot debian/rules
clean" on jammy is now warning-free.
Also drop ${shlibs:Depends} from omc-common, drmodelica and drcontrol. They
are Architecture: all and ship no ELF, so dh_shlibdeps never defines the
substvar and dpkg-gencontrol warned about it.
Add .ci/ and two workflows. packaging.yml runs the metadata checks on every
distribution we ship for, in seconds: control and changelog parse, debhelper
accepts the declared compat level, debian/rules calls no retired helper or
option, every debian/<package>.<helper> names a real binary package, and the
RPM spec template parses after placeholder substitution. build-deb.yml does
a full Autoconf+Makefile build plus dpkg-buildpackage on ubuntu-latest,
weekly and on debian/ pull requests, which is the only way to catch an
.install glob that stopped matching. dependabot.yml bumps the pinned actions
quarterly in one PR.
Document in README.md how debian/ reaches a package, what usually breaks it,
how to test a packaging change, and what the CI does and does not cover.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Member
Author
|
Package tests are fast and passing on my fork: https://github.com/AnHeuermann/OpenModelicaBuildScripts/actions/runs/33160666377 Let's see if the full build finishes in an acceptable time: https://github.com/AnHeuermann/OpenModelicaBuildScripts/actions/runs/33161052296 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Changes
Declare
debhelper-compat (= 13)inBuild-Dependsand dropdebian/compatin all four packaging trees.Compat 12 removed
--list-missingfromdh_install, so binary-arch now callsdh_missing --list-missinginstead; passing it explicitly keeps the warn-only behavior rather than compat 13's--fail-missingdefault.Also drop
${shlibs:Depends}from omc-common, drmodelica and drcontrol. They are Architecture: all and ship no ELF, sodh_shlibdepsnever defines thesubstvaranddpkg-gencontrolwarned about it.Add
.ci/and two workflows.packaging.ymlruns the metadata checks on every distribution we ship for, in seconds: control and changelog parse,debhelperaccepts the declared compat level,debian/rulescalls no retired helper or option, everydebian/<package>.<helper>names a real binary package, and the RPM spec template parses after placeholder substitution. build-deb.yml does a full Autoconf+Makefile build plus dpkg-buildpackage on ubuntu-latest, weekly and on debian/ pull requests, which is the only way to catch an .install glob that stopped matching.dependabot.ymlbumps the pinned actions quarterly in one PR.Document in README.md how
debian/reaches a package, how to test a packaging change, and what the CI does and does not cover.