APPLIED/cmnt[P,T,X,B]: [P, T, X, A, B, C, D][PATCH] UBUNTU: [Packaging] startnewrelease: add support for backport kernels

Kleber Souza kleber.souza at canonical.com
Thu Sep 20 09:57:38 UTC 2018


On 09/20/18 09:36, Marcelo Henrique Cerri wrote:
> BugLink: http://bugs.launchpad.net/bugs/1793461
> 
> Update the startnewrelease target to support backport version numbers
> when creating the new changelog entry.
> 
> Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
> ---
>  debian/rules.d/1-maintainer.mk | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/debian/rules.d/1-maintainer.mk b/debian/rules.d/1-maintainer.mk
> index 1f592e53f78f..5d759f6e1e0a 100644
> --- a/debian/rules.d/1-maintainer.mk
> +++ b/debian/rules.d/1-maintainer.mk
> @@ -125,11 +125,10 @@ diffupstream:
>  
>  startnewrelease:
>  	dh_testdir
> -	@nextminor=$(shell expr `echo $(revision) | gawk -F. '{print $$2}'` + 1); \
> -	nextmajor=$(shell expr `echo $(revision) | awk -F. '{print $$1}'` + 1); \
> +	@ver=$$(echo "$(revision)" | perl -ne 'if (/^(\d*)\.(\d*)(.*)?$$/) { printf("%d.%d%s\n", $$1 + 1, $$2 +1, $$3) }'); \
>  	now="$(shell date -R)"; \
> -	echo "Creating new changelog set for $(release)-$$nextmajor.$$nextminor..."; \
> -	echo -e "$(src_pkg_name) ($(release)-$$nextmajor.$$nextminor) UNRELEASED; urgency=medium\n" > $(DEBIAN)/changelog.new; \
> +	echo "Creating new changelog set for $(release)-$$ver..."; \
> +	echo -e "$(src_pkg_name) ($(release)-$$ver) UNRELEASED; urgency=medium\n" > $(DEBIAN)/changelog.new; \
>  	echo "  CHANGELOG: Do not edit directly. Autogenerated at release." >> \
>  		$(DEBIAN)/changelog.new; \
>  	echo "  CHANGELOG: Use the printchanges target to see the curent changes." \
> 

Applied to {precise-esm,trusty,xenial,bionic}/master-next branches, with
a context adjustment for precise-esm. *Not* applied for artful.

Thanks,
Kleber




More information about the kernel-team mailing list