pkg_pretend() { if ! echo "${USE}" | grep "cameras_" > /dev/null 2>&1; then einfo "No camera drivers will be built since you did not specify any." fi } The ebuild should not access the USE variable directly. It should check the CAMERAS use-expand instead. Alternatively (and maybe preferably), it could calculate REQUIRED_USE="|| ( ... )" from IUSE_CAMERAS.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbad92ec847597037513ade0f8168bc8ae391cd7 commit bbad92ec847597037513ade0f8168bc8ae391cd7 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2024-07-06 10:08:27 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2024-07-09 18:38:44 +0000 media-libs/libgphoto2: Fix USE and IUSE handling Closes: https://bugs.gentoo.org/935491 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/37456 Signed-off-by: Pacho Ramos <pacho@gentoo.org> media-libs/libgphoto2/libgphoto2-2.5.31-r2.ebuild | 216 ++++++++++++++++++++++ 1 file changed, 216 insertions(+)