Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892832 - sys-apps/portage-3.0.44: emerge -pvuDN world silently skips tiff update
Summary: sys-apps/portage-3.0.44: emerge -pvuDN world silently skips tiff update
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-01 14:31 UTC by Pacho Ramos
Modified: 2023-02-14 16:30 UTC (History)
0 users

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


Attachments
output.xz (output.xz,434.41 KB, application/x-xz)
2023-02-14 11:42 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2023-02-01 14:31:41 UTC
I was wondering about bug 892828 and, then, I noticed I was still having an old and no longer existing in the tree version of tiff in my system:
[ebuild     U  ] media-libs/tiff-4.5.0:0/6::gentoo [4.4.0-r2:0/0::gentoo] USE="cxx jpeg lzma webp zlib zstd -jbig -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)" 0 KiB

But for some reason, emerge doesn't even suggest that a package was skipped due to issues resolving the deps:
# emerge -pvuDN world

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

Calculating dependencies... done!
Dependency resolution took 36.78 s.


Total: 0 packages, Size of downloads: 0 KiB

The same if running it with --backtrack=1000 

If I try to update media-libs/tiff I get:
# emerge -1 tiff -pv --backtrack=30

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

Calculating dependencies... done!
Dependency resolution took 30.39 s.

[ebuild     U  ] media-libs/tiff-4.5.0:0/6::gentoo [4.4.0-r2:0/0::gentoo] USE="cxx jpeg lzma webp zlib zstd -jbig -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)" 0 KiB

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

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/tiff:0

  (media-libs/tiff-4.5.0:0/6::gentoo, ebuild scheduled for merge) USE="cxx jpeg lzma webp zlib zstd -jbig -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)" pulled in by
    media-libs/tiff (Argument)

  (media-libs/tiff-4.4.0-r2:0/0::gentoo, installed) USE="cxx jpeg lzma webp zlib zstd -jbig -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)" pulled in by
    media-libs/tiff:0/0= required by (media-gfx/imagemagick-7.1.0.48-r1:0/7.1.0-43::gentoo, installed) USE="X bzip2 cxx djvu heif jpeg lcms lzma openmp pango perl png postscript raw svg tiff truetype webp wmf xml zlib -corefonts -fftw -fontconfig -fpx -graphviz -hdri -jbig -jpeg2k -lqr -opencl -openexr -q32 -q8 -static-libs -test -zip" ABI_X86="(64)"
                   ^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
    media-libs/tiff:0/0[abi_x86_32(-)] required by (app-emulation/crossover-bin-22.0.1-r1:0/0::gentoo, installed) USE="capi cups gphoto2 gsm gstreamer jpeg lcms mp3 nls openal opencl opengl pcap png scanner ssl v4l vulkan -doc -ldap -osmesa" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_10 -python3_11 -python3_9"
                   ^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    (and 32 more with the same problems)

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


The only way to break the cycle is to manually run:
emerge -1 tiff tiff-compat

But I don't understand why emerge -pvuDN world doesn't try this before exiting like nothing strange happened :/

Thanks a lot
Comment 1 Pacho Ramos gentoo-dev 2023-02-01 14:31:54 UTC
Portage 3.0.44 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-12, glibc-2.36-r5, 5.15.80-gentoo x86_64)
=================================================================
System uname: Linux-5.15.80-gentoo-x86_64-Intel-R-_Core-TM-_i5-6600_CPU_@_3.30GHz-with-glibc2.36
KiB Mem:    24511632 total,   1241340 free
KiB Swap:    8388604 total,   8365564 free
Timestamp of repository gentoo: Tue, 31 Jan 2023 00:45:01 +0000
Timestamp of repository gentoo-zh: Tue, 31 Jan 2023 06:46:53 +0000
Head commit of repository gentoo-zh: 09e4de3a3cae12b4c9f73ef643fffaf0cdd70461

Timestamp of repository guru: Tue, 31 Jan 2023 11:17:02 +0000
Head commit of repository guru: 0c537dc5ddb0c9f24b6779343eba438fd475951b

