Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE-flags for git-sources - Put them in make.conf?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Mon May 22, 2017 7:33 pm    Post subject: USE-flags for git-sources - Put them in make.conf? Reply with quote

USE-flags for git-sources, it requires
Code:
USE="-build -symlink"


Should i enable these in /etc/portage/make.conf? Or in package.use/sys-kernel/git-sources-4.12_rc1

Thinking it's the kernel if it differs some how according to USE-flag settings?

The whole output

Code:
gentoo@gentoo ~ $ sudo emerge --ask --update --deep --with-bdeps=y --newuse sys-kernel/git-sources
Password:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] sys-kernel/git-sources-4.12_rc1  USE="-build -symlink"

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by sys-kernel/git-sources (argument)
=sys-kernel/git-sources-4.12_rc1 ~amd64

Would you like to add these changes to your config files? [Yes/No] y

Autounmask changes successfully written.

 * IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Mon May 22, 2017 7:47 pm    Post subject: Reply with quote

The regular gentoo-sources and vanilla-sources, really all the kernel sources have those same USE flags. So the question you have to answer is, "Do I want those USE flags set differently for different kernel sources?" If not, then put 'em in make.conf. If so, though, then there are those other places. In general:
  • make.conf is for USE flags (and other things) that you want to apply to everything.
  • package.use is for USE flags that you want to be different on a package-by-package basis.
One more point. USE flag settings made in package.use override settings in make.conf.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Mon May 22, 2017 8:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Mon May 22, 2017 8:17 pm    Post subject: Reply with quote

Thank you, i didn't mind the useflags. I just merged the conf-files using etc-update.

But anyhow, i have selected eselect kernel set 2 (the new git-sources-4.12_rc1) and
cd /usr/src/linux
make menuconfig, but it states
Code:
Linux/x86 4.9.16-gentoo Kernel Configuration


Why would i like to conf my old kernel?

I thought i was going to conf the new one, eg. "Linux/x86 4.12_rc1-gentoo Kernel Configuration"

Am i missing some fundamental stuff here? Or am i just misunderstanding the concept.

The step i took was:

Code:

emerge --ask --update --deep --with-bdeps=y --newuse sys-kernel/git-sources

cd /usr/src/linux

cp .config ~/kernel-config-`uname -r`

eselect kernel set 2

cp /boot/config-4.9.16-gentoo /usr/src/linux/.config

make menuconfig


And there i read that i'm confing the old kernel 4.9.16

I think when i get a grip on this it will be a lot easier next time
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Mon May 22, 2017 8:23 pm    Post subject: Reply with quote

One fundamental thing, yes. When you copy a config file like that, you need to convert it to the new kernel source. This is easy, though, as there's a make target for it. Just run
Code:
make oldconfig
and answer all the questions. The default (pressing <Enter>) is usually just fine, although you may want to do a bit of reading as the questions go by.

- 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
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Mon May 22, 2017 8:42 pm    Post subject: Reply with quote

John R. Graham wrote:
One fundamental thing, yes. When you copy a config file like that, you need to convert it to the new kernel source. This is easy, though, as there's a make target for it. Just run
Code:
make oldconfig
and answer all the questions. The default (pressing <Enter>) is usually just fine, although you may want to do a bit of reading as the questions go by.

- John


Now I'm beginning to feel like a help vampire. Sorry. I'll do my reading, trying and perhaps breaking stuff before asking.

Ah, i was thinking of that, but wasnt sure. There's silent config aswell. Ill try first thing tomorrow, it's late evening here in Sweden.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Mon May 22, 2017 8:53 pm    Post subject: Reply with quote

You may want to see /usr/src/linux/Documentation/admin-guide/README.rst for make targets, there are several. As for make odconfig hitting the <?> followed by <Enter> will give a short description.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Mon May 22, 2017 9:17 pm    Post subject: Reply with quote

tuggbuss wrote:
Now I'm beginning to feel like a help vampire. ...
Maybe just a little. ;)

- 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
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Tue May 23, 2017 3:12 pm    Post subject: Reply with quote

John R. Graham wrote:
tuggbuss wrote:
Now I'm beginning to feel like a help vampire. ...
Maybe just a little. ;)

- John


It was fairly simple. Everything works (i did forget rebuild the modules, but hey, not failing = not learning) :)
Now i'm proudly on 4.12.0-rc1 and everything is working just flawless.
Thanks for your support, and sorry me asking b e f o r e at least trying. Lesson learned

/Recovering help vampire
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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