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 <masahiro.yamada@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
Masahiro Yamada
2024-03-01 15:00:00 +09:00
committed by Paolo Pisati
parent 5edb40e0ca
commit dcb2aa91c9
-10
View File
@@ -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