Skip to content

Increase deb helper compat level to 13#202

Merged
nickva merged 1 commit intomainfrom
upgrade-debhelper-compact-level
Mar 12, 2026
Merged

Increase deb helper compat level to 13#202
nickva merged 1 commit intomainfrom
upgrade-debhelper-compact-level

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Mar 12, 2026

This avoids a bunch of warnings we're getting when building debian packages. The new way to specify compat level is as a build dependency not as a separate compat file.

Prevent prevent generating some dbgsym, buildinfo and changes files. We don't upload them to the package repository anyway.

Skip trying to write build and install man pages. We get a bunch of groff errors and our main docs are in html or on our site.

--with=systemd is not needed with compat level 13, it's implied now, that is, it's always on.

Remove dh_shlibdeps for libmozjs185. We don't install or depend SM 1.8.5 for a while now.

This avoids a bunch of warnings we're getting when building debian
packages. The new way to specify compat level is as a build dependency
not as a separate compat file.

Prevent prevent generating some dbgsym, buildinfo and changes
files. We don't upload them to the package repository anyway.

Skip trying to write build and isntall man pages. We get a bunch of
groff errors and our main docs are in html or on our site.

`--with=systemd` is not needed with compat level 13, it's implied now,
that is, it's always on.

Remove `dh_shlibdeps` for libmozjs185. We don't install or depend SM
1.8.5 for a while now.
nickva added a commit to apache/couchdb that referenced this pull request Mar 12, 2026
Testing couchdb-pkg new deb package build updates.

Here we're using our main CI's last package building step but instead of main
using this PR's branch: apache/couchdb-pkg#202
@nickva
Copy link
Contributor Author

nickva commented Mar 12, 2026

I launched jenkins-* job with this branch: https://ci-couchdb.apache.org/job/jenkins-cm1/job/FullPlatformMatrix/job/jenkins-test-new-deb-build-rules/1/stages/

apache/couchdb@28528a1

Screenshot 2026-03-12 at 10 04 33 AM

An example of build logs from ubuntu:

23:56:54     dh_testroot -O--no-automatic-dbgsym
23:56:54     dh_prep -O--no-automatic-dbgsym
23:56:54     dh_installdirs -O--no-automatic-dbgsym
23:56:54     dh_install -O--no-automatic-dbgsym
23:56:55     dh_installdocs -O--no-automatic-dbgsym
23:56:55     dh_installchangelogs -O--no-automatic-dbgsym
23:56:55     dh_installdebconf -O--no-automatic-dbgsym
23:56:56     dh_installinit -O--no-automatic-dbgsym
23:56:56     dh_installsystemd -O--no-automatic-dbgsym
23:56:56     dh_installsystemduser -O--no-automatic-dbgsym
23:56:56     dh_installlogrotate -O--no-automatic-dbgsym
23:56:56     dh_lintian -O--no-automatic-dbgsym
23:56:56     dh_perl -O--no-automatic-dbgsym
23:56:56     dh_link -O--no-automatic-dbgsym
23:56:56     dh_strip_nondeterminism -O--no-automatic-dbgsym
23:57:16  debian/couchdb/opt/couchdb/share/www/dashboard.assets/img/main-16.png: 1 bytes of garbage after IEND chunk at /usr/share/perl5/File/StripNondeterminism/handlers/png.pm line 172.
23:57:21     dh_compress -O--no-automatic-dbgsym
23:57:21     dh_fixperms -O--no-automatic-dbgsym
23:57:21     dh_missing -O--no-automatic-dbgsym
23:57:21     dh_dwz -a -O--no-automatic-dbgsym
23:57:26  dwz: debian/couchdb/opt/couchdb/erts-14.2.5.13/bin/beam.smp: DWARF compression not beneficial - old size 18419779 new size 18540493
23:57:26  dwz: debian/couchdb/opt/couchdb/erts-14.2.5.13/bin/yielding_c_fun: DWARF compression not beneficial - old size 310278 new size 311609
23:57:26     dh_strip -a -O--no-automatic-dbgsym
23:57:27     dh_makeshlibs -a -O--no-automatic-dbgsym
23:57:27     dh_shlibdeps -a -O--no-automatic-dbgsym
23:57:31     dh_installdeb -O--no-automatic-dbgsym
23:57:31     dh_gencontrol -O--no-automatic-dbgsym
23:57:31  dpkg-gencontrol: warning: package couchdb: substitution variable ${misc:Pre-Depends} unused, but is defined
23:57:31     dh_md5sums -O--no-automatic-dbgsym
23:57:31     debian/rules override_dh_builddeb
23:57:31  make[3]: Entering directory '/home/jenkins/workspace/jenkins-test-new-deb-build-rules/jammy/couchdb/apache-couchdb-3.5.1-28528a1'
23:57:31  dh_builddeb -- -Zgzip
23:57:31  dpkg-deb: building package 'couchdb-nouveau' in '../couchdb-nouveau_3.5.1-28528a1~jammy_amd64.deb'.
23:57:31  dpkg-deb: building package 'couchdb' in '../couchdb_3.5.1-28528a1~jammy_amd64.deb'.
23:57:38  make[3]: Leaving directory '/home/jenkins/workspace/jenkins-test-new-deb-build-rules/jammy/couchdb/apache-couchdb-3.5.1-28528a1'
23:57:38  make[2]: Leaving directory '/home/jenkins/workspace/jenkins-test-new-deb-build-rules/jammy/couchdb/apache-couchdb-3.5.1-28528a1'
23:57:38   dpkg-genbuildinfo --build=binary -O../couchdb_3.5.1-28528a1~jammy_amd64.buildinfo
23:57:39   dpkg-genchanges --build=binary -O../couchdb_3.5.1-28528a1~jammy_amd64.changes
23:57:40  dpkg-genchanges: info: binary-only upload (no source code included)
23:57:40   dpkg-source --after-build .
23:57:40  dpkg-source: info: using options from apache-couchdb-3.5.1-28528a1/debian/source/options: --compression=bzip2 --compression-level=9
23:57:40  dpkg-buildpackage: info: binary-only upload (no source included)
23:57:40  if [ "x86_64" = "x86_64" ]; then cd /home/jenkins/workspace/jenkins-test-new-deb-build-rules/jammy/couchdb/apache-couchdb-3.5.1-28528a1/.. && lintian --profile couchdb couch*.deb || true ; fi

