Update OpenJDK¶
Get a new upstream version¶
Check for the new version¶
$ uscan
Update git tag, changelog and generate original tarball¶
Update variable
git_tagindebian/rules.Add a changelog entry with the new version.
Generate the original tarball:
$ make -f debian/rules get-orig
Validate the tarball¶
OpenJDK vendors additional libraries in the source tree.
Run make -f debian/rules update-license to generate debian/copyright
and check the new entries.
The vendored libraries should be removed from the source tree:
Update
Files-Excluded:indebian/copyright.Update
get-origtarget indebian/rules.Add package dependency in
bd_syslibsvariable indebian/rulesPatch the build if necessary, see
debian/patches/system-pcsclite.diffRegenerate control files:
$ make -f debian/rules update-control-files
Validate the build¶
Build the package locally (see How to build packages locally), refreshing patches if they do not apply.
To ensure the package is fully functional and the build environment is correct, install the newly built packages and perform a “bootcycle” build check:
Install the built packages:
$ sudo apt install ../openjdk-*.deb
(See How to install built packages for more details on installing built packages).
Re-run the build in the same or a fresh source tree to verify that the newly installed JDK can successfully build OpenJDK.
Build the source package and upload¶
Once validated, follow the standard Uploading to the Archive procedure to submit the update.
Update an existing version¶
To update an existing version in the archive (e.g., to fix a packaging bug or add a security patch) without changing the upstream base:
Add a new changelog entry with
dch -i.Apply your fixes or add new patches to
debian/patches/.Regenerate the control files:
$ make -f debian/rules update-control-files