pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
35 stars 29 forks source link

[Commits Bug]: false positives for REQUIRED_USE #640

Open orlitzky opened 11 months ago

orlitzky commented 11 months ago

Is there an existing issue for this?

Current Behavior

Running pkgcheck scan --commits with a commit in dev-lang/php produces e.g

RequiredUseDefaults: version 8.3.0: profile: 'default/linux/amd64/17.1/desktop' (190 total) failed REQUIRED_USE: gd

Expected Behavior

AFAICT, that warning stems from the fact that the desktop profiles set USE="exif truetype" and both of those flags require USE=gd for dev-lang/php. However, we already have an entry in profiles/targets/desktop/package.use to counteract this:

# Brian Evans <grknight@gentoo.org> (2017-07-18)                                                                                                                             
# Don't force users to enable gd on PHP due to desktop defaults                                                                                                              
dev-lang/php -exif -truetype

master commit id

011241c147a6af7baeae8dbf6e68a6d25787933b

HEAD link

(I'm not sure what goes here, sorry!)

pkgcheck version

pkgcheck 0.10.25

pkgcore version

pkgcore 0.12.23

git remotes configuration

github git@github.com:orlitzky/gentoo.git (fetch) github git@github.com:orlitzky/gentoo.git (push) origin git+ssh://git@git.gentoo.org/repo/gentoo.git (fetch) origin git+ssh://git@git.gentoo.org/repo/gentoo.git (push)

parona-source commented 10 months ago

I'm getting a similar issue with kodi.

I made a minimal repo that reproduces both of these. (Its not related to Commits)

pkgcheck-required-use.tar.gz

ask@bigglane /home/ask/sources/pkgcheck_debug
 $ pkgcheck scan
test -- updating profiles cache: amd64
gui-libs/test
  RequiredUseDefaults: version 1: profile: 'default/linux/amd64/17.1/desktop/gnome' failed REQUIRED_USE: exactly-one-of ( X wayland )

dev-lang/php
  RequiredUseDefaults: version 1: profile: 'default/linux/amd64/17.1/desktop/gnome' (2 total) failed REQUIRED_USE: gd

My inkling is that pkgcore is parsing profiles in the wrong order somehow.

I'm currently observing from strace that initially profiles are parsed in the correct order, but then all of the make.defaults are parsed again later.

``` openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/repo_name", O_RDONLY|O_CLOEXEC) = 3 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles", {st_mode=S_IFDIR|0755, st_size=144, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/eapi", 0x7ffe95009920, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles", {st_mode=S_IFDIR|0755, st_size=144, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/thirdpartymirrors", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles", {st_mode=S_IFDIR|0755, st_size=144, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch.list", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/profiles.desc", O_RDONLY|O_CLOEXEC) = 3 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/deprecated", 0x7ffe95009c60, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arches.desc", O_RDONLY|O_CLOEXEC) = 3 readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome", 0x7ffe950091e0, 4096) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/repo_name", O_RDONLY|O_CLOEXEC) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome", {st_mode=S_IFDIR|0755, st_size=20, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/parent", {st_mode=S_IFREG|0644, st_size=43, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/parent", O_RDONLY|O_CLOEXEC) = 5 readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop", {st_mode=S_IFDIR|0755, st_size=30, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/parent", {st_mode=S_IFREG|0644, st_size=34, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/parent", O_RDONLY|O_CLOEXEC) = 5 readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1", {st_mode=S_IFDIR|0755, st_size=34, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/parent", {st_mode=S_IFREG|0644, st_size=26, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/parent", O_RDONLY|O_CLOEXEC) = 5 readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/arch/amd64", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64", {st_mode=S_IFDIR|0755, st_size=28, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/parent", {st_mode=S_IFREG|0644, st_size=17, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/parent", O_RDONLY|O_CLOEXEC) = 5 readlink("/home/ask/sources/pkgcheck_debug/profiles/base", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/base", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/base", {st_mode=S_IFDIR|0755, st_size=8, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/base/parent", 0x7ffe95009840, 0) = -1 ENOENT (No such file or directory) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux", {st_mode=S_IFDIR|0755, st_size=10, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/parent", 0x7ffe95009840, 0) = -1 ENOENT (No such file or directory) readlink("/home/ask/sources/pkgcheck_debug/profiles/arch/amd64", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64", {st_mode=S_IFDIR|0755, st_size=20, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64/parent", {st_mode=S_IFREG|0644, st_size=11, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64/parent", O_RDONLY|O_CLOEXEC) = 5 readlink("/home/ask/sources/pkgcheck_debug/profiles/base", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/base", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", {st_mode=S_IFDIR|0755, st_size=66, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/parent", 0x7ffe95009840, 0) = -1 ENOENT (No such file or directory) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome", {st_mode=S_IFDIR|0755, st_size=68, ...}, 0) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/parent", {st_mode=S_IFREG|0644, st_size=3, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/parent", O_RDONLY|O_CLOEXEC) = 5 readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", 0x7ffe95008600, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", 0x7ffe95008de0, 4096) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/base", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/base/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64", {st_mode=S_IFDIR|0755, st_size=28, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1", {st_mode=S_IFDIR|0755, st_size=34, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/parent", {st_mode=S_IFREG|0644, st_size=17, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64/parent", {st_mode=S_IFREG|0644, st_size=11, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop", {st_mode=S_IFDIR|0755, st_size=30, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/parent", {st_mode=S_IFREG|0644, st_size=26, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome", {st_mode=S_IFDIR|0755, st_size=68, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/make.defaults", {st_mode=S_IFREG|0644, st_size=22, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/package.use", {st_mode=S_IFREG|0644, st_size=29, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome", {st_mode=S_IFDIR|0755, st_size=20, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/parent", {st_mode=S_IFREG|0644, st_size=34, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/parent", {st_mode=S_IFREG|0644, st_size=3, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/make.defaults", {st_mode=S_IFREG|0644, st_size=14, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/package.use", {st_mode=S_IFREG|0644, st_size=17, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/parent", {st_mode=S_IFREG|0644, st_size=43, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/package.mask", 0x7ffe95009bc0, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles", {st_mode=S_IFDIR|0755, st_size=144, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/thirdpartymirrors", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome", 0x7ffe950091e0, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/base", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/default/linux", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/arch/amd64", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/base", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) readlink("/home/ask/sources/pkgcheck_debug/profiles/targets/desktop", 0x7ffe95008840, 4096) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/eapi", {st_mode=S_IFREG|0644, st_size=2, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/eapi", O_RDONLY|O_CLOEXEC) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/gnome/make.defaults", 0x7ffe95009520, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/desktop/make.defaults", 0x7ffe95008f80, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/17.1/make.defaults", 0x7ffe950089e0, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/amd64/make.defaults", 0x7ffe95008440, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/base/make.defaults", 0x7ffe95007ea0, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/default/linux/make.defaults", 0x7ffe95007ea0, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/arch/amd64/make.defaults", 0x7ffe95008440, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/make.defaults", {st_mode=S_IFREG|0644, st_size=22, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/make.defaults", O_RDONLY|O_CLOEXEC) = 5 newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/make.defaults", {st_mode=S_IFREG|0644, st_size=14, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/targets/desktop/gnome/make.defaults", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/use.desc", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/desc", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/package.deprecated", 0x7ffe95009a00, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/license_groups", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles", {st_mode=S_IFDIR|0755, st_size=144, ...}, 0) = 0 openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/thirdpartymirrors", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/use.local.desc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/home/ask/sources/pkgcheck_debug/profiles/desc", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory) ```
konsolebox commented 2 months ago

I'm having a similar error on my package:

RequiredUseDefaults: version 2024.07.13: profile: 'default/linux/amd64/23.0' (314 total) failed REQUIRED_USE: exactly-one-of ( ruby_single_target_ruby31 ruby_single_target_ruby32 ruby_single_target_ruby33 )

This happens even though the default value defined in <overlay_dir>/profiles/make.profile is shown to take effect when I run emerge -pvO.

I have no make.defaults file anywhere in /etc/portage/**/* if that even matters. I double-checked.