<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/scripts/setlocalversion, branch v4.4.166</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.166</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.166'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2014-01-03T13:48:42Z</updated>
<entry>
<title>Fix detectition of kernel git repository in setlocalversion script [take #2]</title>
<updated>2014-01-03T13:48:42Z</updated>
<author>
<name>Franck Bui-Huu</name>
<email>fbuihuu@gmail.com</email>
</author>
<published>2013-12-02T15:34:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7593e0902bc41392315316f1b5f4ba15feead842'/>
<id>urn:sha1:7593e0902bc41392315316f1b5f4ba15feead842</id>
<content type='text'>
setlocalversion script was testing the presence of .git directory in
order to find out if git is used as SCM to track the current kernel
project. However in some cases, .git is not a directory but can be a
file: when the kernel is a git submodule part of a git super project for
example.

This patch just fixes this by using 'git rev-parse --show-cdup' to check
that the current directory is the kernel git topdir. This has the
advantage to not test and rely on git internal infrastructure directly.

Signed-off-by: Franck Bui-Huu &lt;fbuihuu@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/setlocalversion on write-protected source tree</title>
<updated>2013-06-23T22:08:01Z</updated>
<author>
<name>Christian Kujau</name>
<email>lists@nerdbynature.de</email>
</author>
<published>2013-06-15T01:04:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cdf2bc632ebc9ef512345fe8e6015edfd367e256'/>
<id>urn:sha1:cdf2bc632ebc9ef512345fe8e6015edfd367e256</id>
<content type='text'>
I just stumbled across another[0] issue when scripts/setlocalversion
operates on a write-protected source tree. Back then[0] the source tree
was on an read-only NFS share, so "test -w" was introduced before "git
update-index" was run.

This time, the source tree is on read/write NFS share, but the permissions
are world-readable and only a specific user (or root) can write.
Thus, "test -w ." returns "0" and then runs "git update-index",
producing the following message (on a dirty tree):

  fatal: Unable to create '/usr/local/src/linux-git/.git/index.lock': Permission denied

While it says "fatal", compilation continues just fine.

However, I don't think a kernel compilation should alter the source
tree (or the .git directory) in any way and I don't see how removing
"git update-index" could do any harm. The Mercurial and SVN routines in
scripts/setlocalversion don't have any tree-modifying commands, AFAICS.
So, maybe the patch below would be acceptable.

[0] https://patchwork.kernel.org/patch/29718/

Signed-off-by: Christian Kujau &lt;lists@nerdbynature.de&gt;
Cc: Nico Schottelius &lt;nico-linuxsetlocalversion@schottelius.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>kbuild: Unset language specific variables in setlocalversion script</title>
<updated>2013-02-22T13:18:30Z</updated>
<author>
<name>Christophe Leroy</name>
<email>christophe.leroy@c-s.fr</email>
</author>
<published>2013-02-22T08:59:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f893bfb61531548eeaff432e8d10758e86e788a7'/>
<id>urn:sha1:f893bfb61531548eeaff432e8d10758e86e788a7</id>
<content type='text'>
This patch allows the use of setlocalversion script regardless of the language
parameters. Otherwise, the `svn info 2&gt;/dev/null | grep '^Last Changed Rev'`
returns nothing because for instance, in French the text 'Last Changed Rev'
is replaced by 'Révision de la dernière modification'

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>setlocalversion: Use "grep -q" instead of piping output to "read dummy"</title>
<updated>2012-03-26T20:54:00Z</updated>
<author>
<name>Roland Dreier</name>
<email>roland@purestorage.com</email>
</author>
<published>2012-03-23T16:42:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7f3bd6c9cb8e9fa2b57bfa860cd3e734a28f48ed'/>
<id>urn:sha1:7f3bd6c9cb8e9fa2b57bfa860cd3e734a28f48ed</id>
<content type='text'>
In some circumstances (eg when running a build in an emacs shell
buffer), I get a spew of messages like

    grep: writing output: Broken pipe

from setlocalversion, because the "read" subshell apparently exits as
soon as it reads one line and gives EPIPE to grep.  It's not clear to
me why this way of writing the check was used instead of just using
grep -q to suppress output, but unless there is some deep reason I
don't know, this way looks cleaner to me anyway, and gets rid of the
ugly message spew.

(I double checked at http://pubs.opengroup.org/onlinepubs/009604499/utilities/grep.html
and "grep -q" is specified in POSIX / SuS, so hopefully even people
cross-compiling the kernel on some bizarre host OS can't complain
about this change)

Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>setlocalversion: update mercurial tag parsing</title>
<updated>2011-01-14T23:40:44Z</updated>
<author>
<name>Mike Crowe</name>
<email>mcrowe@zipitwireless.com</email>
</author>
<published>2011-01-12T05:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=38b3439d84f4a310bd29e3dbc21dffe9119ef157'/>
<id>urn:sha1:38b3439d84f4a310bd29e3dbc21dffe9119ef157</id>
<content type='text'>
The tag output of hg doesn't quite match what setlocalversion currently
expects, so update it to handle the latest format.

Signed-off-by: Mike Crowe &lt;mcrowe@zipitwireless.com&gt;
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6</title>
<updated>2010-10-28T22:13:55Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2010-10-28T22:13:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c9e2a72ff1acfdffdecb338b3d997f90c507e665'/>
<id>urn:sha1:c9e2a72ff1acfdffdecb338b3d997f90c507e665</id>
<content type='text'>
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
  initramfs: Fix build break on symbol-prefixed archs
  initramfs: fix initramfs size calculation
  initramfs: generalize initramfs_data.xxx.S variants
  scripts/kallsyms: Enable error messages while hush up unnecessary warnings
  scripts/setlocalversion: update comment
  kbuild: Use a single clean rule for kernel and external modules
  kbuild: Do not run make clean in $(srctree)
  scripts/mod/modpost.c: fix commentary accordingly to last changes
  kbuild: Really don't clean bounds.h and asm-offsets.h
</content>
</entry>
<entry>
<title>scripts/setlocalversion: update comment</title>
<updated>2010-09-06T11:26:30Z</updated>
<author>
<name>Michael Prokop</name>
<email>mika@grml.org</email>
</author>
<published>2010-09-06T09:57:19Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c3e2f196f9862cd75cb7f495a3cd1f1bbb82bb40'/>
<id>urn:sha1:c3e2f196f9862cd75cb7f495a3cd1f1bbb82bb40</id>
<content type='text'>
A tagged repository state isn't enough, git describe only
looks at signed or annotated tags (git tag -a/-s). This
documentation update makes sure the comment matches the
current behaviour.

Signed-off-by: Michael Prokop &lt;mika@grml.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>setlocalversion: Ignote SCMs above the linux source tree</title>
<updated>2010-08-21T13:14:59Z</updated>
<author>
<name>Michal Marek</name>
<email>mmarek@suse.cz</email>
</author>
<published>2010-08-16T15:09:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=8558f59edf935cf5ee5ffc29a9e9458fd9a71be1'/>
<id>urn:sha1:8558f59edf935cf5ee5ffc29a9e9458fd9a71be1</id>
<content type='text'>
Dan McGee &lt;dpmcgee@gmail.com&gt; writes:
&gt; Note that when in git, you get the appended "+" sign. If
&gt; LOCALVERSION_AUTO is set, you will get something like
&gt; "eee-gb01b08c-dirty" (whereas the copy of the tree in /tmp still
&gt; returns "eee"). It doesn't matter whether the working tree is dirty or
&gt; clean.
&gt;
&gt; Is there a way to disable this? I'm building from a clean tarball that
&gt; just happens to be unpacked inside a git repository. One would think
&gt; setting LOCALVERSION_AUTO to false would do it, but no such luck...

Fix this by checking if the kernel source tree is the root of the git or
hg repository. No fix for svn: If the kernel source is not tracked in
the svn repository, it works as expected, otherwise determining the
'repository root' is not really a defined task.

Reported-and-tested-by: Dan McGee &lt;dpmcgee@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>setlocalversion: fix version for untaged nontip mercurial revs</title>
<updated>2010-08-12T22:52:14Z</updated>
<author>
<name>Milton Miller</name>
<email>miltonm@bga.com</email>
</author>
<published>2010-07-22T15:19:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=55c640c3abff301eed5ee11c34a40bfe043c8c2d'/>
<id>urn:sha1:55c640c3abff301eed5ee11c34a40bfe043c8c2d</id>
<content type='text'>
The manpage for cut says it will return all lines without the delimiter
unless -s is specified.

When I backed up my mecurial tree to generate modules, I found that the
scm part of localversion was turning up blank.

Signed-off-by: Milton Miller &lt;miltonm@bga.com&gt;
Cc: Michal Marek &lt;mmarek@suse.cz&gt;
Cc: "Michał Górny" &lt;gentoo@mgorny.alt.pl&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>kbuild: Fix make rpm</title>
<updated>2010-07-21T14:06:05Z</updated>
<author>
<name>Michal Marek</name>
<email>mmarek@suse.cz</email>
</author>
<published>2010-07-15T08:36:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b003afe32f608b8d9f9a898b36514dfbf374fd3a'/>
<id>urn:sha1:b003afe32f608b8d9f9a898b36514dfbf374fd3a</id>
<content type='text'>
make rpm was broken by commit 0915512:
make clean
set -e; cd ..; ln -sf /usr/src/iwlwifi-2.6 kernel-2.6.35rc4wl
/bin/sh /usr/src/iwlwifi-2.6/scripts/setlocalversion --scm-only &gt;
/usr/src/iwlwifi-2.6/.scmversion
cat: .scmversion: input file is output file
make[1]: *** [rpm] Error 1

Reported-and-tested-by: "Zheng, Jiajia" &lt;jiajia.zheng@intel.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
</feed>
