From: Bert Karwatzki <spasswolf@web.de>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Bert Karwatzki <spasswolf@web.de>, linux-kernel@vger.kernel.org
Subject: [PATCH] kbuild: deb-pkg: fix building with bindeb-pkg
Date: Sun, 14 Jul 2024 12:34:37 +0200 [thread overview]
Message-ID: <20240714103438.4146-1-spasswolf@web.de> (raw)
In-Reply-To: 20240709181422.156829-1-spasswolf@web.de
Since the introduction of "set -u" into scripts/package/mkdebian running
the mkdebian scripts fails when it is called with no arguments (which is
the case when building the kernel with 'make bindeb-pkg'). This patch
introduces an additional check so mkdebian can be run without arguments.
Fixes: 8ef052389f7f ("kbuild: package: add -e and -u options to some shell scripts")
Signed-off-by: Bert Karwatzki <spasswolf@web.de>
---
scripts/package/mkdebian | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 196b14e8ad47..5eb506573a4d 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -135,7 +135,7 @@ else
fi
maintainer="${name} <${email}>"
-if [ "$1" = --need-source ]; then
+if [ $# -eq 1 ] [ "$1" = --need-source ]; then
gen_source
fi
--
2.45.2
next reply other threads:[~2024-07-14 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-14 10:34 Bert Karwatzki [this message]
2024-07-14 10:50 ` [PATCH] kbuild: deb-pkg: fix building with bindeb-pkg Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240714103438.4146-1-spasswolf@web.de \
--to=spasswolf@web.de \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox