Re: [PATCH 0/6] kbuild: fix some packaging issues, and use git-archive for source package

Leon Romanovsky
2023-03-16T10:24:24Z

On Mon, Mar 13, 2023 at 05:07:25AM +0900, Masahiro Yamada wrote:
> This series fixes some bugs, then switch to 'git archive'
> for source package creation as suggested by Linus.
>
>
>
> Masahiro Yamada (6):
> kbuild: deb-pkg: make debian source package working again
> kbuild: deb-pkg: do not take KERNELRELEASE from the source version
> kbuild: deb-pkg: set CROSS_COMPILE only when undefined
> kbuild: deb-pkg: split image and debug objects staging out into
> functions
> kbuild: deb-pkg: use dh_listpackages to know enabled packages
> kbuild: use git-archive for source package creation

I tried this series and got the following error:
11:05:53 Install lsb-release or set $KDEB_CHANGELOG_DIST explicitly
11:05:53 dpkg-buildpackage: info: source package linux-upstream
11:05:53 dpkg-buildpackage: info: source version 6.3.0-rc2-gdc71b1b23e6d-1
11:05:53 dpkg-buildpackage: info: source distribution unstable
11:05:53 dpkg-buildpackage: info: source changed by root <root@5621c2cf448d>
11:05:53 dpkg-buildpackage: info: host architecture arm64
11:05:53 dpkg-source --before-build .
11:05:53 dpkg-source: info: using options from linux/debian/source/local-options: --diff-ignore --extend-diff-ignore=.*
11:05:53 dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper
11:05:53 dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
11:05:53 dpkg-buildpackage: warning: (Use -d flag to override.)
11:05:53 make[1]: *** [scripts/Makefile.package:117: deb-pkg] Error 3
11:05:53 make: *** [Makefile:1656: deb-pkg] Error 2

Thanks

>
> .gitignore | 1 +
> Makefile | 9 +-
> scripts/.gitignore | 1 -
> scripts/Makefile | 2 +-
> scripts/Makefile.package | 113 ++--
> scripts/check-git | 14 +
> scripts/list-gitignored.c | 1057 ------------------------------
> scripts/package/builddeb | 269 ++++----
> scripts/package/deb-build-option | 14 +-
> scripts/package/gen-diff-patch | 44 ++
> scripts/package/mkdebian | 24 +-
> scripts/package/mkspec | 17 +-
> scripts/setlocalversion | 45 +-
> 13 files changed, 335 insertions(+), 1275 deletions(-)
> create mode 100755 scripts/check-git
> delete mode 100644 scripts/list-gitignored.c
> create mode 100755 scripts/package/gen-diff-patch
>
> --
> 2.34.1
>