aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/debian
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-12-26 22:52:43 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-01-05 19:35:38 +0900
commit5e73758b43c3defba2578df6d3a53e942fa6b41e (patch)
tree7a7be30ab6c18feca2b4e3350b41a27421ead28b /scripts/package/debian
parentkbuild: deb-pkg: remove unneeded '-f $srctree/Makefile' in debian/rules (diff)
downloadlinux-5e73758b43c3defba2578df6d3a53e942fa6b41e.tar.gz
linux-5e73758b43c3defba2578df6d3a53e942fa6b41e.zip
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>
Diffstat (limited to 'scripts/package/debian')
-rwxr-xr-xscripts/package/debian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules
index 0ffa806bbd78..7ab31419579f 100755
--- a/scripts/package/debian/rules
+++ b/scripts/package/debian/rules
@@ -1,6 +1,9 @@
#!/usr/bin/make -f
# SPDX-License-Identifier: GPL-2.0-only
+# in case debian/rules is executed directly
+export DEB_RULES_REQUIRES_ROOT := no
+
include debian/rules.vars
ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS))))