Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740120 - app-portage/portpeek-3.1.4: runtime failure
Summary: app-portage/portpeek-3.1.4: runtime failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-03 01:00 UTC by CaptainBlood
Modified: 2020-09-04 22:27 UTC (History)
0 users

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


Attachments
/etc/portage/package.env directory tar file (package.env.tar,184.50 KB, application/x-tar)
2020-09-03 16:30 UTC, CaptainBlood
Details
portpeek -ard>/home/luc/portpeek.out 2>&1 (portpeek.out.xz,76.91 KB, application/x-xz)
2020-09-03 18:41 UTC, CaptainBlood
Details
portpeek with fix (portpeek,67.42 KB, text/x-python)
2020-09-03 20:56 UTC, Mike Pagano
Details
python /home/luc/Downloads/gentoo/portage/portpeek/test/portpeek.py -ar>/home/luc/portpeek-test-ar-out.txt 2>&1 (portpeek-test-ar-out.txt.xz,2.91 KB, application/x-xz)
2020-09-03 21:57 UTC, CaptainBlood
Details
python /home/luc/Downloads/gentoo/portage/portpeek/test/portpeek.py -ard>/home/luc/portpeek-test-ard-out.txt 2>&1 (portpeek-test-ard-out.txt.xz,77.16 KB, application/x-xz)
2020-09-03 21:58 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2020-09-03 01:00:02 UTC
emerge --info  portpeek
--- Invalid atom in /var/db/repos/go-overlay/profiles/package.mask: Slot deps are not allowed in EAPI 0: 'dev-lang/go:stable'
 * Failed to change nice value to '-10'
 * [Errno 1] Operation not permitted

Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.31-r6, 5.8.5-gentoo-classic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.8.5-gentoo-classic-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-gentoo-2.7
KiB Mem:     3939312 total,    347980 free
KiB Swap:    8048528 total,   7672780 free
Timestamp of repository audio-overlay: Wed, 02 Sep 2020 11:07:19 +0000
Head commit of repository audio-overlay: 8db26969b73dc6849941feb1f09101d21ef818f9

Timestamp of repository bobwya: Wed, 02 Sep 2020 11:06:34 +0000
Head commit of repository bobwya: 4f84ae40d320bb1fa6bef8c1d5ee31cafff35fc9

Timestamp of repository calculate: Wed, 02 Sep 2020 11:06:34 +0000
Head commit of repository calculate: 9c90daa31a7eed203743fc3877fd23d3ea77d363

Timestamp of repository go-overlay: Wed, 02 Sep 2020 11:07:02 +0000
Head commit of repository go-overlay: ddda5b60705e6c2bcc07c05e429bb7cabb499bcc

Timestamp of repository linxon: Wed, 02 Sep 2020 11:07:20 +0000
Head commit of repository linxon: 3eabab6df317f5f31e534c8021572da865c68e0e

Timestamp of repository pentoo: Wed, 02 Sep 2020 19:05:24 +0000
Head commit of repository pentoo: 5b9c98bcb768e1ee30fb8741a351e39f9816701d

Timestamp of repository raiagent: Wed, 02 Sep 2020 11:06:50 +0000
Head commit of repository raiagent: 979a43ac5f36fc7c1d0c7e06cc29c5300144f724

Timestamp of repository rukruk: Wed, 02 Sep 2020 11:07:10 +0000
Head commit of repository rukruk: aa3b048e63182c544fee22edc9f6d30fdbda3dbf

Timestamp of repository seden: Wed, 02 Sep 2020 11:06:54 +0000
Head commit of repository seden: b466ce5cd76d056cd1a79855f6e056f3d364b2e6

Head commit of repository smoverlay: 01a4b5763a6cd79016a3230f5820b224f011a44f

Timestamp of repository thegreatmcpain: Wed, 02 Sep 2020 21:05:19 +0000
Head commit of repository thegreatmcpain: b2a37d5cfe486e25c0e66e65dcefbf2a645f1456

Timestamp of repository waebbl: Wed, 02 Sep 2020 11:07:22 +0000
Head commit of repository waebbl: ed1da662b3137a911edb1608cd2072fa3c24ab6f

Timestamp of repository gentoo: Thu, 03 Sep 2020 00:00:01 +0000
Head commit of repository gentoo: 584d7f6ddc60a5e28c2be6ef94b6d8c665d20c45
Timestamp of repository ricerlay: Wed, 02 Sep 2020 11:07:31 +0000
Head commit of repository ricerlay: eea68f666be2e3a2cb939770ab884e0404d2888b

sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo, 10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

audio-overlay
    location: /var/db/repos/audio-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/audio-overlay.git
    masters: gentoo
    priority: -10001

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo
    priority: -10001

calculate
    location: /var/db/repos/calculate
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/calculate.git
    masters: gentoo
    priority: -10001

go-overlay
    location: /var/db/repos/go-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/go-overlay.git
    masters: gentoo
    priority: -10001

linxon
    location: /var/db/repos/linxon
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/linxon.git
    masters: gentoo
    priority: -10001

pdm-bashtop
    location: /var/lib/layman/pdm-bashtop
    sync-type: laymansync
    sync-uri: https://gitlab.com/gentoo-pdm/sys-process/bashtop/pdm-bashtop.git
    masters: gentoo
    priority: -10001

pdm-screenkey
    location: /var/lib/layman/pdm-screenkey
    sync-type: laymansync
    sync-uri: https://gitlab.com/gentoo-pdm/x11-misc/screenkey/pdm-screenkey.git
    masters: gentoo
    priority: -10001

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    priority: -10001

raiagent
    location: /var/db/repos/raiagent
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/raiagent.git
    masters: gentoo
    priority: -10001

rukruk
    location: /var/db/repos/rukruk
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/rukruk.git
    masters: gentoo
    priority: -10001

seden
    location: /var/db/repos/seden
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/seden.git
    masters: gentoo
    priority: -10001

smoverlay
    location: /var/db/repos/smoverlay
    sync-type: git
    sync-uri: https://git.s-morozov.net/gentoo-overlays/smoverlay.git
    masters: gentoo
    priority: -10001

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/thegreatmcpain.git
    masters: gentoo bobwya
    priority: -10001

waebbl
    location: /var/db/repos/waebbl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/waebbl.git
    masters: gentoo raiagent
    priority: -10001

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

ricerlay
    location: /var/db/repos/ricerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ricerlay.git
    masters: gentoo

das-labor
    location: /var/lib/layman/das-labor
    sync-type: laymansync
    sync-uri: https://github.com/das-labor/overlay.git
    masters: gentoo
    priority: 50

gnu-elpa
    location: /var/lib/layman/gnu-elpa
    sync-type: laymansync
    sync-uri: gs-elpa gnu-elpa
    masters: gentoo
    priority: 50

melpa
    location: /var/lib/layman/melpa
    sync-type: laymansync
    sync-uri: gs-elpa melpa
    masters: gnu-elpa gentoo
    priority: 50

vayerx
    location: /var/lib/layman/vayerx
    sync-type: laymansync
    sync-uri: https://github.com/vayerx/vayerx-gentoo.git
    masters: gentoo
    priority: 50

local-repo
    location: /var/db/repos/local-repo
    masters: gentoo
    priority: 10000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native   -O2             -pipe    "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native   -O2             -pipe        "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert y 			--alphabetical 			--ask-enter-invalid 			--autounmask y  			--autounmask-only n  			--autounmask-unrestricted-atoms y  			--autounmask-write y 			--misspell-suggestions n 			--noconfmem 			--nospinner   			--tree 			--with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-march=native -mtune=native   -O2             -pipe    "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=native -mtune=native   -O2             -pipe    "
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org/ https://mirrors.evowise.com/gentoo/ http://mirror.dkm.cz/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://gentoo.mirror.web4u.cz/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j3 -l3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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="/var/tmp"
USE="amd64 asm libglvnd minimal split-usr" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" PHP_TARGETS="php7-4" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 iris"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-portage/portpeek-3.1.4::gentoo was built with the following:
USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_7 -python3_8"


Reproducible: Always

Steps to Reproduce:
1. portpeek -ar
Actual Results:  
package.env:

cross-aarch64-unknown-linux-gnu/binutils: Not Installed : /etc/portage/package.env/cross-aarch64-unknown-linux-gnu

cross-aarch64-unknown-linux-gnu/gcc: Not Installed : /etc/portage/package.env/cross-aarch64-unknown-linux-gnu

cross-aarch64-unknown-linux-gnu/linux-headers: Not Installed : /etc/portage/package.env/cross-aarch64-unknown-linux-gnu

cross-aarch64-unknown-linux-gnu/glibc: Not Installed : /etc/portage/package.env/cross-aarch64-unknown-linux-gnu

