Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Portage: Where are the gentoo (kernel) sources?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
linuxfluesterer
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2016
Posts: 130
Location: Germany

PostPosted: Sat Jun 09, 2018 2:21 pm    Post subject: [SOLVED] Portage: Where are the gentoo (kernel) sources? Reply with quote

Hallo guys.
After using Sabayon for a long while, I will start to use pure Gentoo.
So, I visited the (German version of) Gentoo handbook to install Gentoo on a laptop.
Despite some essential problems like locale (cannot change to German keyboard),
I decided to select the profile: default/linux/amd64/17.0/systemd (stable).
I achieved to create a bootable hard disk (no UEFI) and when I wanted to choose a kernel (source) with
Code:
emerge --ask sys-kernel/gentoo-sources

then I only receive one result:
Code:
[ebuild   R    ] sys-kernel/gentoo-sources-4.9.95


Anyway, I installed and compiled these sources with
Code:
make menuconfig
make
make install

I did not use genkernel because I have a single btrfs partition, for root (/) and everything among,
so, no separate partition else. And, after creating and installing grub, I could boot into a terminal.

So my question is: Where are all the other (Gentoo) kernel sources, 4.10 or up?

Thank you in advance.

-Linuxfluesterer


Last edited by linuxfluesterer on Tue Jun 26, 2018 1:13 pm; edited 4 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jun 09, 2018 2:33 pm    Post subject: Reply with quote

Portage always installs the latest unmasked version, so one version is all you ever get because there's always only one latest version. To answer your question, all the other versions are there:
Code:
 ~ # equery list -p '>gentoo-sources-4.9.95'
 * Searching for >gentoo-sources-4.9.95 ...
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.96:4.9.96
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.97:4.9.97
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.98:4.9.98
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.99:4.9.99
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.100:4.9.100
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.101:4.9.101
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.102:4.9.102
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.103:4.9.103
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.105:4.9.105
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.106:4.9.106
[-P-] [ ~] sys-kernel/gentoo-sources-4.9.107:4.9.107
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.34:4.14.34
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.35:4.14.35
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.36:4.14.36
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.37:4.14.37
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.38:4.14.38
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.39:4.14.39
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.40:4.14.40
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.41:4.14.41
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.42:4.14.42
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.43:4.14.43
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.44:4.14.44
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.47:4.14.47
[-P-] [ ~] sys-kernel/gentoo-sources-4.14.48:4.14.48
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.3:4.16.3
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.4:4.16.4
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.5:4.16.5
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.6:4.16.6
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.7:4.16.7
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.8:4.16.8
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.9:4.16.9
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.10:4.16.10
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.11:4.16.11
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.12:4.16.12
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.13:4.16.13
[-P-] [ ~] sys-kernel/gentoo-sources-4.16.14:4.16.14
[-P-] [ ~] sys-kernel/gentoo-sources-4.17.0:4.17.0

As to why all the later versions are currently masked, see this.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
linuxfluesterer
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2016
Posts: 130
Location: Germany

PostPosted: Sat Jun 09, 2018 4:07 pm    Post subject: How to unmasked gentoo-sources? Reply with quote

Ok, John, thank you.
I installed app-portage/gentoolkit and could execute your command equery then.

And now, how to unmask the 'masked' sources and then to install?
I tried to install with:
Code:
emerge --ask sys-kernel/gentoo-sources-4.17.0

and received this:
Code:
!!! 'sys-kernel/gentoo-sources-4.17.0' is not a valid package atom.

I mean, the post with the reasons for the masking was in December of last year.
Now, we have June 2018 and latest version of Kernel is 4.17.
And, in Sabayon, Kernel 4.16 is published in standard repo.

Thanks again.

-Linuxfluesterer
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54244
Location: 56N 3W

PostPosted: Sat Jun 09, 2018 6:11 pm    Post subject: Reply with quote

linuxfluesterer,

If you want to give a version to emerge use a comparison operator too.
Code:
emerge --ask =sys-kernel/gentoo-sources-4.17.0


That will get rid of the
Code:
 !!! 'sys-kernel/gentoo-sources-4.17.0' is not a valid package atom.
error.

As sys-kernel/gentoo-sources-4.17.0 is keyword masked, you will need to keyword it.
Wen you keyword sys-kernel/gentoo-sources (without a version) you will always be offered the latest testing version.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
linuxfluesterer
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2016
Posts: 130
Location: Germany

PostPosted: Fri Jun 15, 2018 3:39 pm    Post subject: Reply with quote

NeddySeagoon wrote:
linuxfluesterer,

If you want to give a version to emerge use a comparison operator too.
Code:
emerge --ask =sys-kernel/gentoo-sources-4.17.0


That will get rid of the
Code:
 !!! 'sys-kernel/gentoo-sources-4.17.0' is not a valid package atom.
error.

As sys-kernel/gentoo-sources-4.17.0 is keyword masked, you will need to keyword it.
Wen you keyword sys-kernel/gentoo-sources (without a version) you will always be offered the latest testing version.


So sad to say. I acheived to get rid of the message "sys-kernel/gentoo-sources-4.17.0' is not a valid package atom." and could install this kernel.
Well, I thought, learned again something. Ok, then I checked for new sources with:
Code:
eshowkw gentoo-sources
and saw, there is a new kernel-source for 4.17.1.

So, I want to (for distcc test) emerge the source codes for gentoo-sources-4.17.1, and, believe it or not, I received the same error:
Code:
sys-kernel/gentoo-sources-4.17.1' is not a valid package atom.


I'm not sure, I did update all necessary files... What else can I have forgotten to do?

-Linuxfluesterer
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jun 15, 2018 4:01 pm    Post subject: Reply with quote

Show the command line which elicited the error for one thing. ;) It's likely you repeated the same mistake.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Jun 15, 2018 4:13 pm    Post subject: Reply with quote

linuxfluesterer wrote:
So, I want to (for distcc test) emerge the source codes for gentoo-sources-4.17.1, and, believe it or not, I received the same error:

Code:
sys-kernel/gentoo-sources-4.17.1' is not a valid package atom.

linuxfluesterer ... a "valid package atom" is one of the following:

Code:
# emerge --ask =sys-kernel/gentoo-sources-4.17.1
# emerge --ask sys-kernel/gentoo-sources:4.17.1
# emerge --ask sys-kernel/gentoo-sources
# emerge --ask gentoo-sources

Note the "=" in the first example ... which is required as (it seems) you're providing 'version'. There are also situations in which 'slots' are valid atoms (as seen in the second example), so 'python:2.7' is valid, but 'dev-lang/python-2.7.14-r1' would not be (as it's missing the '=' anchor).

HTH & best ... khay
Back to top
View user's profile Send private message
linuxfluesterer
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2016
Posts: 130
Location: Germany

PostPosted: Fri Jun 15, 2018 4:35 pm    Post subject: Reply with quote

khayyam wrote:
linuxfluesterer wrote:
So, I want to (for distcc test) emerge the source codes for gentoo-sources-4.17.1, and, believe it or not, I received the same error:

Code:
sys-kernel/gentoo-sources-4.17.1' is not a valid package atom.

linuxfluesterer ... a "valid package atom" is one of the following:

Code:
# emerge --ask =sys-kernel/gentoo-sources-4.17.1
# emerge --ask sys-kernel/gentoo-sources:4.17.1
# emerge --ask sys-kernel/gentoo-sources
# emerge --ask gentoo-sources

Note the "=" in the first example ... which is required as (it seems) you're providing 'version'. There are also situations in which 'slots' are valid atoms (as seen in the second example), so 'python:2.7' is valid, but 'dev-lang/python-2.7.14-r1' would not be (as it's missing the '=' anchor).

HTH & best ... khay


Oh, what a shame, my mistake. I wrote a slash in the package's name -> sys/kernel.... instead of a minus '-'. Now I corrected to:
Code:
 emerge --ask sys-kernel/gentoo-sources:4.17.1


...and, what wonder, now the sources appear and can be merged. I'm really sorry, and thank you for patience and good advice.

-Linuxfluesterer
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Fri Jun 15, 2018 4:40 pm    Post subject: Reply with quote

khayyam wrote:
linuxfluesterer ... a "valid package atom" is one of the following:

Code:
# emerge --ask =sys-kernel/gentoo-sources-4.17.1
# emerge --ask sys-kernel/gentoo-sources:4.17.1
# emerge --ask sys-kernel/gentoo-sources
# emerge --ask gentoo-sources

Also
Code:
# emerge --ask =gentoo-sources-4.17.1

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 15, 2018 4:42 pm    Post subject: Reply with quote

You better keyword gentoo-sources if you want the latest. When you do not use --oneshot the kernel version will go into world file, you may not want this.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Fri Jun 15, 2018 6:27 pm    Post subject: Reply with quote

John R. Graham wrote:
Portage always installs the latest unmasked version, so one version is all you ever get because there's always only one latest version. To answer your question, all the other versions are there:[code] ~ # equery list -p '>gentoo-sources-4.9.95'
* Searching for >gentoo-sources-4.9.95 ...

As to why all the later versions are currently masked, see this.

- John


This discussion is ancient. There is 4.14 stabilization bug opened in early March when that gcc issue was solved. For the last month or so there is just simply no action, while all issues seems have been resolved.

https://bugs.gentoo.org/649198
Back to top
View user's profile Send private message
linuxfluesterer
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2016
Posts: 130
Location: Germany

PostPosted: Fri Jun 15, 2018 9:34 pm    Post subject: Reply with quote

Jaglover wrote:
You better keyword gentoo-sources if you want the latest. When you do not use --oneshot the kernel version will go into world file, you may not want this.


I'm not sure where to tell --oneshot.
But I understand, that the search will be extended into the world file, another repository, I assume.

-Linuxfluesterer
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sun Jun 17, 2018 4:35 am    Post subject: Reply with quote

linuxfluesterer wrote:
Jaglover wrote:
You better keyword gentoo-sources if you want the latest. When you do not use --oneshot the kernel version will go into world file, you may not want this.


I'm not sure where to tell --oneshot.
But I understand, that the search will be extended into the world file, another repository, I assume.

-Linuxfluesterer


Just on the command line

emerge --oneshot gentoo-sources-....
Back to top
View user's profile Send private message
linuxfluesterer
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2016
Posts: 130
Location: Germany

PostPosted: Sun Jun 17, 2018 10:25 am    Post subject: Reply with quote

dmpogo wrote:

Just on the command line

emerge --oneshot gentoo-sources-....

Ok, thanks again.

-Linuxfluesterer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum