[PATCH][T, X, Y, Z, unstable] UBUNTU: [debian] derive indep_hdrs_pkg_name from src_pkg_name

Andy Whitcroft apw at canonical.com
Fri Feb 10 12:03:52 UTC 2017


On Tue, Jan 24, 2017 at 12:05:20PM -0800, Kamal Mostafa wrote:
> This long-standing oversight in our debian rules hardcodes the string "linux"
> instead of using the $(src_pkg_name) for just one of the generated .deb package
> names: linux-headers-x.x.x-x.  Lets fix it in the generic branches
> (T,X,Y,Z,unstable) so that we won't have to keep applying this patch to each of
> the derivative/custom kernels.
> 
> -----8<-----
> 
> Ignore: yes
> 
> Signed-off-by: Kamal Mostafa <kamal at canonical.com>
> ---
>  debian/rules.d/0-common-vars.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
> index 1c87ebd..ccc65dc 100644
> --- a/debian/rules.d/0-common-vars.mk
> +++ b/debian/rules.d/0-common-vars.mk
> @@ -126,7 +126,7 @@ stampdir	:= $(CURDIR)/debian/stamps
>  bin_pkg_name=linux-image-$(abi_release)
>  extra_pkg_name=linux-image-extra-$(abi_release)
>  hdrs_pkg_name=linux-headers-$(abi_release)
> -indep_hdrs_pkg_name=linux-headers-$(abi_release)
> +indep_hdrs_pkg_name=$(src_pkg_name)-headers-$(abi_release)
>  
>  #
>  # The generation of content in the doc package depends on both 'AUTOBUILD=' and

Whilst this is a good idea in principle, care would need to be taken
applying it.  Though many of the derivates carry this exact patch the
LTS backport kernels do not.  If we apply this and change the default we
need to apply the inverse to those LTS kernels.

-apw




More information about the kernel-team mailing list