Re: erroneous behavior in 2-style USE dependencies?

Ulrich Mueller <[email protected]>
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
>>>>> On Wed, 17 Jun 2020, Michael Lienhardt wrote:

> But maybe, "error" here in the PMS mean "the cpvs without the use flag
> does not match that dependency and a warning should be raised to
> improve compatibility in the future". In that case, it would be
> clearer for me to change 'error' in the PMS into something like
> "results in a no match,

IMHO we cannot assume that. If the flag is not in the dependency's
IUSE_EFFECTIVE then behaviour is undefined.

> but should be avoided". That way, it is explicitly stated that missing
> use flags for a 2-style USE dependency is accepted (which is the
> current behavior of emerge) but frown upon, without forcing any
> specific error handling, like Michał accurately pointed out.

The real problem is that we don't have a good procedure for removing
flags from ebuilds with reverse (2-style) use dependencies. (And even
with 4-style use dependencies the problem remains that one cannot know
in advance whether removal of the flag implies that the feature is now
unconditionally enabled, or that it is disabled.)

Ulrich
signature.asc (application/pgp-signature, 507 B)
-----BEGIN PGP SIGNATURE-----

iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAl7p1dkPHHVsbUBnZW50
b28ub3JnAAoJEFGIM1CIQV4ufqsH/2aCbDe0URpk2slTqGiRiNjxxpwJInVA2AH+
HTcfxVHEAxaIGkq42tMgrk0aeGk2F4GhnxPuaovDq0DWrTuupzyOERTMUdImkIx9
iDttNqDWGY/tXjQB61Hzq6TDL0/X8PQnwcfZVtRO9GGqfqoScxVY4PW41sTlHKGA
qPWQAYU0aK5BZ9MOXsuGPYhw19DUhPAiHc6021DqjbIK9sQlSvGUmCgSlR1jRKk7
J80x8S9ROc3rAEQcObSiuowA/+FcN0xCpBD8JOr4+brFBsAX+PVE+kTkTA69Z50f
Bmkk/grQPXSDwDHXnHRgmywpRl4gxQUMj8Z6NpF/crwtRxtKpPw=
=v4b6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.