From c2451215f5826075cb84d87ccd0803ef70766364 Mon Sep 17 00:00:00 2001 From: Juerg Haefliger Date: Wed, 7 Feb 2024 12:24:45 +0100 Subject: [PATCH] UBUNTU: [Packaging] Move linux-source package stub to debian/control.d BugLink: https://bugs.launchpad.net/bugs/2052439 The linux-source- package may only be built for the main linux source package. Similar to linux-libc-dev, move the packaging stub to debian/control.d and only include it if the source package name is indeed 'linux'. Signed-off-by: Juerg Haefliger Signed-off-by: Paolo Pisati --- debian.master/control.stub.in | 24 ------------------------ debian/control.d/linux-source.stub | 23 +++++++++++++++++++++++ debian/rules | 1 + 3 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 debian/control.d/linux-source.stub diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in index 712031ae9116..9377ba08a69b 100644 --- a/debian.master/control.stub.in +++ b/debian.master/control.stub.in @@ -57,30 +57,6 @@ Vcs-Git: git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/=SERIE XS-Testsuite: autopkgtest #XS-Testsuite-Depends: gcc-4.7 binutils -Package: linux-source-PKGVER -Build-Profiles: -Architecture: all -Section: devel -Priority: optional -Provides: linux-source -Depends: ${misc:Depends}, binutils, bzip2, coreutils -Recommends: libc-dev, gcc, make -Suggests: libncurses-dev | ncurses-dev, kernel-package, libqt3-dev -Description: Linux kernel source for version PKGVER with Ubuntu patches - This package provides the source code for the Linux kernel version - PKGVER. - . - This package is mainly meant for other packages to use, in order to build - custom flavours. - . - If you wish to use this package to create a custom Linux kernel, then it - is suggested that you investigate the package kernel-package, which has - been designed to ease the task of creating kernel image packages. - . - If you are simply trying to build third-party modules for your kernel, - you do not want this package. Install the appropriate linux-headers - package instead. - Package: SRCPKGNAME-headers-PKGVER-ABINUM Build-Profiles: Architecture: all diff --git a/debian/control.d/linux-source.stub b/debian/control.d/linux-source.stub new file mode 100644 index 000000000000..f2acbfe38624 --- /dev/null +++ b/debian/control.d/linux-source.stub @@ -0,0 +1,23 @@ +Package: linux-source-PKGVER +Build-Profiles: +Architecture: all +Section: devel +Priority: optional +Provides: linux-source +Depends: ${misc:Depends}, binutils, bzip2, coreutils +Recommends: libc-dev, gcc, make +Suggests: libncurses-dev | ncurses-dev, kernel-package, libqt3-dev +Description: Linux kernel source for version PKGVER with Ubuntu patches + This package provides the source code for the Linux kernel version + PKGVER. + . + This package is mainly meant for other packages to use, in order to build + custom flavours. + . + If you wish to use this package to create a custom Linux kernel, then it + is suggested that you investigate the package kernel-package, which has + been designed to ease the task of creating kernel image packages. + . + If you are simply trying to build third-party modules for your kernel, + you do not want this package. Install the appropriate linux-headers + package instead. diff --git a/debian/rules b/debian/rules index dd0f58e9ddc1..2a105f94b907 100755 --- a/debian/rules +++ b/debian/rules @@ -166,6 +166,7 @@ ifeq ($(src_pkg_name),linux) control_files += debian/control.d/linux-tools-common.stub control_files += debian/control.d/linux-cloud-tools-common.stub control_files += debian/control.d/linux-tools-host.stub + control_files += debian/control.d/linux-source.stub endif # Calculate Ubuntu Compatible Signing levels