Further examination yields that libsolv already supports a way of dealing with
this: REL_WITH which is represented in libsolvs dependency language as "+" and
we probably want to represent in RPM as "with".
The semantic of the with operator is both sides need to be matched by the same
package. For ease of implementation nesting of "and" terms is not supported
(as they would yield tuples of packages as solution). "or" clauses are
suppoerted, though. "if" and "if" "else" clauses should be supported but this
needs further investigation.
I have POC patch extending the rich deps parser in RPM to allow "with" and to
check and reject "and" nested in "with" clauses. The - more complicated - part
of actually checking if there is a single package matching is still missing
though. In the patch "with" is treated like "and".
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/159#issuecomment-281932868
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint