From: Rafael Aquini <aquini@redhat.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Nathan Chancellor <nathan@kernel.org>,
Nicolas Schier <nicolas@fjasle.eu>
Subject: Re: [PATCH v3 2/2] kbuild: rpm-pkg: introduce a simple changelog section for kernel.spec
Date: Mon, 15 Jul 2024 17:21:10 -0400 [thread overview]
Message-ID: <ZpWSxtUzBRkqB6CQ@optiplex-fbsd> (raw)
In-Reply-To: <CAK7LNARATMy4hJ=Jp0fLd=JyD_SRC5ok8CFmLwHPv7kam4Eq1g@mail.gmail.com>
On Tue, Jul 16, 2024 at 01:32:56AM +0900, Masahiro Yamada wrote:
> On Sun, Jul 7, 2024 at 1:45 AM Rafael Aquini <aquini@redhat.com> wrote:
> >
> > Fix the following rpmbuild warning:
> >
> > $ make srcrpm-pkg
> > ...
> > RPM build warnings:
> > source_date_epoch_from_changelog set but %changelog is missing
> >
> > Signed-off-by: Rafael Aquini <aquini@redhat.com>
> > ---
> > scripts/package/mkspec | 23 +++++++++++++++++++++++
> > 1 file changed, 23 insertions(+)
> >
> > diff --git a/scripts/package/mkspec b/scripts/package/mkspec
> > index ce201bfa8377..e45fdb12fbc7 100755
> > --- a/scripts/package/mkspec
> > +++ b/scripts/package/mkspec
> > @@ -28,3 +28,26 @@ cat<<EOF
> > EOF
> >
> > cat "${srctree}/scripts/package/kernel.spec"
> > +
> > +# collect the user's name and email address for the changelog entry
> > +if [ "$(command -v git)" ]; then
> > + name=$(git config user.name) || true
> > + email=$(git config user.email) || true
> > +fi
> > +
> > +if [ ! "${name:+set}" ]; then
> > + name=${KBUILD_BUILD_USER:-$(id -nu)}
> > +fi
> > +
> > +if [ ! "${email:+set}" ]; then
> > + buildhost=${KBUILD_BUILD_HOST:-$(hostname -f 2>/dev/null || hostname)}
> > + builduser=${KBUILD_BUILD_USER:-$(id -nu)}
> > + email="${builduser}@${buildhost}"
> > +fi
> > +
> > +cat << EOF
> > +
> > +%changelog
> > +* $(LC_ALL=C; date +'%a %b %d %Y') ${name} <${email}> - ${KERNELRELEASE}
>
>
> I am not sure whether the version is required or not.
>
> In the following guide, not all entries have the version.
>
> https://jfearn.fedorapeople.org/en-US/RPM/4/html/RPM_Guide/ch09s06.html
>
>
> If you want to add the version, perhaps is it better to
> follow the fedora convention?
>
>
> The spec file of Fedora looks as follows.
> The version is enclosed in the square brackets.
>
> %changelog
> * Wed Dec 13 2023 Augusto Caringi <acaringi@redhat.com> [6.6.7-0]
> - Add rhbz#2253632 rhbz#2253633 to BugsFixed (Justin M. Forbes)
> - Turn on DRM_ACCEL drivers for Fedora (Justin M. Forbes)
> - Linux v6.6.7
>
>
>
>
> Or, is this not important because there is no strict format?
Darn, I've been using the "- release" pattern for my RPMs for
quite a long time, as circa 2010 that was the suggestion.
I guess I just got used to it and never really noticed
the change along the way.
There's not a strict format, though, and it's just nice
to have the version showing in there.
I have no strong feelings about the format we should be
going to go with, so I'll leave it up to you.
What is the format you'd prefer for the changelog entry?
Leave it as it is in this patch, or adopt the Fedora standard?
I'll wait for your input before refreshing this patch (or not)
Cheers,
-- Rafael
next prev parent reply other threads:[~2024-07-15 21:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-10 16:38 [PATCH] kbuild: rpm-pkg: fix rpmbuild warnings for kernel.spec Rafael Aquini
2024-06-11 15:00 ` Masahiro Yamada
2024-06-11 16:03 ` Rafael Aquini
2024-06-11 16:33 ` Masahiro Yamada
2024-06-11 21:11 ` [PATCH 0/2] " Rafael Aquini
2024-06-11 21:11 ` [PATCH 1/2] kbuild: rpm-pkg: make sure to have versioned 'Obsoletes' " Rafael Aquini
2024-06-13 19:01 ` Nathan Chancellor
2024-07-04 13:58 ` Masahiro Yamada
2024-06-11 21:11 ` [PATCH 2/2] kbuild: rpm-pkg: introduce a simple changelog section " Rafael Aquini
2024-07-04 15:28 ` Rafael Aquini
2024-07-04 15:52 ` Masahiro Yamada
2024-07-04 18:16 ` Rafael Aquini
2024-07-04 19:36 ` [PATCH v2 " Rafael Aquini
2024-07-06 3:40 ` Masahiro Yamada
2024-07-06 16:44 ` [PATCH v3 " Rafael Aquini
2024-07-15 16:32 ` Masahiro Yamada
2024-07-15 21:21 ` Rafael Aquini [this message]
2024-07-16 8:40 ` Masahiro Yamada
2024-07-16 12:25 ` [PATCH v4 " Rafael Aquini
2024-07-17 17:10 ` Masahiro Yamada
2024-07-17 20:49 ` Rafael Aquini
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=ZpWSxtUzBRkqB6CQ@optiplex-fbsd \
--to=aquini@redhat.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