View previous topic :: View next topic |
Author |
Message |
awalp n00b


Joined: 29 May 2003 Posts: 71
|
Posted: Fri Aug 14, 2015 3:19 am Post subject: emerge not following package.use configuration |
|
|
I cannot get nvidia-drivers to install without error.
It asks for gtk2 ot gtk3 use flags.
Code: | !!! Problem resolving dependencies for x11-drivers/nvidia-drivers from @selected
... done!
!!! The ebuild selected to satisfy "x11-drivers/nvidia-drivers" has unmet requirements.
- x11-drivers/nvidia-drivers-352.30::gentoo USE="X multilib tools -acpi -gtk2 -gtk3 -pax_kernel -uvm" ABI_X86="64"
The following REQUIRED_USE flag constraints are unsatisfied:
tools? ( any-of ( gtk2 gtk3 ) )
The above constraints are a subset of the following complete expression:
tools? ( X any-of ( gtk2 gtk3 ) )
|
I have set this use flag option in /etc/portage/packaeg.use/use
Code: | >=x11-base/nvidia-drivers-352.30 gtk2 gtk3
x11-base/nvidia-drivers gtk3 |
Yet I still get the first above error when trying to emerge -DNuav world
(oddly enough nvidia-drvers are already installed, this error just started happening without reason during any emerge -DNu command.
--------------------
I've ran gentoo for 15 years, what the heck am I doing wrong?
Why won't emerge follow /etc/portage/package.use/use ???
EDIT::::____
I forgot about this.. when I set
eselect profile 8 (plasma)
Code: | Calculating dependencies... done!
[ebuild R ] x11-drivers/nvidia-drivers-352.30::gentoo USE="X acpi* gtk2* multilib tools -gtk3* -pax_kernel -uvm" 0 KiB |
eselect profile 1
Code: | !!! Problem resolving dependencies for x11-drivers/nvidia-drivers from @selected
... done!
!!! The ebuild selected to satisfy "x11-drivers/nvidia-drivers" has unmet requirements.
- x11-drivers/nvidia-drivers-352.30::gentoo USE="X multilib tools -acpi -gtk2 -gtk3 -pax_kernel -uvm" ABI_X86="64"
The following REQUIRED_USE flag constraints are unsatisfied:
tools? ( any-of ( gtk2 gtk3 ) )
The above constraints are a subset of the following complete expression:
tools? ( X any-of ( gtk2 gtk3 ) ) |
I may be running KDE Plasma 5, but I do not wish to use profile 8, as it is bringing in unwanted KDE 4 packages.
-----------------
What do I need to do to get emerge to follow my /etc/portage/package.use/use ??
I should be able to do this under profile 1, I should not be forced to profile 8[/quote] |
|
Back to top |
|
 |
awalp n00b


Joined: 29 May 2003 Posts: 71
|
Posted: Fri Aug 14, 2015 3:35 am Post subject: |
|
|
I just created a new file
/etc/portage/package.use/nvidia-drivers
Code: | x11-drivers/nvidia-drivers gtk3 |
Now it follows the use flag.
even though I already had in
/etc/portage/package.use/use
Code: | x11-drivers/nvidia-drivers gtk3 |
but it was not following the use flag.......
...................... This bothers me, I've run gentoo for 15 years and thought I understood it
Why does it following /etc/portage/package.use/nvidia-drivers and not /etc/portage/package.use/use ?? |
|
Back to top |
|
 |
freke Guru

Joined: 23 Jan 2003 Posts: 502 Location: Somewhere in Denmark
|
Posted: Fri Aug 14, 2015 7:40 pm Post subject: |
|
|
awalp wrote: | I just created a new file
/etc/portage/package.use/nvidia-drivers
Code: | x11-drivers/nvidia-drivers gtk3 |
Now it follows the use flag.
even though I already had in
/etc/portage/package.use/use
Code: | x11-drivers/nvidia-drivers gtk3 |
but it was not following the use flag.......
...................... This bothers me, I've run gentoo for 15 years and thought I understood it
Why does it following /etc/portage/package.use/nvidia-drivers and not /etc/portage/package.use/use ?? |
Dunno - just to be sure - you have Code: | x11-base/nvidia-drivers | or Code: | x11-drivers/nvidia-drivers | in package.use/use?
Your posts seems to disagree  |
|
Back to top |
|
 |
awalp n00b


Joined: 29 May 2003 Posts: 71
|
Posted: Sat Aug 15, 2015 6:54 pm Post subject: |
|
|
I had this problem again...
..didn't work with /etc/portage/package.use/use
but does seem to be working with
.... /etc/portage/package.use/nvidia-drivers
I though all the /etc/portage/ files were single shared flies...
..or if you wanted a directory one need not create a new file for each USE change am I right? |
|
Back to top |
|
 |
Buffoon Veteran


Joined: 17 Jun 2015 Posts: 1074 Location: EU or US
|
Posted: Sat Aug 15, 2015 9:47 pm Post subject: |
|
|
No, one single file will do. With multiple files you run into risk having multiple entries for single package - I think this is what is happening to you. I have two files, one for 32bit ABI and the other one for per package flags. |
|
Back to top |
|
 |
Roman_Gruber Advocate

Joined: 03 Oct 2006 Posts: 3806 Location: Austro Bavaria
|
Posted: Sat Aug 15, 2015 10:16 pm Post subject: |
|
|
With multiple files you ask for troubles. You may know why you have several files and use the new directory structure. Any editor has a search feature. greping this single file for multiple entries is kinda easy.
Code: | /etc/portage/package.use
|
And my installation dates back for years... Still the same hardware...
One file, no hassle, several files, too much to watch over..
And you can look into portage and than you may find the algortihm on how the files are parsed in which order |
|
Back to top |
|
 |
CaptainBlood Veteran


Joined: 24 Jan 2010 Posts: 1195
|
Posted: Sun Aug 16, 2015 12:36 am Post subject: |
|
|
I have Quote: | /etc/portage/portage.use/monolithic | where monolithic is a file that contains all entries.
U can name the file whatever you want this should do the trick.
Thks 4 ur attention. |
|
Back to top |
|
 |
awalp n00b


Joined: 29 May 2003 Posts: 71
|
Posted: Sun Aug 23, 2015 12:23 pm Post subject: |
|
|
We can mark this [SOLVED]
I must of had a typo.
tw04l124 wrote: | With multiple files you ask for troubles. You may know why you have several files and use the new directory structure. Any editor has a search feature. greping this single file for multiple entries is kinda easy.
Code: | /etc/portage/package.use
|
And my installation dates back for years... Still the same hardware...
One file, no hassle, several files, too much to watch over..
And you can look into portage and than you may find the algortihm on how the files are parsed in which order |
I have multiple files because I have several symbolic linked files in each of the /etc/portage directories.
Each directory package.keywords, package.use, etc...
ln -s /var/lib/layman/kde/Documentation/package.use/kde-applications-live
ln -s /var/lib/layman/kde/Documentation/package.use/kde-frameworks-live
ln -s /var/lib/layman/kde/Documentation/package.use/kde-plasma-live
I name my use file z_use, as emerge adds new entries alphabetically backwards.
So each folder has z_use, z_keywords, z_mask, etc.
(This is a useful thing to know, as you don't want emerge putting entries on the linked files and have the configuration disappear every time the file is updated)
Seems to work out well enough. |
|
Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sun Aug 23, 2015 1:36 pm Post subject: |
|
|
awalp wrote: | I have multiple files because I have several symbolic linked files in each of the /etc/portage directories. |
Yeah overlay-configs are the most common reason for switching, along with crossdev.
Minor niggle: Quote: | I name my use file z_use, as emerge adds new entries alphabetically backwards. |
It scans files in (forward) collation order, using the C locale (ie "asciibetical" so numeric prefixes come before alphabetical.)
This has the same effect as you've written, in that later z_* files will override earlier overlay-linked ones, and your configuration takes precedence.
This is the same behaviour as most configuration directories; traditionally the executable bit has been used, to turn on processing.
The locale may effectively be C.UTF-8 given that it's python-based (ebuilds are encoded in UTF-8), but I'd stick with ASCII filenames.
edit: To mark [solved] please edit your original post, and amend the subject line. |
|
Back to top |
|
 |
|