This updates the debhelper compat level when building a Debian package from 10 to 13. This fixes #455, since the file introduced in #442 is picked up in the newer compat level.
PPS: For reproducibility I had to fudge the timestamp in the Debian changelog (which is used for all files in the package)
### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [ ] Ensure that the pull request title represents the desired changelog entry
- [ ] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue
This updates the debhelper compat level when building a Debian package from 10 to 13. This fixes #455, since the file introduced in #442 is picked up in the newer compat level.
This introces a new Pre-Depends (see the changelog for compat level 12) on
init-system-helpers (>= 1.54~)
which should be satisfiable in Debian >= 10 and Ubuntu >= 20.04, which should match Jenkins' support policy AFAICS.Testing done
Build package using
in the
jenkinsciinfra/packaging:latest
build image and installed in adebian:12
for verification that it still works and expected files are installed.PS: I had to change the author in
branding/test.mk
tosince
debsign
is using the package author field to find the secret GPG key...Diffoscope report
Here is a difference between the package built without my change and with my change as reported by diffoscope:
Report
```diff --- target/debian/jenkinstest_2.440.2_all.old.deb +++ target/debian/jenkinstest_2.440.2_all.new.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2024-03-22 12:37:00.000000 debian-binary │ --rw-r--r-- 0 0 0 2792 2024-03-22 12:37:00.000000 control.tar.xz │ --rw-r--r-- 0 0 0 85780176 2024-03-22 12:37:00.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 3000 2024-03-22 12:37:00.000000 control.tar.xz │ +-rw-r--r-- 0 0 0 85780336 2024-03-22 12:37:00.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── file list │ │ │ @@ -1,7 +1,7 @@ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2024-03-22 12:37:00.000000 ./ │ │ │ -rw-r--r-- 0 root (0) root (0) 78 2024-03-22 12:37:00.000000 ./conffiles │ │ │ --rw-r--r-- 0 root (0) root (0) 889 2024-03-22 12:37:00.000000 ./control │ │ │ --rw-r--r-- 0 root (0) root (0) 399 2024-03-22 12:37:00.000000 ./md5sums │ │ │ --rwxr-xr-x 0 root (0) root (0) 4060 2024-03-22 12:37:00.000000 ./postinst │ │ │ --rwxr-xr-x 0 root (0) root (0) 1423 2024-03-22 12:37:00.000000 ./postrm │ │ │ --rwxr-xr-x 0 root (0) root (0) 237 2024-03-22 12:37:00.000000 ./prerm │ │ │ +-rw-r--r-- 0 root (0) root (0) 933 2024-03-22 12:37:00.000000 ./control │ │ │ +-rw-r--r-- 0 root (0) root (0) 469 2024-03-22 12:37:00.000000 ./md5sums │ │ │ +-rwxr-xr-x 0 root (0) root (0) 5028 2024-03-22 12:37:00.000000 ./postinst │ │ │ +-rwxr-xr-x 0 root (0) root (0) 1626 2024-03-22 12:37:00.000000 ./postrm │ │ │ +-rwxr-xr-x 0 root (0) root (0) 502 2024-03-22 12:37:00.000000 ./prerm │ │ ├── ./control │ │ │ @@ -1,12 +1,13 @@ │ │ │ Package: jenkinstest │ │ │ Version: 2.440.2 │ │ │ Architecture: all │ │ │ Maintainer: Bogus Test (This is test only key)Formatted HTML report
PPS: For reproducibility I had to fudge the timestamp in the Debian changelog (which is used for all files in the package)