FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Raise debhelper compat to 13, and add packaging CI by AnHeuermann · Pull Request #56 · OpenModelica/OpenModelicaBuildScripts · GitHub

Raise debhelper compat to 13, and add packaging CI - #56

Draft
AnHeuermann wants to merge 1 commit into
OpenModelica:masterfrom
AnHeuermann:dh_install-deprecation
Draft

Raise debhelper compat to 13, and add packaging CI#56
AnHeuermann wants to merge 1 commit into
OpenModelica:masterfrom
AnHeuermann:dh_install-deprecation

Conversation

Copy link
Copy Markdown
Member

Issue

  • We don't have any CI to verify PRs are actually good to go
  • debhelper 9 is deprecated
    dh_install
    dh_install: warning: Compatibility levels before 10 are deprecated (level 9 in use)
    dh_install: warning: Cannot find (any matches for) "debian/tmp/usr/lib/*/omc/libOMSimulatorLua.a" (tried in ., debian/tmp)
    

Changes

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 behavior rather than compat 13's --fail-missing default.

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, how to test a packaging change, and what the CI does and does not cover.

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>
AnHeuermann self-assigned this Aug 28, 2026

Copy link
Copy Markdown
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL