Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't unmask a per-package USE flag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Wed Aug 19, 2020 9:34 pm    Post subject: can't unmask a per-package USE flag Reply with quote

So, I wanna try kde-plasma/powerdevil with the brightness-control USE flag, but the flag is masked in a profile because there is no stable version of app-misc/ddcutil.

I've got this config (and first tried them seperately):
Code:
$ cat /etc/portage/package.use.mask

# ddcutil may not be stable, but I want it...
kde-plasma/powerdevil -brightness-control

Code:
$ cat /etc/portage/package.use.unmask

# ddcutil may not be stable, but I want it...
#kde-plasma/powerdevil -brightness-control



But it's still masked:
Code:
$ emerge -1vp powerdevil

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

Calculating dependencies... done!
[ebuild   R    ] kde-plasma/powerdevil-5.18.5:5::gentoo  USE="handbook wireless (-brightness-control) -debug" 584 KiB

Total: 1 package (1 reinstall), Size of downloads: 584 KiB


What am I doing wrong here?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Wed Aug 19, 2020 9:47 pm    Post subject: Reply with quote

Hi
it should rather be
Code:

/etc/portage/profile/package.use.mask

It seems you missed the "profile" bit
https://wiki.gentoo.org/wiki//etc/portage/profile/package.use.mask
:D


Last edited by alamahant on Wed Aug 19, 2020 9:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2921

PostPosted: Wed Aug 19, 2020 9:48 pm    Post subject: Reply with quote

Code:
echo kde-plasma/powerdevil -brightness-control >> /etc/portage/profile/package.use.stable.mask
Create profile directory if missing.

Edit: Also it's a stable mask, but package.use.mask works too. More typically just use the same file the profile do with the opposite statement.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Thu Aug 20, 2020 8:59 pm    Post subject: Reply with quote

Thank you guys, that fixed it.

Bonus points for the tip for keeping it organised.

EDIT: If anyone gets here for the particular use flag, kde-plasma/powerdevil-5.18.5 build fine with app-misc/ddcutil-0.9.5 but fails with app-misc/ddcutil-0.9.9 (it was a type cast error I think, but not 100% sure)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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