Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600652 - app-portage/portage-utils: qgrep ignores repo_path
Summary: app-portage/portage-utils: qgrep ignores repo_path
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 09:40 UTC by charles17
Modified: 2016-12-01 07:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =app-portage/portage-utils-0.62 (emerge --info,6.58 KB, text/plain)
2016-11-30 16:05 UTC, charles17
Details
emerge --info =app-portage/portage-utils-0.63 (emerge --info,6.58 KB, text/plain)
2016-11-30 17:50 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2016-11-24 09:40:41 UTC
$ portageq get_repo_path / gentoo
/var/portage/repos/gento


$ qgrep -N foobar
grep: chdir(/usr/portage) failed: No such file or directory
Comment 1 SpanKY gentoo-dev 2016-11-26 22:01:45 UTC
you must provide `emerge --info <pkg>` with every bug report.  verify you're using 0.63 and that it fails in the same way.  if it does, then post the output from running:
  DEBUG=1 qgrep -N foobar
Comment 2 charles17 2016-11-30 16:05:26 UTC
Created attachment 454786 [details]
emerge --info =app-portage/portage-utils-0.62
Comment 3 charles17 2016-11-30 17:50:32 UTC
Created attachment 454788 [details]
emerge --info =app-portage/portage-utils-0.63

$ DEBUG=1 qgrep -N foobar
profile //etc/make.profile/make.defaults
profile //etc/portage/make.profile/make.defaults
profile //etc/portage/make.profile/../make.defaults
profile //etc/portage/make.profile/../../make.defaults
profile //etc/portage/make.profile/../../../../../base/make.defaults
profile //etc/portage/make.profile/../../../make.defaults
profile //etc/portage/make.profile/../../../../../arch/amd64/make.defaults
profile //etc/portage/make.profile/../../../../../arch/amd64/../base/make.defaults
profile //etc/portage/make.profile/../../../../../arch/amd64/../../features/multilib/lib32/make.defaults
profile //etc/portage/make.profile/../../../../../arch/amd64/../../features/multilib/lib32/../make.defaults
profile /usr/share/portage/config/make.globals
profile /etc/make.conf
profile /etc/portage/make.conf
ROOT = /
ACCEPT_LICENSE = * -@EULA
INSTALL_MASK = 
PKG_INSTALL_MASK = 
ARCH = amd64
CONFIG_PROTECT = /etc /etc /etc /usr/share/gnupg/qualified.txt /usr/lib64/libreoffice/program/sofficerc
CONFIG_PROTECT_MASK = /etc/env.d /etc/gconf /etc/env.d /etc/gentoo-release /etc/sandbox.d /etc/fonts/fonts.conf /etc/terminfo /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild
NOCOLOR = 0
FEATURES = noman noinfo nodoc assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr webrsync-gpg
EPREFIX = /
EMERGE_LOG_DIR = /var/log
PORTDIR = /usr/portage
PORTAGE_BINHOST = http://tinderbox.dev.gentoo.org/default/linux/amd64
PORTAGE_TMPDIR = /var/tmp
PKGDIR = /usr/portage/packages
Q_VDB = /var/db/pkg
Q_EDB = /var/cache/edb
grep: chdir(/usr/portage) failed: No such file or directory
Comment 4 SpanKY gentoo-dev 2016-12-01 06:57:36 UTC
i released 0.64 a few days ago, so you should update & retest that version
Comment 5 charles17 2016-12-01 07:34:40 UTC
Version 0.64 solves it:

$ qgrep -N foobar
dev-java/asm-3.3.1-r1:EANT_EXTRA_ARGS="-Dobjectweb.ant.tasks.path=foobar"
dev-java/asm-5.0.3:EANT_EXTRA_ARGS="-Dobjectweb.ant.tasks.path=foobar -Dproduct.noshrink=true"
dev-java/asm-5.1:EANT_EXTRA_ARGS="-Dobjectweb.ant.tasks.path=foobar -Dproduct.noshrink=true"
dev-libs/botan-1.10.12: # foobared buildsystem, --prefix translates into DESTDIR, see also make
dev-libs/botan-1.10.13: # foobared buildsystem, --prefix translates into DESTDIR, see also make
dev-python/flask-security-1.7.5-r1:# tests are foobar
media-video/dvdstyler-2.9.6-r1: # rmdir: failed to remove `tempfoobar': Directory not empty
media-video/dvdstyler-3.0.2:    # rmdir: failed to remove `tempfoobar': Directory not empty