From bc9ea030d95bb23b61e90a801413602657ff19d7 Mon Sep 17 00:00:00 2001 From: David Prevot Date: Wed, 4 May 2022 10:02:01 +0200 Subject: [PATCH] Document Debian packaging workflow Generic parts may be better suited in a proper documentation, and also help providing guidelines for proper CI/CD. --- debian/README.source | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/debian/README.source b/debian/README.source index e3c28a6..ceed235 100644 --- a/debian/README.source +++ b/debian/README.source @@ -1,2 +1,39 @@ -# In order to import the last upstream $version, run +## New upstream version +# +# Once the package has been tagged (using server/$version format), the +# last upstream version can be imported using the following command. +# +# Note: the git branches master, upstream/latest, and the current debian +# one have to be checked out first. + gbp import-orig --uscan + +## Update Debian changelog +# +# One can then edit the Debian changelog with the proper version, e.g. +# using the following command. + +gbp dch -R --multimaint-merge --commit + +## Build +# +# Then, the package can be build using e.g. the following command. +# +# The resulting package should then be available in /tmp/bkctld. + +gbp buildpackage + +## Lint and checks +# +# Lintian may help verify that nothing bad got introduced. + +lintian -EI --pedantic /tmp/bkctld/bkctld_*_amd64.changes + +# debdiff(1) is useful to check that no files has been removed or added +# by mistake. + +debdiff /tmp/bkctld_{$oldVersion,$newVersion}_all.deb + +# diffoscope(1) can go further and show the exact differences. + +diffoscope --new-file /tmp/bkctld_{$oldVersion,$newVersion}_all.deb