View previous topic :: View next topic |
Author |
Message |
dcbdbis n00b
Joined: 19 Nov 2005 Posts: 13 Location: Aurora, Colorado, USA
|
Posted: Fri Sep 27, 2019 2:50 am Post subject: [SOLVED] Automatic Use Flags per package |
|
|
Good Evening All,
I haven't been on Gentoo for years - but am considering a return. SystemD continues to anger me. I am through with it. The USE flags and all the complexity they introduce caused me issues way back when. (in the stage 1 days)
So before I start with trial hardware - I have a question.
Is there a way to configure portage to automatically turn on the use flags a package supports, and disable flags they don't?
I'd like to do this at the system level so I don't have to stipulate USE flags on a per-package basis - rather, have the system handle it. For me, this will simplify things from a sys admin standpoint. Specifying USE flags got me in trouble before - so I'd like to manage them differently this time.
Thank you for any pointers/suggestions you can provide,
Respectfully,
dcbdbis
Last edited by dcbdbis on Fri Sep 27, 2019 4:58 pm; edited 1 time in total |
|
Back to top |
|
|
msst Apprentice
Joined: 07 Jun 2011 Posts: 259
|
Posted: Fri Sep 27, 2019 5:04 am Post subject: |
|
|
Quote: | Is there a way to configure portage to automatically turn on the use flags a package supports, and disable flags they don't?
|
Well, there is kind of a minimum default use list when you select a profile, check
Code: | eselect profile list |
and decide what your system is used for.
And then you can install ufed package
Code: | app-portage/ufed
Webpage: https://wiki.gentoo.org/wiki/Ufed
Description: Gentoo Linux USE flags editor
|
and use it to browse and set the use flags you really need. I would not try to enable all use flags a package offers, but only the ones you really need. All else is falling for featuritis.
The less use flags you use the lower the complexity / cross-dependencies. This is exactly the core of gentoo, you can and must choose what you want. And live with the consequences in terms of complexity then. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30904 Location: here
|
Posted: Fri Sep 27, 2019 5:31 am Post subject: Re: Automatic Use Flags per package |
|
|
dcbdbis wrote: | I'd like to do this at the system level so I don't have to stipulate USE flags on a per-package basis - rather, have the system handle it. |
Now portage tell you, after dependencies calculation, the use flags that need to be set with message like this
Code: | # required by sys-libs/ldb-1.1.26::gentoo
# required by net-fs/samba-4.2.9::gentoo
# required by @selected
# required by @world (argument)
>=sys-libs/tevent-0.9.28 python |
after that you can use etc-update to write this change in relative /etc/portage/package.use file.
Anyway pay attention on that portage want to do _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3610
|
Posted: Fri Sep 27, 2019 6:05 am Post subject: |
|
|
Welcome back to Gentoo dcbdbis .
Portage's autounmask features can ease pushing required USE flags to a dedicated file, as well as unmasking packages to an alternate one if required.
etc-update allow to activate this changes before you emerge for real.
The con being these files turning to a mess quite quickly, IMHO.
This link might help.
If HW compatible don't forget about GCC_FLAGS_X86.
Declaring only 2 python, such as 2_7 & 3_6, then defaulting to the later, is likely will match your needs. especially if you're going stable.
Thks 4 ur attention. |
|
Back to top |
|
|
dcbdbis n00b
Joined: 19 Nov 2005 Posts: 13 Location: Aurora, Colorado, USA
|
Posted: Fri Sep 27, 2019 5:00 pm Post subject: |
|
|
Thank you all for your suggestions. I appreciate the responses. I don;t want the world as far as features, now that I am retired - I just want solid functionality.
Again, thank you all.
Regards,
dcbdbis |
|
Back to top |
|
|
|
|
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
|
|