Re: [uml-devel] RFC: Shouldn't "./linux --version" always print the the git commit id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 25, 2013 at 11:19 PM, Toralf Förster <toralf.foerster@xxxxxx> wrote:
> On 10/25/2013 10:18 PM, Geert Uytterhoeven wrote:
>> On Fri, Oct 25, 2013 at 10:11 PM, Toralf Förster <toralf.foerster@xxxxxx> wrote:
>>> Just realized today the fact, that v3.11 reports just the tag and not
>>> "tag-g<commit id>"

Actually it's "<tag>-<number>-<commit id>", with <number> indicating the
number of commits on top of the tag.

>>
>> You don't have CONFIG_LOCALVERSION_AUTO=y in your .config?
>>
>> Gr{oetje,eeting}s,
>>
> I do :
> tfoerste@n22 ~/devel/linux $ ./linux --showconfig | grep AUTO
> CONFIG_LOCALVERSION_AUTO=y
>
> pls look here :
>
>
> $ ./linux --version
> 3.11.0-00001-g65984ff-dirty
>
> versus
>
> $ git checkout HEAD~1
> Previous HEAD position was 65984ff... um: hostfs: Fix writeback
> HEAD is now at 6e46645... Linux 3.11
>
> $ make -j4 ARCH=um CC="ccache gcc"
> ...
>
> $ ./linux --version
> 3.11.0

If there are no additional commits on top of the tag, no number and commit
ID are printed. I guess the rationale is that tags are global, hence present
in all clones, so there's no need to tell what commit ID the tag corresponds
to.

> which correlates to
>
> $ git describe
> v3.11
>
> $ git describe --long
> v3.11-0-g6e46645

This is not UML-specific. If you want to change this, you have to involve
the kbuild people (CC added).

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux