https://launchpad.net/ubuntu/+source/qtbase-opensource-src
Fork it directly to your account
https://packaging.ubuntu.com/html/
https://www.debian.org/doc/debian-policy/ch-controlfields.html#version
https://lintian.debian.org/tags/version-substvar-for-external-package
https://help.launchpad.net/Packaging/PPA/Uploading
https://download.qt.io/official_releases/qt/5.15/5.15.9/submodules/
https://launchpad.net/~kamaji/+archive/ubuntu/focal-qt-5.15
https://packaging.ubuntu.com/html/fixing-a-bug.html
https://askubuntu.com/questions/265703/how-to-do-a-pbuilder-dist-build-with-dependencies-in-a-ppa
Instructions for bootstrapping Qt build from Dmitry Shachnev (Qt packages maintainer for Ubuntu/Debian): https://salsa.debian.org/qt-kde-team/qt/qtbase/-/blob/master/debian/README.source#L16
Fork Make sure that the source zip that the sources came from (Qt module) are present in the parent directory of the cloned forked launchpad git repo for the qt module.
- Update the version number, following Debian guidelines
[email protected] gbp dch --ignore-branch -N 5.15.9-0.1 -D focal
- If you have not created a gpg keypair (RSA 4096bits recommended) do so now. Info about this here:
https://wiki.debian.org/Keysigning - put
DEBSIGN_KEYID=<your key ID>
in~/.devscripts
- this will make sure to select your intended key for signing by debuild and any other debian packaging tools. - Build the source package files, skipping dependency checking (-d)
git clean -xdf && git checkout . && debuild -d -S -sa
- Add the PPA to the OTHERMIRROR setting of .pbuilderrc:
Go to https://launchpad.net/~kamaji/+archive/ubuntu/focal-qt-5.15 (your launchpad config for your PPA), clickTechnical details about this PPA
, and get thedeb https://ppa.launchpadcontent.net
line, and set it in the OTHERMIRROR variable set in your~/.pbuilderrc
file:
OTHERMIRROR="deb htps://ppa.launchpadcontent.net/..."
- Create pbuilder distribution chroot - This step only needs be done once:
pushd ~/pbuilder
sudo pbuilder create --distribution focal --basetgz focal-base.tgz --debootstrapopts --variant=buildd
popd
- Do the pbuilder-dist build for this arch (optional - dput will push it to launchpad which will also build it):
pbuilder-dist focal build ../qtbase-opensource-src_5.15.9-0.1.dsc
- This shouldn't be necessary, as debuild should do it for you.
Sign the generatedsource.changes
anddsc
files:
debsign -k C780F01CA9C39AD5 ../qtbase-opensource-src_5.15.9-0.1_source.changes
debsign -k C780F01CA9C39AD5 ../qtbase-opensource-src_5.15.9-0.1.dsc
- Put the package up on my ppa:
dput ppa:kamaji/focal-qt-5.15 ../qtbase-opensource-src_5.15.9-0.1_source.changes