[Unstable/Noble][PATCH] UBUNTU: [packaging] do not include debian/ directory in a binary package

Masahiro Yamada masahiro.yamada at canonical.com
Fri Mar 1 06:00:00 UTC 2024


Both Debian kernel and Ubuntu kernel provide a linux-source package,
but a difference is that Debian's one does not include the debian/
directory, while Ubuntu's one includes debian/ and debian.*/ directories.

Including a debian/ directory in a binary package is odd.

If you want to rebuild the kernel in the Ubuntu way, you can get the
source package by 'apt-get source'. It is not what the linux-source
package should offer.

Signed-off-by: Masahiro Yamada <masahiro.yamada at canonical.com>
---

This was written during the hackathon.
Since pull requests in getea are no longer considered,
let's see if the same patch is individually acceptable in kernel ML.

 debian/rules.d/3-binary-indep.mk | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/debian/rules.d/3-binary-indep.mk b/debian/rules.d/3-binary-indep.mk
index 6e459a09d4e8..70835566c168 100644
--- a/debian/rules.d/3-binary-indep.mk
+++ b/debian/rules.d/3-binary-indep.mk
@@ -46,16 +46,6 @@ ifeq ($(do_source_package_content),true)
 	(cd $(srcdir); tar cf - $(srcpkg)) | bzip2 -9c > \
 		$(srcdir)/$(srcpkg).tar.bz2
 	rm -rf $(balldir)
-	find './debian' './$(DEBIAN)' \
-		-path './debian/linux-*' -prune -o \
-		-path './debian/$(src_pkg_name)-*' -prune -o \
-		-path './debian/build' -prune -o \
-		-path './debian/files' -prune -o \
-		-path './debian/stamps' -prune -o \
-		-path './debian/tmp' -prune -o \
-		-path './$(DEBIAN)/__abi.current' -prune -o \
-		-print | \
-		cpio -pd --preserve-modification-time $(srcdir)
 	$(LN) $(srcpkg)/$(srcpkg).tar.bz2 $(srcdir)/..
 endif
 endif
-- 
2.40.1




More information about the kernel-team mailing list