cross-aarch64-unknown-linux-gnu/gdb: Not Installed : /etc/portage/package.env/cross-aarch64-unknown-linux-gnu
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/portpeek", line 1696, in <module>
    get_recursive_info(USER_CONFIG_PATH + "/package.env")
  File "/usr/lib/python-exec/python3.7/portpeek", line 490, in get_recursive_info
    get_recursive_info(filename + os.path.sep + file_name)
  File "/usr/lib/python-exec/python3.7/portpeek", line 492, in get_recursive_info
    get_info(filename)
  File "/usr/lib/python-exec/python3.7/portpeek", line 524, in get_info
    diffs_found = parse_line(line, filename)
  File "/usr/lib/python-exec/python3.7/portpeek", line 223, in parse_line
    package_exists = portage.portdb.xmatch("match-all", fields[0])
  File "/usr/lib/python3.7/site-packages/portage/dbapi/porttree.py", line 1089, in xmatch
    self.async_xmatch(level, origdep, loop=loop))
  File "/usr/lib/python3.7/site-packages/portage/util/_eventloop/EventLoop.py", line 803, in run_until_complete
    return future.result()
  File "/usr/lib/python3.7/site-packages/portage/util/futures/compat_coroutine.py", line 120, in _next
    future = next(self._generator)
  File "/usr/lib/python3.7/site-packages/portage/dbapi/porttree.py", line 1108, in async_xmatch
    mydep = dep_expand(origdep, mydb=self, settings=self.settings)
  File "/usr/lib/python3.7/site-packages/portage/dbapi/dep_expand.py", line 33, in dep_expand
    mydep = Atom(mydep, allow_repo=True)
  File "/usr/lib/python3.7/site-packages/portage/dep/__init__.py", line 1314, in __init__
    raise InvalidAtom(self)
portage.exception.InvalidAtom: /*
Comment 1 CaptainBlood 2020-09-03 01:37:54 UTC
All 3.x versions available have runtime issues here.
Comment 2 Mike Pagano gentoo-dev 2020-09-03 11:47:09 UTC
please attach package.env
Comment 3 CaptainBlood 2020-09-03 16:30:19 UTC
Created attachment 658112 [details]
/etc/portage/package.env directory tar file
Comment 4 Mike Pagano gentoo-dev 2020-09-03 18:20:05 UTC
Could you also attach the output of

portpeek -ard
Comment 5 CaptainBlood 2020-09-03 18:41:51 UTC
Created attachment 658198 [details]
portpeek -ard>/home/luc/portpeek.out 2>&1
Comment 6 Mike Pagano gentoo-dev 2020-09-03 20:34:12 UTC
(In reply to CaptainBlood from comment #5)
> Created attachment 658198 [details]
> portpeek -ard>/home/luc/portpeek.out 2>&1

thanks, that should be all I need.
Comment 7 CaptainBlood 2020-09-03 20:38:09 UTC
(In reply to Mike Pagano from comment #6)
> (In reply to CaptainBlood from comment #5)
> > Created attachment 658198 [details]
> > portpeek -ard>/home/luc/portpeek.out 2>&1
> 
> thanks, that should be all I need.

You're welcome.
Comment 8 Mike Pagano gentoo-dev 2020-09-03 20:56:57 UTC
Created attachment 658216 [details]
portpeek with fix

Can you test with this script ?
Comment 9 CaptainBlood 2020-09-03 21:53:55 UTC
eselect python list 
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python3.8
  [4]   python2.7

ls /home/user/Downloads/gentoo/portage/portpeek/test/portpeek.py
/home/user/Downloads/gentoo/portage/portpeek/test/portpeek.py

Both commands below are working fine:
amd64 ~ # python /home/luc/Downloads/gentoo/portage/portpeek/test/portpeek.py -ar>/home/luc/portpeek-test-ar-out.txt 2>&1
python /home/luc/Downloads/gentoo/portage/portpeek/test/portpeek.py -ard>/home/luc/portpeek-test-ard-out.txt 2>&1
Comment 10 CaptainBlood 2020-09-03 21:57:46 UTC
Created attachment 658226 [details]
python /home/luc/Downloads/gentoo/portage/portpeek/test/portpeek.py -ar>/home/luc/portpeek-test-ar-out.txt 2>&1
Comment 11 CaptainBlood 2020-09-03 21:58:48 UTC
Created attachment 658228 [details]
python /home/luc/Downloads/gentoo/portage/portpeek/test/portpeek.py -ard>/home/luc/portpeek-test-ard-out.txt 2>&1
Comment 12 Larry the Git Cow gentoo-dev 2020-09-03 22:26:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=369d298b75f216a1a593cdf7ff910ff710ea69bc

commit 369d298b75f216a1a593cdf7ff910ff710ea69bc
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2020-09-03 22:26:40 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2020-09-03 22:26:49 +0000

    app-portage/portpeek: Fix handling of */*
    
    Thanks to CaptainBlood for reporting
    
    Closes: https://bugs.gentoo.org/740120
    Package-Manager: Portage-3.0.4, Repoman-2.3.23
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 app-portage/portpeek/Manifest              |  1 +
 app-portage/portpeek/portpeek-3.1.5.ebuild | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
Comment 13 CaptainBlood 2020-09-03 22:34:56 UTC
Thks 4 quick publishing.
Comment 14 Mike Pagano gentoo-dev 2020-09-04 22:27:48 UTC
(In reply to CaptainBlood from comment #13)
> Thks 4 quick publishing.

Your welcome. Thanks for reporting and providing all the files and testing super quick. It make it easy.