public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathis Ahrens <Mathis.Ahrens@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: Sam Ravnborg <sam@ravnborg.org>
Subject: [2.6.16-rc6] CONFIG_LOCALVERSION_AUTO
Date: Wed, 15 Mar 2006 05:47:51 +0100	[thread overview]
Message-ID: <44179C77.1010902@gmx.de> (raw)


Hi all,

i just discovered this cute little feature, but had three
minor issues while experimenting with it on 2.6.16-rc6:

1.
Semantics of LOCALVERSION are confusing and probably buggy.
The Makefile states:

# Take the contents of any files called localversion* and the config
# variable CONFIG_LOCALVERSION and append them to KERNELRELEASE.
# LOCALVERSION from the command line override all of this

whereas my simplified view of current code is:

version = major + minor + patch + extra
release = version + localver-full
localver-full = localver + localver-auto
localver = <concat all localversions*> + $CONFIG_LOCALVERSION
localver-auto = $LOCALVERSION + <some -gxxxxxx>

LOCALVERSION does not seem to /override/ anything if specified on the
command line, but rather (with CONFIG_LOCALVERSION_AUTO=y) gets
/inserted/.

Also, with CONFIG_LOCALVERSION_AUTO=n, specifying LOCALVERSION
on the command line currently does nothing at all. This is a regression
from 2.6.15, I suppose.

2.
"make kernelrelease" does not imply "make .kernelrelease", it only
does cat the file .kernelrelease (or shows an error if it's not there).

This leads to the following IMHO slightly irritating behaviour
$ echo "LV1" > localversion
$ make kernelrelease
2.6.16-rc6LV1
$ echo "LV2" > localversion
$ make kernelrelease
2.6.16-rc6LV1

Is there a reason for this?

3.
The help of CONFIG_LOCALVERSION_AUTO reads:

Note: This requires Perl, and a git repository, but not necessarily
the git or cogito tools to be installed.

Looking at scripts/setlocalversion, this does not seem to be correct
anymore.



Cheers,
Mathis






             reply	other threads:[~2006-03-15  4:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15  4:47 Mathis Ahrens [this message]
2006-03-16 20:20 ` [PATCH] Makefile: localversion fix (was: [2.6.16-rc6] CONFIG_LOCALVERSION_AUTO) Mathis Ahrens
2006-03-16 20:34 ` [2.6.16-rc6] CONFIG_LOCALVERSION_AUTO Sam Ravnborg
2006-03-16 23:49   ` Mathis Ahrens

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=44179C77.1010902@gmx.de \
    --to=mathis.ahrens@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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