On Mon, 2005-02-07 at 15:47 +0100, Patrick Kursawe wrote:

> If you want to have a working "make test" for the package built with X11
> support, you need to use virtualx.
> If you build the package without X11 support, you currently get virtual/x11
> nevertheless, since the ebuild inherits from virtualx.eclass which has a
> hard-coded DEPEND on it.
> 
> Do you see a different solution?

Now I see what you mean. It seems important. ;)

But if you add the X flag on virtualx.eclass, every package that
"inherit virtualx" will also have a X USE flag. Or there's another
workaround for this? Like "if IUSE has the USE flag, use it"

Because if it is so, what about those packages that "inherit virtualx"
and that the X USE flag would make no sense? Like, for instance,
app-office/gnumeric. There's no sense on USE="-X" emerge gnumeric.

I can think of two other solutions. 

1. Every package that need to "inherit virtualx" needs virtual/x11, so
just drop the DEPEND on the eclass. I don't know if this will break
anything, but I can't think of a package who will inherit virtualx and
not DEPEND on virtual/x11. 

2. The second solution would be to create a common variable that pass to
the eclass. Perhaps something similiar as what the apache.eclass and the
depend.apache.eclass do.

[]s
Fernando Serboncini





Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to