From: Juergen Gross <jgross@suse.com>
To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Cc: Juergen Gross <jgross@suse.com>,
Masahiro Yamada <masahiroy@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Nicolas Schier <nicolas@fjasle.eu>
Subject: [PATCH] kbuild: Fix broken "make binrpm-pkg"
Date: Wed, 24 Jul 2024 14:59:04 +0200 [thread overview]
Message-ID: <20240724125904.15601-1-jgross@suse.com> (raw)
Due to a typo "make binrpm-pkg" isn't working when using e.g. german
locale. rpmbuild will tell me:
error: bad date in %changelog: Mi Jul 24 2024 Juergen Gross <jgross@suse.com>
Reason is that setting "LC_ALL=C" must not be followed by a semicolon
in order to affect the following "date" command.
Fixes: 301c10908e42 ("kbuild: rpm-pkg: introduce a simple changelog section for kernel.spec")
Signed-off-by: Juergen Gross <jgross@suse.com>
---
scripts/package/mkspec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index ead54d67a024..4dc1466dfc81 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -50,6 +50,6 @@ fi
cat << EOF
%changelog
-* $(LC_ALL=C; date +'%a %b %d %Y') ${name} <${email}>
+* $(LC_ALL=C date +'%a %b %d %Y') ${name} <${email}>
- Custom built Linux kernel.
EOF
--
2.43.0
next reply other threads:[~2024-07-24 12:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 12:59 Juergen Gross [this message]
2024-07-24 13:03 ` [PATCH] kbuild: Fix broken "make binrpm-pkg" Sedat Dilek
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=20240724125904.15601-1-jgross@suse.com \
--to=jgross@suse.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=nicolas@fjasle.eu \
/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