Timestamp of repository science: Tue, 31 Jan 2023 13:02:00 +0000
Head commit of repository science: eea7e875bb5154c1df595425be0b805cc72cedaf

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-lang/rust-bin:         1.66.1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252.4-r1::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-webrsync-verify-signature: no

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

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

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/cxoffice/etc/cxoffice.conf /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/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /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="-O2 -pipe -march=native -fno-stack-protector"
DISTDIR="/usr/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask-write --keep-going --autounmask=y --autounmask-keep-masks"
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 -fno-stack-protector"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache 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 -march=native -fno-stack-protector"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="es es_ES en en_US fr fr_FR"
PKGDIR="/usr/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="7z 7zip X a52 aac acl acpi alsa amd64 apache2 appindicator applet archive avahi bash-completion bluetooth bluray branding btrfs bzip2 cairo ccache cdda cddb cdr cgi chm chrome chromecast chromium cli colord context crypt cups cvs dbus dell dia djvu dot dri dts dvd dvdr dvi ebook eds emoji enchant encode epspdf equalizer ethernet evince evo excel exif fat ffmpeg firefox flac fortran fuse games gdbm gdk-pixbuf gdm gedit gif gimp git github gitlab gnome gnome-keyring gnome-online-accounts gnome-shell gnumeric google googledrive gphoto2 gpm grammar graphics gromacs gstreamer gtk gtk3 gtkstyle gui heif hfs html http humanities hwaccel ico icons iconv icu inkscape inotify introspection ios ipod irc iso jabber jpeg kate kpathsea latex lcms libass libdrm libglvnd libnotify librtmp libsecret libtirpc libv4l libvisual lm_sensors luatex lyx lz4 lzma lzo mad math matplotlib matroska media mediaplayer metapost mms mng mobi monolithic-build mp3 mp4 mpeg ms mtp multilib music musicbrainz nautilus ncurses network network-cron networkmanager nls nptl ntfs ntp numa offensive ogg opengl openmp openvpn optimized-qmake opus pam pango pdf pdfannotextractor pdfimport php pipelight png policykit postscript ppapi ppds pptx projectm proprietary-codecs pstricks publishers pulseaudio qt5 rar raw rcs rdp readline reiserfs rtf rtmp scanner science sdl seccomp sendto sftp smp sna snmp sound spell split-usr squashfs ssh ssl startup-notification subtitles svg sysprof systemd t1lib tcpd test-rust tex4ht theora thesaurus threads tiff totem tracker truetype udev udf udisks unicode update_drivedb upnp upnp-av upower usb user-session v4l vaapi vala vcd vdpau vimeo visio vlc vnc vorbis vpx vulkan wayland webp wifi wma wmf wpg wxwidgets x264 x265 xattr xcb xetex xfs xft xindy xml xmp xmpp xpm xps xv xvid xz youtube zeroconf zlib zotero zstd" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" 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="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 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" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="es es-ES en en-US fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel i965" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, MAKEOPTS, 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
Comment 2 Pacho Ramos gentoo-dev 2023-02-10 10:13:00 UTC
I am still keeping the "broken" system for testing purposes... but if I could save some info and finally workaround the problem (by manually doing emerge -1 tiff tiff-compat) it would be nice. Which kind of info do you need for debugging purposes? A /var/db tarball? 

Thanks
Comment 3 Pacho Ramos gentoo-dev 2023-02-14 11:42:00 UTC
Created attachment 851094 [details]
output.xz

emerge -pvuDN --debug world output
Comment 4 Pacho Ramos gentoo-dev 2023-02-14 11:47:04 UTC
It works with --changed-deps... I am trying to find the culprit now... but at least the problem was found! :D
Comment 5 Pacho Ramos gentoo-dev 2023-02-14 16:19:08 UTC
No, it seems it was transient as I made --sync in the morning but didn't update. Then --changed-deps was pulling newer tiff... but after updating the system, --changed-deps neither pulls it in.

Masking old tiff versions also workaround the issue... but I still fail to see why in some systems update works normally while on others, portage thinks that keeping the old (and no longer existant) version is better