Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]USE flags being ignored from package.use
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
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Fri May 20, 2016 2:03 pm    Post subject: [solved]USE flags being ignored from package.use Reply with quote

Hello,

I want to remove the custom-cflags and the pic useflag from chromium (~amd64) but it is being ignored by portage.

/etc/portage/package.use/package.use.original :
Code:
...
www-client/chromium -hangouts -pic -system-ffmpeg -custom-cflags
...


emerge -vpuDN chromium :
Code:
[ebuild   R   ~] www-client/chromium-51.0.2704.47::gentoo  USE="cups custom-cflags (pic) proprietary-codecs pulseaudio tcmalloc (-gn) -gnome -gnome-keyring (-gtk3) -hangouts* -hidpi -hotwording -kerberos (-neon) (-selinux) -system-ffmpeg* {-test} -widevine" LINGUAS="-am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW" 0 KiB


USE="-pic -custom-cflags" emerge -vpuDN chromium :
Code:
[ebuild   R   ~] www-client/chromium-51.0.2704.47::gentoo  USE="cups (pic) proprietary-codecs pulseaudio tcmalloc -custom-cflags* (-gn) -gnome -gnome-keyring (-gtk3) -hangouts* -hidpi -hotwording -kerberos (-neon) (-selinux) -system-ffmpeg* {-test} -widevine" LINGUAS="-am -ar -bg -bn -ca -cs -da -de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW" 0 KiB


There are no double entries for chromium in package.use and if "-custom-cflags" is set in /etc/make.conf it is being ignored too.
What is the problem here?


Last edited by gorg86 on Fri May 20, 2016 10:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Fri May 20, 2016 6:17 pm    Post subject: Reply with quote

I guess package.use.original is not a valid filename.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Fri May 20, 2016 6:42 pm    Post subject: Reply with quote

I don't see anything wrong with that filename.

edit:
The problem only occurs with chromium.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


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

PostPosted: Fri May 20, 2016 8:55 pm    Post subject: Re: USE flags being ignored from package.use Reply with quote

gorg86 wrote:
I want to remove the custom-cflags and the pic useflag from chromium (~amd64) but it is being ignored by portage.
..
There are no double entries for chromium in package.use and if "-custom-cflags" is set in /etc/make.conf it is being ignored too.
What is the problem here?

pic is forced on by the profile, as indicated by the brackets around the flag name.

You should be using /etc/portage/make.conf by now; though I can't say why it picks it up from env, but not the package.use file. (It's picking up the change in hangouts and ffmpeg.)
If you are on unstable across the board, then you may well need to upgrade portage (more regularly.)

Code:
$ grep -F custom-cflags -R /usr/portage/profiles/
shows nothing of relevance here (though I need to sync.)
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4520
Location: Germany

PostPosted: Fri May 20, 2016 9:54 pm    Post subject: Reply with quote

Hm, look via
Code:
grep -r custom-cflags /etc/portage/
for duplicate entries.
Back to top
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 297

PostPosted: Fri May 20, 2016 10:52 pm    Post subject: Reply with quote

Thank you guys. Somehow /etc/portage/package.use/ got polluted with files called ._cfgxxxx_*. There was also an old backup file in the same folder I forgot to delete. I deleted those files and now everything works as intended. Well it was my stupid fault.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri May 20, 2016 11:50 pm    Post subject: Reply with quote

gorg86 wrote:
Thank you guys. Somehow /etc/portage/package.use/ got polluted with files called ._cfgxxxx_*. There was also an old backup file in the same folder I forgot to delete. I deleted those files and now everything works as intended. Well it was my stupid fault.

gorg86 ... the ._cfg* files are created by the use of --autounmask-write, and you are expected to run etc-update, or dispatch-conf, to merge the config changes.

best ... khay
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