1 |
El vie, 25-07-2014 a las 15:54 -0400, Ian Stakenvicius escribió: |
2 |
> On 25/07/14 03:51 PM, Pacho Ramos wrote: |
3 |
> > El vie, 25-07-2014 a las 20:46 +0100, Ciaran McCreesh escribió: |
4 |
> >> On Fri, 25 Jul 2014 21:44:02 +0200 Luis Ressel <aranea@×××××.de> |
5 |
> >> wrote: |
6 |
> >>> Okay, I didn't think of that. I'm not sure if the blocker deps |
7 |
> >>> or the REQUIRED_USE would be more helpful for Portage, but |
8 |
> >>> generally I think that the REQUIRED_USE error message is quite |
9 |
> >>> hard to understand for unexperienced users -- much more so than |
10 |
> >>> the error generated by a blocker dep. |
11 |
> >> |
12 |
> >> ...and the fix for that is to scrap REQUIRED_USE and use |
13 |
> >> pkg_pretend instead. |
14 |
> >> |
15 |
> > |
16 |
> > Could you give an example to let us see how pkg_pretend could be |
17 |
> > used to achieve the same as REQUIRED_USE? |
18 |
> > |
19 |
> > Thanks |
20 |
> > |
21 |
> > |
22 |
> |
23 |
> pkg_pretend() { |
24 |
> if use heimdal && use mit-krb5; then |
25 |
> eerror "Please set only one of the use following flags:" |
26 |
> eerror "heimdal, mit-krb5" |
27 |
> die "conflicting use flags set" |
28 |
> fi |
29 |
> } |
30 |
|
31 |
Ah, ok, I was wondering why REQUIRED_USE was implemented then :/, I |
32 |
guess it was for simplifying ebuilds? |