Gentoo Archives: gentoo-portage-dev

From: "michael.lienhardt" <michael.lienhardt@×××××××.net>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] erroneous behavior in 2-style USE dependencies?
Date: Tue, 16 Jun 2020 18:43:52
Message-Id: 1294751375.973920.1592333024223@wlpnf0202
1 <div style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">‌Dear all,<br>
2 <br>
3 My bad for not noticing it sooner, but when there is a dependency like "&gt;=sys-fs/udev-208-r1:0/0[static-libs?]" (that occurs in virtual/libgudev-215-r3), since 'static-libs' is not a use flags of sys-fs/udev-242, it is silently not considered during dependency solving by emerge.<br>
4 However, the PMS states:<br>
5 &nbsp;- it is an error for a use dependency to be applied to an ebuild which does not have the flag in question in <span class="ectt-1000">IUSE_REFERENCEABLE</span><br>
6 &nbsp;- For EAPIs listed in table&nbsp;<a href="https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-56001r4">5.4</a> as not supporting profile defined <span class="ectt-1000">IUSE </span>injection, <span class="ectt-1000">IUSE_REFERENCEABLE </span>is equal to the calculated <span class="ectt-1000">IUSE </span>value. For EAPIs where profile defined <span class="ectt-1000">IUSE </span>injection is supported, <span class="ectt-1000">IUSE_REFERENCEABLE </span>is equal to <span class="ectt-1000">IUSE_EFFECTIVE<br>
7 And 'static-libs' is not in the IUSE_EFFECTIVE of </span>sys-fs/udev-242 (that ebuild has EAPI=6).<br>
8 So it seems to me that this current behavior of emerge should be considered an error, no? Or the PMS should be updated?<br>
9 <br>
10 Best,<br>
11 Michael</div>

Replies