qdepends fails to find dependencies on media-libs/gegl: $ q depends -vQ gegl $ equery depends gegl * These packages depend on gegl: media-gfx/gimp-2.10.6-r1 (>=media-libs/gegl-0.4.8:0.4[cairo]) media-libs/libmypaint-1.3.0 (gegl ? media-libs/gegl:0.3[introspection?]) Traceback (most recent call last): File "/usr/lib/python-exec/pypy/equery", line 38, in <module> File "/usr/lib64/pypy/site-packages/gentoolkit/equery/__init__.py", line 357, in main File "/usr/lib64/pypy/site-packages/gentoolkit/equery/depends.py", line 201, in main File "/usr/lib64/pypy/site-packages/gentoolkit/dependencies.py", line 244, in graph_reverse_depends File "/usr/lib64/pypy/site-packages/gentoolkit/dependencies.py", line 110, in get_all_depends File "/usr/lib64/pypy/site-packages/gentoolkit/dependencies.py", line 73, in environment File "/usr/lib64/pypy/site-packages/portage/dbapi/porttree.py", line 620, in aux_get File "/usr/lib64/pypy/site-packages/portage/dbapi/porttree.py", line 708, in async_aux_get File "/usr/lib64/pypy/site-packages/_emerge/AsynchronousTask.py", line 30, in start File "/usr/lib64/pypy/site-packages/_emerge/EbuildMetadataPhase.py", line 41, in _start IOError: [Errno 24] Too many open files: '/var/cache/portage/gentoo/virtual/perl-Unicode-Normalize/perl-Unicode-Normalize-1.250.0-r3.ebuild' (equery has other issues, which are not in the scope of this bug report.) Portage 2.3.51 (python 2.7.13-final-42, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.2.0, glibc-2.27-r6, 4.18.11-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.18.11-gentoo-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.6 KiB Mem: 15258936 total, 390148 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 12 Oct 2018 06:45:01 +0000 Head commit of repository gentoo: 6dfa967355514d69ad26456bee0c0a5bdf2e8ea0 Head commit of repository flatpak-overlay: c53e0b55cb8753486a98c0ddf7b63f20e2e6be78 Timestamp of repository gnome: Thu, 11 Oct 2018 18:09:55 +0000 Head commit of repository gnome: 31e3759142a46f2d908ca4f68bedda2fbd35ba88 Timestamp of repository steam-overlay: Wed, 10 Oct 2018 22:23:47 +0000 Head commit of repository steam-overlay: a63272439c1aeda1a5202effcdd8104f875560d1 Head commit of repository local: 97d26f4487412e1d19f079607d7ca2ad1dc2326f sh bash 4.4_p23 ld GNU ld (Gentoo 2.31.1 p3) 2.31.1 ccache version 3.4.3 [disabled] app-shells/bash: 4.4_p23::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo dev-util/ccache: 3.4.3::gentoo dev-util/cmake: 3.12.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.31.1-r1::gentoo sys-devel/gcc: 8.2.0-r3::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r6::gentoo Repositories: gentoo location: /var/cache/portage/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes flatpak-overlay location: /var/db/repos/flatpak-overlay sync-type: git sync-uri: https://github.com/fosero/flatpak-overlay.git masters: gentoo gnome location: /var/db/repos/gnome sync-type: git sync-uri: https://github.com/gentoo-mirror/gnome.git masters: gentoo steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo local location: /var/cache/portage/local sync-type: git sync-uri: https://github.com/devurandom/gentoo-overlay.git masters: gentoo gnome priority: 1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -O2 -march=znver1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-pipe -O2 -march=znver1" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going --nospinner --verbose-conflicts" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j6 -l4" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bash-completion bdplus berkdb bluetooth bluray branding bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli colord colorio conntrack crypt cups cxx d3d9 dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr editorconfig egl elf emboss encode epub exif fam fax fbcon ffmpeg fftw firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gbm gdbm geoclue geolocation gif git glamor gles gmp google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 harfbuzz hdf5 http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms ldap libatomic libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm_sensors lv2 lvm lz4 lzma lzo mad markdown mbim mercurial metis mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nls nptl office ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman plasma png policykit postscript ppds prison pulseaudio python qml qt5 raw readline redfish samba sasl scanner schroedinger sctp sdl sdl2 seccomp semantic-desktop share snappy sparse speech speex spell ssl startup-notification steamruntime stemmer svg systemd tbb tcpd teamd telepathy tga theora threads tiff timezone truetype tslib udev udisks unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webp widgets wmf wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xz yaml zeroconf zeromq zlib zstd" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF" LUA_TARGET="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby23" STEAMGAMES="dirt_rally dont_starve portal source_engine te120 trine2 witcher2" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-portage/portage-utils-0.73::gentoo was built with the following: USE="nls -static" ABI_X86="(64)"
Hi, qdepends is documented to be limited to installed packages only. Do you have gimp and libmypaint installed?
(In reply to Fabian Groffen from comment #1) > Hi, qdepends is documented to be limited to installed packages only. Do you > have gimp and libmypaint installed? Yes. equery has the same limitation (you need an additional switch to also search for not-installed packages).
Does `qdepends -vaQ gegl` return what you'd expect? I think the problem is that q doesn't expand constructs like DEPEND=${RDEPEND}. gegl is in RDEPEND for gimp, and only in DEPEND due to reference of ${RDEPEND}.
(In reply to Fabian Groffen from comment #3) > Does `qdepends -vaQ gegl` return what you'd expect? I think the problem is > that q doesn't expand constructs like DEPEND=${RDEPEND}. gegl is in RDEPEND > for gimp, and only in DEPEND due to reference of ${RDEPEND}. $ q depends -avQ gegl * DEPEND * RDEPEND * PDEPEND
hmm, that doesn't look very good
think I found what the problem is, now I need to find a way to fix that :)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d7cf583b6be5b29e5607fe0d90b8f566baf65f34 commit d7cf583b6be5b29e5607fe0d90b8f566baf65f34 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-10-26 13:49:05 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-10-26 13:49:05 +0000 depends: fix matching atoms for bug #668418 atoms in dependency strings can contain built-with-use declarations in bracket notation, so ensure we ignore that when feeding this into atom_explode. Bug: https://bugs.gentoo.org/668418 qatom.c | 3 ++- qdepends.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-)
Hmmm, I dunno if I have the same problem, but the patch didn't resolve the problem: plasma ~ # qdepends -Qav ruby plasma ~ # qdepends -av ruby * DEPEND dev-lang/ruby-2.4.5: sys-libs/db:6.0/6.0= sys-libs/gdbm:0/6= dev-libs/openssl:0/1.1= dev-libs/libyaml virtual/libffi:0/7= sys-libs/zlib >=app-eselect/eselect-ruby-20161226 !<dev-ruby/rdoc-3.9.4 !<dev-ruby/rubygems-1.8.10-r1 dev-lang/ruby-2.3.8: sys-libs/db:6.0/6.0= sys-libs/gdbm:0/6= dev-libs/openssl:0/0= sys-libs/ncurses:0/6= sys-libs/readline:0/7= dev-libs/libyaml virtual/libffi:0/7= sys-libs/zlib >=app-eselect/eselect-ruby-20151229 !<dev-ruby/rdoc-3.9.4 !<dev-ruby/rubygems-1.8.10-r1 >=app-portage/elt-patches-20170815 !<sys-devel/gettext-0.18.1.1-r3 >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 * RDEPEND dev-lang/ruby-2.4.5: sys-libs/db:6.0/6.0= sys-libs/gdbm:0/6= dev-libs/openssl:0/1.1= dev-libs/libyaml virtual/libffi:0/7= sys-libs/zlib >=app-eselect/eselect-ruby-20161226 !<dev-ruby/rdoc-3.9.4 !<dev-ruby/rubygems-1.8.10-r1 dev-lang/ruby-2.3.8: sys-libs/db:6.0/6.0= sys-libs/gdbm:0/6= dev-libs/openssl:0/0= sys-libs/ncurses:0/6= sys-libs/readline:0/7= dev-libs/libyaml virtual/libffi:0/7= sys-libs/zlib >=app-eselect/eselect-ruby-20151229 !<dev-ruby/rdoc-3.9.4 !<dev-ruby/rubygems-1.8.10-r1 * PDEPEND dev-lang/ruby-2.4.5: >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24] >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24] >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24] >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24] >=dev-ruby/rake-12.0.0[ruby_targets_ruby24] >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24] >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24] virtual/rubygems[ruby_targets_ruby24] >=dev-ruby/json-2.0.2[ruby_targets_ruby24] >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] dev-lang/ruby-2.3.8: >=dev-ruby/did_you_mean-1.0.0:1[ruby_targets_ruby23] >=dev-ruby/minitest-5.8.3[ruby_targets_ruby23] >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby23] >=dev-ruby/power_assert-0.2.6[ruby_targets_ruby23] >=dev-ruby/rake-10.4.2[ruby_targets_ruby23] >=dev-ruby/test-unit-3.1.5[ruby_targets_ruby23] virtual/rubygems[ruby_targets_ruby23] >=dev-ruby/json-1.8.3[ruby_targets_ruby23] >=dev-ruby/rdoc-4.2.1[ruby_targets_ruby23] plasma ~ # equery depends ruby * These packages depend on ruby: app-mobilephone/obexftp-0.24.2 (ruby ? dev-lang/ruby:2.3) (ruby ? dev-lang/ruby:2.4) (ruby ? dev-lang/ruby:2.5) app-text/docbook-xsl-stylesheets-1.79.1-r2 (ruby ? dev-lang/ruby:2.3) (ruby ? dev-lang/ruby:2.4) (ruby ? dev-lang/ruby:2.5) dev-ruby/did_you_mean-1.0.2 (ruby_targets_ruby23 ? dev-lang/ruby:2.3) dev-ruby/did_you_mean-1.1.2 (ruby_targets_ruby24 ? dev-lang/ruby:2.4) ... Literally no output from a reverse dependency, output from a fowrard dependency though, so I imagine the hooks are working. Happy to run any tests that might help... 5:)
hmmm,I can confirm that for did_you_mean
One problem in your scenario is that -Qav will search for av.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=2e83b5bd31ee989b79fbed7d2a9882f98c2771a5 commit 2e83b5bd31ee989b79fbed7d2a9882f98c2771a5 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-11-20 14:24:33 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-11-20 14:24:33 +0000 qdepends: match reverse deps without SLOT if not given Continuation of bug #668418, atom_compare is strict about SLOT matches. Bug: https://bugs.gentoo.org/668418 Signed-off-by: Fabian Groffen <grobian@gentoo.org> qdepends.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
My bad, even without the av (just -Q) it still gave no output. I can confirm that with both patches applied I'm now getting results: $ qdepends -Q ruby virtual/rubygems-14 dev-ruby/minitest-5.11.3 dev-ruby/did_you_mean-1.1.2 dev-ruby/test-unit-3.2.8 dev-ruby/power_assert-1.1.3 dev-ruby/net-telnet-0.2.0 dev-ruby/rubygems-2.7.8 dev-ruby/xmlrpc-0.3.0 dev-ruby/did_you_mean-1.0.2 dev-ruby/kpeg-1.1.0-r1 dev-ruby/rake-12.3.1 net-libs/webkit-gtk-2.22.2 Thanks for getting it sorted! 5:)
thanks for testing, hope to make a new release soon
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eff6c805c75168da858bbdd46a76e90fecccb563 commit eff6c805c75168da858bbdd46a76e90fecccb563 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-12-21 14:52:44 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-12-21 14:53:14 +0000 app-portage/portage-utils: version bump to v0.74 Closes: https://bugs.gentoo.org/672764 Closes: https://bugs.gentoo.org/672098 Closes: https://bugs.gentoo.org/668418 Closes: https://bugs.gentoo.org/662802 Closes: https://bugs.gentoo.org/656318 Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 app-portage/portage-utils/Manifest | 2 +- .../{portage-utils-0.72.ebuild => portage-utils-0.74.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)