2015-05-02 11:01:40

by Albino B Neto

[permalink] [raw]
Subject: Repo of git linux-stable

Hi

I compiled the kernel of git linux-stable[1], but was the version 4.1-rc1. Why ?

Should be the stable version 4.0.1 or not ? Help.

1 - https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/

Thanks,

Albino


2015-05-02 11:05:21

by Richard Weinberger

[permalink] [raw]
Subject: Re: Repo of git linux-stable

On Sat, May 2, 2015 at 1:01 PM, Albino Biasutti Neto <[email protected]> wrote:
> Hi
>
> I compiled the kernel of git linux-stable[1], but was the version 4.1-rc1. Why ?
>
> Should be the stable version 4.0.1 or not ? Help.
>
> 1 - https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/

Checkout v4.0.1. :)

--
Thanks,
//richard

2015-05-02 11:33:39

by Albino B Neto

[permalink] [raw]
Subject: Re: Repo of git linux-stable

2015-05-02 8:05 GMT-03:00 Richard Weinberger <[email protected]>:
> Checkout v4.0.1. :)

I downloaded now and compile, after was linux rc-1. I don't understand :-(


Albino

2015-05-02 13:25:05

by Theodore Ts'o

[permalink] [raw]
Subject: Re: Repo of git linux-stable

On Sat, May 02, 2015 at 08:33:15AM -0300, Albino Biasutti Neto wrote:
> 2015-05-02 8:05 GMT-03:00 Richard Weinberger <[email protected]>:
> > Checkout v4.0.1. :)
>
> I downloaded now and compile, after was linux rc-1. I don't understand :-(

The linux stable tree contains many branches. You need to checkout the
one that you care about; that is, do you want the 4.0.y stable tree?
Or the 3.10.y stable tree? Or the 3.14.y stable tree? etc.

It sounds like you did a git clone of the stable tree, and by default
that landed you on the master branch. The master branch at the moment
happens to be pointing at 4.1rc1. I'm not sure why that's the case;
it probably has more to do with Greg K-H's internal workflows, but the
fact is the master branch is not what you want.

You need to explicitly checkout the stable branch that has what you
want. You can either checkout an explicit version, i.e., "git
checkout v4.0.1", or you can checkout the latest 4.0 stable release,
via "git checkout linux-4.0.y".

Or you can set up a local branch, via something like "git branch
my-4.0 linux-4.0.y; git checkout my-4.0". And then in the future a
"git pull" command will update your branch to have the latest 4.0.y
stable release. All of this is basic git commands; I suggest you find
a git tutorial and go through it.

Best regards,

- Ted

2015-05-02 17:01:05

by Albino B Neto

[permalink] [raw]
Subject: Re: Repo of git linux-stable

2015-05-02 10:25 GMT-03:00 Theodore Ts'o <[email protected]>:
> The linux stable tree contains many branches. You need to checkout the
> one that you care about; that is, do you want the 4.0.y stable tree?
> Or the 3.10.y stable tree? Or the 3.14.y stable tree? etc.

Now last version 4.0.1 tree.

> It sounds like you did a git clone of the stable tree, and by default
> that landed you on the master branch. The master branch at the moment
> happens to be pointing at 4.1rc1. I'm not sure why that's the case;
> it probably has more to do with Greg K-H's internal workflows, but the
> fact is the master branch is not what you want.

> You need to explicitly checkout the stable branch that has what you
> want. You can either checkout an explicit version, i.e., "git
> checkout v4.0.1", or you can checkout the latest 4.0 stable release,
> via "git checkout linux-4.0.y".

I am followed the tree in other directory. The problems was branch sure.

> Or you can set up a local branch, via something like "git branch
> my-4.0 linux-4.0.y; git checkout my-4.0". And then in the future a
> "git pull" command will update your branch to have the latest 4.0.y
> stable release. All of this is basic git commands; I suggest you find
> a git tutorial and go through it.

Yeah!

Thanks,

Albino