Summary: | sys-apps/portage: tracebacks with failure to verify binpkg because no key or package invalid | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Greg Kubaryk <greg.kubaryk> |
Component: | Binary packages support | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=921208 https://github.com/gentoo/portage/pull/1228 https://bugs.gentoo.org/show_bug.cgi?id=927632 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 921177 | ||
Bug Blocks: |
Description
Greg Kubaryk
2024-01-04 04:43:06 UTC
# emerge --info Portage 3.0.60_p1 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r8, 6.6.4 x86_64) ================================================================= System uname: Linux-6.6.4-x86_64-AMD_Ryzen_7_4700U_with_Radeon_Graphics-with-glibc2.38 KiB Mem: 15737444 total, 2446472 free KiB Swap: 33554428 total, 32203004 free Timestamp of repository gentoo: Tue, 02 Jan 2024 02:00:01 +0000 Head commit of repository gentoo: 67c60aae7d5b24092f451eea77ca14ed7429daab Timestamp of repository trolltoo: Tue, 26 Dec 2023 14:18:12 +0000 Head commit of repository trolltoo: 045e7f611aa9e8ea3de97ded896f73ff02d87d20 sh bash 5.2_p21-r1 ld GNU ld (Gentoo 2.41 p4) 2.41.0 ccache version 4.8.3 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p21-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.11.7::gentoo, 3.12.1_p1::gentoo dev-lang/rust-bin: 1.74.1::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.28.1::gentoo dev-util/meson: 1.3.1::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/openrc: 0.52.1::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r3::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 17.0.6::gentoo sys-devel/gcc: 13.2.1_p20231216::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 17.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://192.168.1.151/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-metamanifest: no sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 meow location: /var/db/repos/meow masters: gentoo volatile: True trolltoo location: /var/db/repos/trolltoo sync-type: git sync-uri: https://github.com/gentoo-mirror/trolltoo.git masters: gentoo volatile: False Binary Repositories: purr sync-uri: http://192.168.5.55:8080 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" 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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--verbose-slot-rebuilds=n" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME" FCFLAGS="-O2 -pipe -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg buildpkg-live config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="[snip] http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j8" PKGDIR="/var/cache/binpkgs" 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" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sixel sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS (In reply to Greg Kubaryk from comment #0) > !!! Invalid binary package: > '/var/cache/binpkgs/app-shells/bash/bash-5.2_p21-r1-6.gpkg.tar.partial', GPG > verify failed > [ERROR] Exception in callback AsynchronousTask._exit_listener_cb(<bound > method...7f64b38e7120>>) > handle: <Handle AsynchronousTask._exit_listener_cb(<bound > method...7f64b38e7120>>)> > Traceback (most recent call last): > File "/usr/lib/python3.11/site-packages/portage/dbapi/bintree.py", line > 2184, in getname_build_id > cpv.cp > AttributeError: 'NoneType' object has no attribute 'cp' I'll send a PR for this pretty soon. We need handling in Binpkg (above), BinpkgPrefetcher, and also in Scheduler _run_pkg_pretend like I said in bug 921208 comment #7. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=0ff49114cec79edce723da1190087a41699f6b2f commit 0ff49114cec79edce723da1190087a41699f6b2f Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2024-01-04 05:12:24 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2024-01-04 06:13:25 +0000 binarytree: Handle inject failures Capture stdout and stderr for logging purposes during binarytree inject calls, and use the inject return value to report success or failure. For failures prior to pkg_pretend, use an eerror/elog message to indicate that the binary package is not usable. Move corresponding elog_process call to a finally block so that it is called for all pkg_pretend failures. Bug: https://bugs.gentoo.org/921327 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/_emerge/Binpkg.py | 34 ++++++++++++++++++++++++++++++---- lib/_emerge/BinpkgPrefetcher.py | 36 +++++++++++++++++++++++++++++------- lib/_emerge/Scheduler.py | 36 +++++++++++++++++++++++------------- 3 files changed, 82 insertions(+), 24 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b37b3b5340a35656651134154b193dbda7cf13c6 commit b37b3b5340a35656651134154b193dbda7cf13c6 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-05 08:23:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-05 08:23:30 +0000 sys-apps/portage: add 3.0.61 Note that bug #921208 is only partly fixed but I wanted to get these fixes out, in part because we've got more people trying binpkgs right now with the binhost announcement. Bug: https://bugs.gentoo.org/921208 Closes: https://bugs.gentoo.org/921177 Closes: https://bugs.gentoo.org/920180 Closes: https://bugs.gentoo.org/921181 Closes: https://bugs.gentoo.org/921327 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.61.ebuild | 246 +++++++++++++++++++++++++++++++++ 2 files changed, 247 insertions(+) |