diff mbox series

[Unstable/Noble,1/2] UBUNTU: [Packaging] Move linux-source package stub to debian/control.d

Message ID 20240207112446.1986592-2-juerg.haefliger@canonical.com
State New
Headers show
Series Don't produce linux-*-source-<version> package (LP: #2052439) | expand

Commit Message

Juerg Haefliger Feb. 7, 2024, 11:24 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2052439

The linux-source-<version> 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 <juerg.haefliger@canonical.com>
---
 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 mbox series

Patch

diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in
index 5bc5986172e1..11b996bb40b4 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: <!stage1>
-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: <!stage1>
 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: <!stage1>
+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 1974ce518c50..eee65f1ea19e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -172,6 +172,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