From dcb2aa91c99b51128a2696436a4eadc24d01d9c9 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 1 Mar 2024 15:00:00 +0900 Subject: [PATCH] UBUNTU: [packaging] do not include debian/ directory in a binary package 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 Signed-off-by: Paolo Pisati --- 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 2237609d878f..8959f0dd6905 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