Compare to before

make[2]: Entering directory '/home/jenkins/workspace/kins-cm1_FullPlatformMatrix_main/jammy/couchdb/apache-couchdb-3.5.1-c570def'
10:00:30  dh binary --with=systemd
10:00:30  dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:31     dh_testroot
10:00:31     dh_prep
10:00:31     dh_installdirs
10:00:31  dh_installdirs: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:31     dh_install
10:00:31  dh_install: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:31     dh_installdocs
10:00:31  dh_installdocs: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:31     dh_installchangelogs
10:00:31     dh_installman
10:00:31  dh_installman: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:31     dh_installdebconf
10:00:31     dh_systemd_enable
10:00:31  dh_systemd_enable: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:31     dh_installinit
10:00:31  dh_installinit: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:32     dh_systemd_start
10:00:32  dh_systemd_start: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:32     dh_installlogrotate
10:00:32     dh_lintian
10:00:32  dh_lintian: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:32     dh_perl
10:00:32     dh_link
10:00:32  dh_link: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:32     dh_strip_nondeterminism
10:00:49  debian/couchdb/opt/couchdb/share/www/dashboard.assets/img/main-16.png: 1 bytes of garbage after IEND chunk at /usr/share/perl5/File/StripNondeterminism/handlers/png.pm line 172.
10:00:55     dh_compress
10:00:55  dh_compress: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:55  dh_compress: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:55     dh_fixperms
10:00:55     dh_missing
10:00:55  dh_missing: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:55     dh_strip
10:00:55  dh_strip: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:55  dh_strip: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:00:56  f13fe7adad5654e7ebd85e818b3695337f081f9a
10:00:56  55ecf5eacf4eb70aebe4dca7e1363594092b0be9
10:00:56  5c87030eadd205a20b42987e5939e5c582f2c254
10:00:56  98dbc4edd385cecc748ac873f0ded767d11a445c
10:00:56  85c3c098e613a4aecc41d7d25186a5b6705333e3
10:00:56  0d9c1e1375fe72f0a5e8f9da7633b4d5fffb3181
10:00:56  64b29bdc80cdbc2105c790ea6e69cafec47708e1
10:00:56  15cd993b36fa2fcbde97b1ce25e268c390ab8c34
10:00:56  54dbed7588e42c8f90ffc17dde5ec13520012296
10:00:56  7a2f99b0839dcc9a72caa9c6d7559c26b971663c
10:00:56  f3993de5841f98c9afb26859ee48c2ad7bab26e9
10:00:56  4b8e4e8497f8fba427fdbe6bd5328fd25b636ce2
10:00:56  b68db8d09738419aba33647fcf31e075574d745e
10:00:56  80349726d88cb8d10bad4138dc922cc65a4c1a26
10:00:56  f773291053586173d630899ac8bb05c3e9616557
10:00:56  e678e02b5bf7131e33e15f3809d14b061bbe977f
10:00:56  fa886d0963a1ec56c73412577560b9ca57ec7dfb
10:00:56  64b8a583f738c0b84815be2a78f9fe7c097679d8
10:00:56  49fe1cb6729931e9990997f2c39b14c8257a0599
10:00:56  69c1c4489d9b76a2ec4ec0cef73101443c7dbe0b
10:00:56  088c6e00165612d4c980a9968a6c94973435a402
10:00:56  6328b3da8f3b70a9b8087373dd04ca30f6bd4d7c
10:00:57  f82e4169a7bf2c8e70d6bd7ad00cbcab91e4c761
10:00:57  cdef471f89fc64d829862c2ef3bee0f69d12e210
10:00:57  d69f11f9c84ae975b43c8d4e39fd24e2fac325ba
10:00:59  24d5be127476668e7c2d1176468b323722de97bd
10:00:59  66e844e15d4c5ff7c7b7ff49f2a7413fcb45ac8a
10:00:59  7d4d274a91a4a8c821f86597eadca4b9602af4d6
10:00:59  fbc3733e6bb4bef8d4affd6f74283d1bb951c84a
10:00:59  176011805dc3a9116cc58be10de481f83bb2ba12
10:00:59  85594c7c2bb34fa17ec52fa0e7bfe4effb54264e
10:00:59  a93abdec16c549cb09518774bfc62c9b6925c68e
10:01:00  80349726d88cb8d10bad4138dc922cc65a4c1a26
10:01:00     dh_makeshlibs
10:01:00  dh_makeshlibs: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:01:00     debian/rules override_dh_shlibdeps
10:01:00  make[3]: Entering directory '/home/jenkins/workspace/kins-cm1_FullPlatformMatrix_main/jammy/couchdb/apache-couchdb-3.5.1-c570def'
10:01:00  dh_shlibdeps -- --ignore-missing-info -xlibmozjs185-1.0
10:01:00  dh_shlibdeps: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:01:00  dh_shlibdeps: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:01:03  make[3]: Leaving directory '/home/jenkins/workspace/kins-cm1_FullPlatformMatrix_main/jammy/couchdb/apache-couchdb-3.5.1-c570def'
10:01:03     dh_installdeb
10:01:03  dh_installdeb: warning: Compatibility levels before 10 are deprecated (level 9 in use)
10:01:03     dh_gencontrol
10:01:03     dh_md5sums
10:01:04     debian/rules override_dh_builddeb
10:01:04  make[3]: Entering directory '/home/jenkins/workspace/kins-cm1_FullPlatformMatrix_main/jammy/couchdb/apache-couchdb-3.5.1-c570def'
10:01:04  dh_builddeb -- -Zgzip
10:01:04  dpkg-deb: building package 'couchdb-dbgsym' in 'debian/.debhelper/scratch-space/build-couchdb/couchdb-dbgsym_3.5.1-c570def~jammy_amd64.deb'.
10:01:04  dpkg-deb: building package 'couchdb-nouveau' in '../couchdb-nouveau_3.5.1-c570def~jammy_amd64.deb'.
10:01:04  dpkg-deb: building package 'couchdb' in '../couchdb_3.5.1-c570def~jammy_amd64.deb'.
10:01:05  	Renaming couchdb-dbgsym_3.5.1-c570def~jammy_amd64.deb to couchdb-dbgsym_3.5.1-c570def~jammy_amd64.ddeb
10:01:11  make[3]: Leaving directory '/home/jenkins/workspace/kins-cm1_FullPlatformMatrix_main/jammy/couchdb/apache-couchdb-3.5.1-c570def'
10:01:11  make[2]: Leaving directory '/home/jenkins/workspace/kins-cm1_FullPlatformMatrix_main/jammy/couchdb/apache-couchdb-3.5.1-c570def'
10:01:11   dpkg-genbuildinfo --build=binary -O../couchdb_3.5.1-c570def~jammy_amd64.buildinfo
10:01:13   dpkg-genchanges --build=binary -O../couchdb_3.5.1-c570def~jammy_amd64.changes
10:01:14  dpkg-genchanges: info: binary-only upload (no source code included)
10:01:14   dpkg-source --after-build .
10:01:14  dpkg-source: info: using options from apache-couchdb-3.5.1-c570def/debian/source/options: --compression=bzip2 --compression-level=9
10:01:14  dpkg-buildpackage: info: binary-only upload (no source included)

@nickva nickva merged commit f662d2d into main Mar 12, 2026
@nickva nickva deleted the upgrade-debhelper-compact-level branch March 12, 2026 14:15
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.

2 participants