From: Michal Marek <mmarek@suse.cz>
To: Afzal Mohammed <afzal.mohd.ma@gmail.com>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Christophe Leroy <christophe.leroy@c-s.fr>,
Christian Kujau <lists@nerdbynature.de>
Subject: Re: [PATCH RFC] kbuild: prevent git private tag altering kernelrelease
Date: Wed, 23 Oct 2013 15:21:00 +0200 [thread overview]
Message-ID: <5267CD3C.2020004@suse.cz> (raw)
In-Reply-To: <1379109004-2411-1-git-send-email-afzal.mohd.ma@gmail.com>
Hi Afzal,
sorry for the late feedback.
On 13.9.2013 23:49, Afzal Mohammed wrote:
> If a private tag is created after the most recent kernelversion tag, a
> commit after this private tag would feed kernelrelease with commits
> after private tag and kernelversion tag. This may confuse user relying
> on kernelrelease (mostly a developer while debugging), mainly if HEAD
> has a private tag and otherwise w.r.t git distance from kernelversion
> tag.
The solution is simple: Do not use private annotated tags. Or rather, if
you are creating an annotated tag, modify EXTRAVERSION accordingly. Any
automagic based on the tag name is going to fail in some way.
> Instead if such a tag is created at say HEAD~, kernelrelease would be
> v3.11.0-rc1-00001-gdeadbeef, misleading the observer w.r.t git distance
> from nearest kernelversion tag.
>
> Here an attempt is made to prevent private tag from altering
> kernelrelease.
>
> Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
> ---
>
> Hi,
>
> This seems to work on different scenarios that could be readily thought
> of. I am shaky about this change, but acheives the purpose.
With your change, the script considers e.g. the next-YYYYMMDD tags
"private."
> define filechk_kernel.release
> - echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
> + echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree) $(KERNELVERSION))" > $@
> endef
The >$@ should not be there.
Michal
next prev parent reply other threads:[~2013-10-23 13:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 21:49 [PATCH RFC] kbuild: prevent git private tag altering kernelrelease Afzal Mohammed
2013-10-23 13:21 ` Michal Marek [this message]
2013-10-27 19:39 ` Afzal Mohammed
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=5267CD3C.2020004@suse.cz \
--to=mmarek@suse.cz \
--cc=afzal.mohd.ma@gmail.com \
--cc=christophe.leroy@c-s.fr \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lists@nerdbynature.de \
/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