diff mbox series

[U/N,1/1] UBUNTU: [Packaging] re-introduce linux-doc as an empty package

Message ID 20240306221213.405505-1-andrea.righi@canonical.com
State New
Headers show
Series [U/N,1/1] UBUNTU: [Packaging] re-introduce linux-doc as an empty package | expand

Commit Message

Andrea Righi March 6, 2024, 10:12 p.m. UTC
In commit fd8ee93c3a38 ("UBUNTU: [Packaging] drop useless linux-doc") we
decided to remove the linux-doc package, saving in this way a lot of
space required to produce the documentation content (that can be easily
found online).

However, this change broke some user-space packages that are still
requiring linux-doc as a dependency.

Therefore, re-introduce an empty linux-doc package to prevent the
breakgage and at the same time avoid to re-introduce the expensive build
dependencies.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
---
 debian.master/control.d/linux-doc.stub | 8 ++++++++
 debian/rules                           | 3 +++
 2 files changed, 11 insertions(+)
 create mode 100644 debian.master/control.d/linux-doc.stub
diff mbox series

Patch

diff --git a/debian.master/control.d/linux-doc.stub b/debian.master/control.d/linux-doc.stub
new file mode 100644
index 000000000000..657144763c74
--- /dev/null
+++ b/debian.master/control.d/linux-doc.stub
@@ -0,0 +1,8 @@ 
+Package: linux-doc
+Build-Profiles: <!stage1>
+Architecture: all
+Section: doc
+Priority: optional
+Description: Linux kernel specific documentation for version PKGVER
+ This package is deprecated and it is temporarily provided only for
+ compatibility reasons. It will be dropped in the future.
diff --git a/debian/rules b/debian/rules
index 303e8fcec153..ce09c3cf1c65 100755
--- a/debian/rules
+++ b/debian/rules
@@ -174,6 +174,9 @@  ifeq ($(src_pkg_name),linux)
 	control_files += debian/control.d/linux-tools-host.stub
 	control_files += debian/control.d/linux-source.stub
 endif
+ifneq (,$(wildcard $(DEBIAN)/control.d/linux-doc.stub))
+	control_files += $(DEBIAN)/control.d/linux-doc.stub
+endif
 
 # Calculate Ubuntu Compatible Signing levels
 UBUNTU_COMPATIBLE_SIGNING=$(shell grep -qx ' *Subject: C = GB, ST = Isle of Man, O = Canonical Ltd., OU = Secure Boot, CN = Canonical Ltd. Secure Boot Signing (2021 v3)' debian/canonical-revoked-certs.pem && echo ubuntu/4 pro/3)