<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/setlocalversion, branch v3.2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts/setlocalversion?h=v3.2</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts/setlocalversion?h=v3.2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-01-14T23:40:44Z</updated>
<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.amat.us/linux/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.amat.us/linux/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.amat.us/linux/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.amat.us/linux/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.amat.us/linux/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.amat.us/linux/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>
<entry>
<title>kbuild: Make the setlocalversion script POSIX-compliant</title>
<updated>2010-07-20T13:43:27Z</updated>
<author>
<name>Michał Górny</name>
<email>gentoo@mgorny.alt.pl</email>
</author>
<published>2010-07-18T08:26:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6dc0c2f3384fe543a805922c6a314c7ad25a92fc'/>
<id>urn:sha1:6dc0c2f3384fe543a805922c6a314c7ad25a92fc</id>
<content type='text'>
The 'source' builtin is a bash alias to the '.' (dot) builtin. While the
former is supported only by bash, the latter is specified in POSIX and
works fine with all POSIX-compliant shells I am aware of.

The '$_' special parameter is specific to bash. It is partially
supported in dash too but it always evaluates to the current script path
(which causes the script to enter a loop recursively re-executing
itself). This is why I have replaced the two occurences of '$_' with the
explicit parameter.

The 'local' builtin is another example of bash-specific code. Although
it is supported by all POSIX-compliant shells I am aware of, it is not
part of POSIX specification and thus the code should not rely on it
assigning a specific value to the local variable. Moreover, the 'posh'
shell has a limited version of 'local' builtin not supporting direct
variable assignments. Thus, I have broken one of the 'local'
declarations down into a (non-POSIX) 'local' declaration and a plain
(POSIX-compliant) variable assignment.

Signed-off-by: Michał Górny &lt;gentoo@mgorny.alt.pl&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>kbuild: Clean up and speed up the localversion logic</title>
<updated>2010-06-18T12:23:21Z</updated>
<author>
<name>Michal Marek</name>
<email>mmarek@suse.cz</email>
</author>
<published>2010-06-17T13:14:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=09155120cf0ffe6f0c8aba3aa625831405b65996'/>
<id>urn:sha1:09155120cf0ffe6f0c8aba3aa625831405b65996</id>
<content type='text'>
Now that we run scripts/setlocalversion during every build, it makes
sense to move all the localversion logic there. This cleans up the
toplevel Makefile and also makes sure that the script is called only
once in 'make prepare' (previously, it would be called every time due to
a variable expansion in an ifneq statement). No user-visible change is
intended, unless one runs the setlocalversion script directly.

Reported-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Cc: David Rientjes &lt;rientjes@google.com&gt;
Cc: Greg Thelen &lt;gthelen@google.com&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: fix delay in setlocalversion on readonly source</title>
<updated>2009-06-14T20:26:00Z</updated>
<author>
<name>Nico Schottelius</name>
<email>nico-linuxsetlocalversion@schottelius.org</email>
</author>
<published>2009-06-12T07:59:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a2bb90a08cb3b64dd815d762ffde2312582a6ec9'/>
<id>urn:sha1:a2bb90a08cb3b64dd815d762ffde2312582a6ec9</id>
<content type='text'>
Do not update index on read only media.
Idea published by Christian Kujau &lt;lists@nerdbynature.de&gt;.

Cc: Nico Schottelius &lt;nico@ikn.schottelius.org&gt;
Cc: Christian Kujau &lt;lists@nerdbynature.de&gt;
</content>
</entry>
<entry>
<title>Fix scripts/setlocalversion with tagged git commit</title>
<updated>2009-05-19T21:11:34Z</updated>
<author>
<name>Nico Schottelius</name>
<email>nico-linux-20090330@schottelius.org</email>
</author>
<published>2009-05-16T12:00:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=33252572e727ccdcc54efdb67157e7ab3d6942db'/>
<id>urn:sha1:33252572e727ccdcc54efdb67157e7ab3d6942db</id>
<content type='text'>
Produce correct output for
- tagged commit (v2.6.30-rc6)
- past tagged commit (v2.6.30-rc5-299-g7c7327d)
- no tag

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
