Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: useflag policies
Date: Wed, 12 Aug 2015 17:44:09
Message-Id: 21963.34267.514237.473502@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] Re: useflag policies by Ulrich Mueller
1 >>>>> On Wed, 12 Aug 2015, Ulrich Mueller wrote:
2
3 > Hm, how about adding a new PM command like "required_use foo -bar"?
4 > It would be used exclusively in pkg_pretend, and tell the PM to
5 > suggest the necessary package.use changes to the user (or even update
6 > them automatically with the appropriate --autounmask-* option).
7
8 To clarify, I'm thinking about something like this:
9
10 pkg_pretend() {
11 if use qt4; then
12 required_use -qt5
13 else
14 required_use qt5
15 fi
16 }
17
18 The advantage would be that any number of elog messages could be added
19 which would further explain things to the user.
20
21 Ulrich

Replies

Subject Author
Re: [gentoo-dev] Re: useflag policies Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>