]> git.itanic.dy.fi Git - linux-stable/commit
kbuild: deb-pkg: use more debhelper commands in builddeb
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 26 Dec 2023 13:52:43 +0000 (22:52 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 5 Jan 2024 10:35:38 +0000 (19:35 +0900)
commit5e73758b43c3defba2578df6d3a53e942fa6b41e
tree7a7be30ab6c18feca2b4e3350b41a27421ead28b
parent68e262f8017d7fa5a9ea1ef21cbaa0fd5334ecd5
kbuild: deb-pkg: use more debhelper commands in builddeb

Commit 36862e14e316 ("kbuild: deb-pkg: use dh_listpackages to know
enabled packages") started to require the debhelper tool suite.

Use more dh_* commands in create_package():

 - dh_installdocs to install copyright
 - dh_installchangelogs to install changelog
 - dh_compress to compress changelog
 - dh_fixperms to replace the raw chmod command
 - dh_gencontrol to replace the raw dpkg-gencontrol command
 - dh_md5sums to record the md5sum of included files
 - dh_builddeb to replace the raw dpkg-deb command

Set DEB_RULES_REQUIRES_ROOT to 'no' in case debian/rules is executed
directly.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
scripts/package/builddeb
scripts/package/debian/rules
scripts/package/mkdebian