Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 877587

Summary: sys-apps/portage-3.0.38.1 BINPKG downgrade back to a stable version not possible when previously installed higher version was demoted back to unstable
Product: Portage Development Reporter: Frank Krömmelbein <kroemmelbein>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=332001
https://bugs.gentoo.org/show_bug.cgi?id=690112
https://bugs.gentoo.org/show_bug.cgi?id=152084
Whiteboard:
Package list:
Runtime testing required: ---

Description Frank Krömmelbein 2022-10-18 22:42:04 UTC
Version bump of app-misc/lirc-0.10.2 was pushed with stable keywords to the tree:
https://gitweb.gentoo.org/repo/gentoo.git/commit/app-misc/lirc/lirc-0.10.2.ebuild?id=2fc7d78983cf5f7a07262bd0a40966bbdbd18239

I build a BINPKG with this version 0.10.2 and pushed it on my network share.
Later i installed this version on my clients as BINPKG.

The stable keywords for this new version were later dropped:
"Accidentally pushed as stable I think"
https://gitweb.gentoo.org/repo/gentoo.git/commit/app-misc/lirc/lirc-0.10.2.ebuild?id=6b9c1c2de1f0b2509a7e9db1d2c4dddd1e1ffd89

I did then a downgrade back to stable version 0.10.1_p7 on my binhost.

But portage now refuses to make a downgrade on my client machine with BINPKGs:
emerge -pv1K lirc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary   R    ] app-misc/lirc-0.10.2::gentoo  USE="X devinput gtk uinput usb -audio -doc -ftdi -inputlirc -static-libs -systemd" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB

Total: 1 package (1 reinstall, 1 binary), Size of downloads: 0 KiB


If you now install lirc normally from source in this case, the downgrade works.

emerge -pv1 lirc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] app-misc/lirc-0.10.1_p7::gentoo [0.10.2::gentoo] USE="X devinput gtk uinput usb -audio -doc -ftdi -inputlirc -static-libs -systemd" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB


emerge -1pvK --update --deep --newuse @world --with-bdeps=y

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary     U  ] app-misc/lirc-0.10.2::gentoo [0.10.1_p7::gentoo] USE="X devinput gtk uinput usb -audio -doc -ftdi -inputlirc -static-libs -systemd" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB

But with the next system update, portage will reinstall the now unstable version.

Reproducible: Always
Comment 1 Frank Krömmelbein 2022-10-18 22:42:44 UTC
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r8, 5.19.14-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.19.14-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-glibc2.35
KiB Mem:    20466300 total,    541172 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 18 Oct 2022 21:49:01 +0000
Head commit of repository gentoo: 5162d61d730c69c9526266bdaebdb643ca52f1dc

Timestamp of repository steam-overlay: Mon, 17 Oct 2022 21:38:54 +0000
Head commit of repository steam-overlay: 830c701d238cd53ec5f22fcd918edccb85074977

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.8::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

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

mylocal
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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

Installed sets: @esteam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/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="-march=sandybridge -O2 -pipe"
DISTDIR="/mnt/sdb1/distfiles"
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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j4"
PKGDIR="/mnt/sdb1/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="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi activities alsa amd64 bluetooth bluray branding bzip2 cairo cdda cdr cec chm cli corefonts crypt cryptsetup css cups dav1d dbus declarative device-mapper djvu dmraid dri dts dvb dvd dvdr ebook elogind encode epub exif ffmpeg flac fortran fuse gdbm gif google gpg gphoto2 gpm gtk gui heif iconv icu idn ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc lirc lm-sensors logrotate lvm lz4 lzma lzo mad mdadm mjpeg mng mobi modemmanager mp3 mp4 mpeg mtp multilib multimedia ncurses networkmanager nfs nls nptl ntfs ogg opencl openexr opengl openmp opus pam pango pcre pdf pim pipewire plasma plymouth png policykit postscript ppds pulseaudio qml qt5 rar raw readline rtmp samba scanner screencast sdl seccomp semantic-desktop sftp share smartcard speech spell spice split-usr ssl startup-notification svg taglib test-rust thumbnail thunderbolt tiff touchpad truetype udev udf udisks unicode upower usb v4l vaapi vcd vdpau vnc vorbis vpx vulkan wayland webp widgets wifi wmf wxwidgets x264 x265 xattr xcb xfs xml xpm xv xvid xvmc yubikey zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" 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="author braindump flow karbon kexi plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 efi-32 emu pc qemu" INPUT_DEVICES="evdev joystick synaptics libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel vesa nouveau nvidia i965 radeonsi amdgpu qxl virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

sys-apps/portage-3.0.38.1::gentoo was built with the following:
USE="(ipc) native-extensions rsync-verify xattr -apidoc -build -doc -gentoo-dev (-selinux) -test" ABI_X86="(64)" PYTHON_TARGETS="python3_10 (-pypy3) (-python3_11) -python3_8 -python3_9"
FEATURES="binpkg-docompress xattr usersandbox userfetch userpriv network-sandbox ebuild-locks ipc-sandbox strict fixlafiles assume-digests unknown-features-warn unmerge-orphans multilib-strict news usersync qa-unresolved-soname-deps config-protect-if-modified binpkg-dostrip distlocks buildpkg protect-owned unmerge-logs merge-sync buildpkg-live binpkg-logs preserve-libs sandbox sfperms pid-sandbox parallel-fetch"
Comment 2 Frank Krömmelbein 2022-10-18 22:49:20 UTC
The best solution would be if "eclean packages" would in such cases delete the package with the now unstable keywords. In this case app-misc/lirc-0.10.2.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-18 22:49:52 UTC
Unfortunately, when working with binpkgs the ebuild repository isn't always treated as authoritative for such metadata. These kinds of races happen from time to time and commits like that are allowed given that generally very few people will have built packages based on them by the time the error is corrected, but I'm not sure that Portage can/should do any better here.