Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632223 - gentoolkit in Gentoo Prefix - equery fails to execute
Summary: gentoolkit in Gentoo Prefix - equery fails to execute
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-28 11:43 UTC by Lagu
Modified: 2021-01-07 15:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2017-09-28 11:43:47 UTC
Hi all, well i install a prefix this night, i use Gentoo 64, then i install the gentoolkit package to use equery, but execute it fails:

equery y ffmpeg
Traceback (most recent call last):
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python-exec/python3.5/equery", line 38, in <module>
    equery.main(sys.argv)
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/equery/__init__.py", line 355, in main
    expanded_module_name, globals(), locals(), [], 1
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/equery/keywords.py", line 5, in <module>
    from gentoolkit.eshowkw import main as emain
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/eshowkw/__init__.py", line 16, in <module>
    from gentoolkit.eshowkw.keywords_header import keywords_header
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/eshowkw/keywords_header.py", line 87, in <module>
    class keywords_header:
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/eshowkw/keywords_header.py", line 88, in keywords_header
    __IMPARCHS = gen_arch_list("stable")
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/eshowkw/keywords_header.py", line 77, in gen_arch_list
    _arch_status = load_profile_data()
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/gentoolkit/eshowkw/keywords_header.py", line 31, in load_profile_data
    portdir = portage.db[portage.root]['vartree'].settings.repositories[repo].location
  File "/home/pipe/Documentos/prefix/ffmpeg-old/usr/lib/python3.5/site-packages/portage/repository/config.py", line 915, in __getitem__
    return self.prepos[repo_name]
KeyError: 'gentoo'



Emerge Info:

Portage 2.3.10-prefix (python 3.5.2-final-0, prefix/linux/amd64, gcc-5.3.0, unavailable, 4.9.50-minipli-unofficial+grsec x86_64)
=================================================================
System uname: Linux-4.9.50-minipli-unofficial+grsec-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.3
KiB Mem:     8049828 total,   1053856 free
KiB Swap:   20478656 total,  20478656 free
Timestamp of repository gentoo_prefix: Thu, 28 Sep 2017 00:57:04 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo_prefix
dev-lang/perl:            5.24.3::gentoo_prefix
dev-lang/python:          2.7.12::gentoo_prefix, 3.5.2::gentoo_prefix
dev-util/pkgconfig:       0.29.1::gentoo_prefix
sys-devel/autoconf:       2.69-r4::gentoo_prefix
sys-devel/automake:       1.14.1-r1::gentoo_prefix, 1.15.1-r1::gentoo_prefix
sys-devel/binutils:       2.28.1::gentoo_prefix
sys-devel/gcc:            5.3.0::gentoo_prefix
sys-devel/gcc-config:     1.8-r01.1::gentoo_prefix
sys-devel/libtool:        2.4.6-r4::gentoo_prefix
sys-devel/make:           4.2.1-r1::gentoo_prefix
sys-kernel/linux-headers: 4.13::gentoo_prefix (virtual/os-headers)
Repositories:

gentoo_prefix
    location: /home/pipe/Documentos/prefix/ffmpeg-old/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -O2 -pipe"
DISTDIR="/home/pipe/Documentos/prefix/ffmpeg-old/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/home/pipe/Documentos/prefix/ffmpeg-old/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/pipe/Documentos/prefix/ffmpeg-old/"
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="/home/pipe/Documentos/prefix/ffmpeg-old/var/tmp"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix prefix-guest readline seccomp session ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Thx. Cya.
Comment 1 Fabian Groffen gentoo-dev 2021-01-06 20:41:05 UTC
Yes, this is because they default to "gentoo", wheras for prefix it is "gentoo_prefix".
Comment 2 Larry the Git Cow gentoo-dev 2021-01-07 15:41:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31145b96664db74c1e0069d8006a2cfed1fd371e

commit 31145b96664db74c1e0069d8006a2cfed1fd371e
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-01-07 15:41:06 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-01-07 15:41:06 +0000

    app-portage/gentoolkit: fix default repo for Prefix, #632223
    
    Closes: https://bugs.gentoo.org/632223
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild | 7 +++++++
 app-portage/gentoolkit/gentoolkit-9999.ebuild     | 9 ++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)