Message ID | 20240301060000.269475-1-masahiro.yamada@canonical.com |
---|---|
State | New |
Headers | show |
Series | [Unstable/Noble] UBUNTU: [packaging] do not include debian/ directory in a binary package | expand |
On Fri, Mar 01, 2024 at 03:00:00PM +0900, Masahiro Yamada wrote: > 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. Applied.
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
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@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(-)