public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] What is forcing the qt4 USE flag?
@ 2016-01-22 19:04 Nikos Chantziaras
  2016-01-22 19:45 ` Mick
  2016-01-23  7:21 ` Michael Palimaka
  0 siblings, 2 replies; 6+ messages in thread
From: Nikos Chantziaras @ 2016-01-22 19:04 UTC (permalink / raw
  To: gentoo-user

I have a weird problem. I have an ebuild where either qt4 or qt5 can be 
enabled. They are both disabled by default and I have to choose which 
one I want. The ebuild does that with:

   IUSE="qt4 qt5"
   REQUIRED_USE="^^ ( qt4 qt5 )"

I'm on the plasma profile which enabled qt5 automatically. However, 
portage complains:

   The following REQUIRED_USE flag constraints are unsatisfied:
   exactly-one-of ( qt4 qt5 )

The qt4 USE flag is enabled. I can't see where. I didn't enable it 
anywhere in any of my /etc/portage/* files. If I emerge with:

   USE="-qt4" emerge package

then it works. So I have to explicitly disable the qt4 USE flag even 
though I didn't enable it in the first place.

Can someone enlighten me?



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] What is forcing the qt4 USE flag?
  2016-01-22 19:04 [gentoo-user] What is forcing the qt4 USE flag? Nikos Chantziaras
@ 2016-01-22 19:45 ` Mick
  2016-01-22 22:21   ` Neil Bothwick
  2016-01-23  7:41   ` [gentoo-user] " Nikos Chantziaras
  2016-01-23  7:21 ` Michael Palimaka
  1 sibling, 2 replies; 6+ messages in thread
From: Mick @ 2016-01-22 19:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

On Friday 22 Jan 2016 21:04:48 Nikos Chantziaras wrote:
> I have a weird problem. I have an ebuild where either qt4 or qt5 can be
> enabled. They are both disabled by default and I have to choose which
> one I want. The ebuild does that with:
> 
>    IUSE="qt4 qt5"
>    REQUIRED_USE="^^ ( qt4 qt5 )"
> 
> I'm on the plasma profile which enabled qt5 automatically. However,
> portage complains:
> 
>    The following REQUIRED_USE flag constraints are unsatisfied:
>    exactly-one-of ( qt4 qt5 )
> 
> The qt4 USE flag is enabled. I can't see where. I didn't enable it
> anywhere in any of my /etc/portage/* files. If I emerge with:
> 
>    USE="-qt4" emerge package
> 
> then it works. So I have to explicitly disable the qt4 USE flag even
> though I didn't enable it in the first place.
> 
> Can someone enlighten me?

euse -I qt4

should provide some pointers.  It may be your desktop profile?

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] What is forcing the qt4 USE flag?
  2016-01-22 19:45 ` Mick
@ 2016-01-22 22:21   ` Neil Bothwick
  2016-01-23  7:41   ` [gentoo-user] " Nikos Chantziaras
  1 sibling, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2016-01-22 22:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

On Fri, 22 Jan 2016 19:45:29 +0000, Mick wrote:

> > Can someone enlighten me?  
> 
> euse -I qt4
> 
> should provide some pointers.  It may be your desktop profile?

If so, it should show up in "emerge --info | grep qt4". I am using
default/linux/amd64/13.0/desktop/plasma/systemd and both qt4 and qt5 are
enabled by default.


-- 
Neil Bothwick

When you go to court you are putting yourself in the hands of 12 people
that were not smart enough to get out of jury duty.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: What is forcing the qt4 USE flag?
  2016-01-22 19:04 [gentoo-user] What is forcing the qt4 USE flag? Nikos Chantziaras
  2016-01-22 19:45 ` Mick
@ 2016-01-23  7:21 ` Michael Palimaka
  2016-01-23  7:50   ` Nikos Chantziaras
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Palimaka @ 2016-01-23  7:21 UTC (permalink / raw
  To: gentoo-user

On 01/23/2016 06:04 AM, Nikos Chantziaras wrote:
> I have a weird problem. I have an ebuild where either qt4 or qt5 can be
> enabled. They are both disabled by default and I have to choose which
> one I want. The ebuild does that with:
> 
>   IUSE="qt4 qt5"
>   REQUIRED_USE="^^ ( qt4 qt5 )"
> 
> I'm on the plasma profile which enabled qt5 automatically. However,
> portage complains:
> 
>   The following REQUIRED_USE flag constraints are unsatisfied:
>   exactly-one-of ( qt4 qt5 )
> 
> The qt4 USE flag is enabled. I can't see where. I didn't enable it
> anywhere in any of my /etc/portage/* files. If I emerge with:
> 
>   USE="-qt4" emerge package
> 
> then it works. So I have to explicitly disable the qt4 USE flag even
> though I didn't enable it in the first place.
> 
> Can someone enlighten me?
> 
> 
> 

Which package is it? We can add an entry to the Plasma profile's
package.use to avoid the REQUIRED_USE.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: What is forcing the qt4 USE flag?
  2016-01-22 19:45 ` Mick
  2016-01-22 22:21   ` Neil Bothwick
@ 2016-01-23  7:41   ` Nikos Chantziaras
  1 sibling, 0 replies; 6+ messages in thread
From: Nikos Chantziaras @ 2016-01-23  7:41 UTC (permalink / raw
  To: gentoo-user

On 22/01/16 21:45, Mick wrote:
> On Friday 22 Jan 2016 21:04:48 Nikos Chantziaras wrote:
>> I have a weird problem. I have an ebuild where either qt4 or qt5 can be
>> enabled. They are both disabled by default and I have to choose which
>> one I want. The ebuild does that with:
>>
>>     IUSE="qt4 qt5"
>>     REQUIRED_USE="^^ ( qt4 qt5 )"
>>
>> I'm on the plasma profile which enabled qt5 automatically. However,
>> portage complains:
>>
>>     The following REQUIRED_USE flag constraints are unsatisfied:
>>     exactly-one-of ( qt4 qt5 )
>>
>> The qt4 USE flag is enabled. I can't see where. I didn't enable it
>> anywhere in any of my /etc/portage/* files. If I emerge with:
>>
>>     USE="-qt4" emerge package
>>
>> then it works. So I have to explicitly disable the qt4 USE flag even
>> though I didn't enable it in the first place.
>>
>> Can someone enlighten me?
>
> euse -I qt4
>
> should provide some pointers.  It may be your desktop profile?

Yep, it's the parent profile of the plasma profile. This results in both 
qt4 and qt5 being set.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: What is forcing the qt4 USE flag?
  2016-01-23  7:21 ` Michael Palimaka
@ 2016-01-23  7:50   ` Nikos Chantziaras
  0 siblings, 0 replies; 6+ messages in thread
From: Nikos Chantziaras @ 2016-01-23  7:50 UTC (permalink / raw
  To: gentoo-user

On 23/01/16 09:21, Michael Palimaka wrote:
> On 01/23/2016 06:04 AM, Nikos Chantziaras wrote:
>> I have a weird problem. I have an ebuild where either qt4 or qt5 can be
>> enabled. They are both disabled by default and I have to choose which
>> one I want. The ebuild does that with:
>>
>>    IUSE="qt4 qt5"
>>    REQUIRED_USE="^^ ( qt4 qt5 )"
>>
>> I'm on the plasma profile which enabled qt5 automatically. However,
>> portage complains:
>>
>>    The following REQUIRED_USE flag constraints are unsatisfied:
>>    exactly-one-of ( qt4 qt5 )
>>
>> The qt4 USE flag is enabled. I can't see where. I didn't enable it
>> anywhere in any of my /etc/portage/* files. If I emerge with:
>>
>>    USE="-qt4" emerge package
>>
>> then it works. So I have to explicitly disable the qt4 USE flag even
>> though I didn't enable it in the first place.
>>
>> Can someone enlighten me?
>>
>
> Which package is it? We can add an entry to the Plasma profile's
> package.use to avoid the REQUIRED_USE.

It's my own ebuilds (in an overlay.) I wasn't setting either USE flag in 
the ebuilds at all and this spooked me. Turns out it's the parent 
profile of the plasma profile doing this.

What would be really nice to have in portage is if the profiles were 
able to say "if qt4 and qt5 are both supported but mutually exclusive, 
prefer qt5 unless the user or the ebuild itself has specified 
otherwise". But I guess it would be hairy to implement that. (It would 
help with other such USE flags as well, not just qt4 vs qt5.)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-23  7:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 19:04 [gentoo-user] What is forcing the qt4 USE flag? Nikos Chantziaras
2016-01-22 19:45 ` Mick
2016-01-22 22:21   ` Neil Bothwick
2016-01-23  7:41   ` [gentoo-user] " Nikos Chantziaras
2016-01-23  7:21 ` Michael Palimaka
2016-01-23  7:50   ` Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox