Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge not following package.use configuration
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
awalp
n00b
n00b


Joined: 29 May 2003
Posts: 71

PostPosted: Fri Aug 14, 2015 3:19 am    Post subject: emerge not following package.use configuration Reply with quote

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
View user's profile Send private message
awalp
n00b
n00b


Joined: 29 May 2003
Posts: 71

PostPosted: Fri Aug 14, 2015 3:35 am    Post subject: Reply with quote

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
View user's profile Send private message
freke
Guru
Guru


Joined: 23 Jan 2003
Posts: 502
Location: Somewhere in Denmark

PostPosted: Fri Aug 14, 2015 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
awalp
n00b
n00b


Joined: 29 May 2003
Posts: 71

PostPosted: Sat Aug 15, 2015 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sat Aug 15, 2015 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Aug 15, 2015 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1198

PostPosted: Sun Aug 16, 2015 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
awalp
n00b
n00b


Joined: 29 May 2003
Posts: 71

PostPosted: Sun Aug 23, 2015 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Aug 23, 2015 1:36 pm    Post subject: Reply with quote

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