[Unstable][PATCH] UBUNTU: [Packaging] Build all packages for linux-unstable

Juerg Haefliger juerg.haefliger at canonical.com
Wed Nov 27 16:00:21 UTC 2024


For development and testing purposes, we want the linux-unstable
source to build the same packages as the main linux source. This should
be safe since unstable packages should never hit the archive or any of the
PPAs where packages are installed from.

Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
 debian/rules | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index 600e7bab2150..8d6cc782f160 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,16 +47,18 @@ do_cloud_tools=$(sort $(filter-out false,$(do_tools_hyperv)))
 do_tools_perf_jvmti?=false
 do_tools_perf_python?=false
 
-# Indep tools packages may only be built for the main linux source package
-ifeq ($(DEB_SOURCE),linux)
+# Indep tools packages may only be built for the main linux and
+# linux-unstable source packages
+ifeq ($(DEB_SOURCE),$(filter $(DEB_SOURCE),linux linux-unstable))
 	do_tools_common = true
 	do_tools_host = true
 endif
 
-# The linux-source package may only be built for the linux source package
+# The linux-source package may only be built for the main linux and
+# linux-unstable source packages
 # We need to explicitly turn this off here to override any (incorrect)
 # statement in any of the above included makefile snippets
-ifneq ($(DEB_SOURCE),linux)
+ifneq ($(DEB_SOURCE),$(filter $(DEB_SOURCE),linux linux-unstable))
 	do_source_package = false
 endif
 
@@ -165,7 +167,7 @@ include debian/rules.d/3-binary-indep.mk
 include debian/rules.d/4-checks.mk
 
 control_files := $(DEBIAN)/control.stub.in
-ifeq ($(DEB_SOURCE),linux)
+ifeq ($(DEB_SOURCE),$(filter $(DEB_SOURCE),linux linux-unstable))
 	control_files += debian/control.d/linux-libc-dev.stub
 	control_files += debian/control.d/linux-tools-common.stub
 	control_files += debian/control.d/linux-cloud-tools-common.stub
-- 
2.43.0




More information about the kernel-team mailing list