[PATCH] Future-proof ddeb handling against buildd changes

Stefan Bader stefan.bader at ubuntu.com
Mon Feb 8 16:28:08 UTC 2010


Colin Watson wrote:
> At some point, Launchpad will gain the ability to process ddebs.  When
> that happens, we'll add a flag to the /CurrentlyBuilding file on the
> buildds.  It'd be nice to ensure in advance that the kernel packaging
> can handle this, as pkg_create_dbgsym already does.

Colin,

I wonder whether we/I should add the same or similar magic to the older kernel
packages as well.

-Stefan

> diff --git a/debian.master/rules.d/2-binary-arch.mk b/debian.master/rules.d/2-binary-arch.mk
> index 4468d25..b927374 100644
> --- a/debian.master/rules.d/2-binary-arch.mk
> +++ b/debian.master/rules.d/2-binary-arch.mk
> @@ -287,8 +287,13 @@ ifneq ($(skipdbg),true)
>  	#
>  	mv ../$(dbgpkg)_$(release)-$(revision)_$(arch).deb \
>  		../$(dbgpkg)_$(release)-$(revision)_$(arch).ddeb
> -	grep -v '^$(dbgpkg)_.*$$' debian/files > debian/files.new
> -	mv debian/files.new debian/files
> +	set -e; \
> +	if grep -qs '^Build-Debug-Symbols: yes$$' /CurrentlyBuilding; then \
> +		sed -i '/^$(dbgpkg)_/s/\.deb /.ddeb /' debian/files; \
> +	else \
> +		grep -v '^$(dbgpkg)_.*$$' debian/files > debian/files.new; \
> +		mv debian/files.new debian/files; \
> +	fi
>  	# Now, the package wont get into the archive, but it will get put
>  	# into the debug system.
>  endif
> 
> Thanks,
> 





More information about the kernel-team mailing list