Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701888 - --pretend and --fetchonly combined cause a dependency calculation error: The following REQUIRED_USE flag constraints are unsatisfied: ...
Summary: --pretend and --fetchonly combined cause a dependency calculation error: The ...
Status: RESOLVED DUPLICATE of bug 675748
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage team
Depends on:
Blocks: 377365
  Show dependency tree
Reported: 2019-12-03 14:35 UTC by Patrick Fourniols
Modified: 2023-01-10 12:38 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Fourniols 2019-12-03 14:35:33 UTC
emerge -f or -F works well and adding pretend not?

machin ~ # emerge -f portage
Calculating dependencies... done!

>>> Fetching (1 of 1) sys-apps/portage-2.3.80-r1::gentoo
 * portage-2.3.80.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                            [ ok ]
 * portage-2.3.80-depgraph-fix-buildtime_blockers-logic-bug-689226.patch BLAKE2B SHA512 size ;-) ...                                                                             [ ok ]
machin ~ # emerge -pf portage

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

Calculating dependencies... done!

  The following REQUIRED_USE flag constraints are unsatisfied:
    || ( python_targets_pypy python_targets_python2_7 python_targets_python3_5 python_targets_python3_6 python_targets_python3_7 python_targets_python3_8 )

  The above constraints are a subset of the following complete expression:
    epydoc? ( python_targets_python2_7 ) any-of ( python_targets_pypy python_targets_python2_7 python_targets_python3_5 python_targets_python3_6 python_targets_python3_7 python_targets_python3_8 )

patrick ~ # 

Have a nice day ( or night ) with this ;)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-04 11:47:53 UTC
Please post your `emerge --info' output in a comment. Were you upgrading from sys-apps/portage-2.3.80 to sys-apps/portage-2.3.80-r1?
Comment 2 Patrick Fourniols 2019-12-04 23:04:58 UTC
Portage 2.3.80 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd,
gcc-9.2.0, glibc-2.30-r3, 5.4.1-gentoo x86_64)
System uname: Linux-5.4.1-gentoo-x86_64-Intel-R-_Core-TM-_i3-8100_CPU_@_3.60GHz-with
KiB Mem: 3847264 total, 638636 free
KiB Swap: 8388604 total, 8313084 free
Timestamp of repository gentoo: Wed, 04 Dec 2019 22:00:01 +0000
Head commit of repository gentoo: 0ad10594b33c52ab7d59129739f7b302af79d357
sh bash 5.0_p11
ld GNU ld (Gentoo 2.33.1 p1) 2.33.1
app-shells/bash: 5.0_p11::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.17::gentoo, 3.5.9::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo,
dev-util/cmake: 3.16.0::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/sandbox: 2.18::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.1-r2::gentoo
sys-devel/binutils: 2.33.1::gentoo
sys-devel/gcc: 9.2.0-r2::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r5::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.30-r3::gentoo

location: /usr/portage
sync-type: rsync
sync-uri: rsync://
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1

x-portagelocation: /usr/local/portage
masters: gentoo
priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-mtune=core2 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share
themes/oxygen-gtk/gtk-2.0 /var/bind"
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
CXXFLAGS="-mtune=core2 -O2 -pipe"
FCFLAGS="-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 sandbox sfperms
strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr"
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"
USE="X a52 aac acl acpi aften alsa amd64 amr apache2 automount bash-completion berkdb
bluetooth branding bzip2 cairo cdda cdr cli colord cpudetection crypt cups cxx dbus
ddepgentry declarative device-mapper dri dts dv dvd dvdarchive dvdnav dvdr dvi
dvlvidprefer ecdsa eds emboss encode evo exif extra-cardsets extras fam fbcon ffmpeg flacfortran fr gd gdbm gedit gif gimp gnome gnome-keyring gnome-online-accounts gphoto2
gpm graphviz gstreamer gtk iconv icu id3tag imagemagick introspection iproute2 ipv6
jadetex java javafx jpeg jpeg2k jumpplay kde kipi kpathsea lcms ldap libffi libnotify
libsamplerate libsecret libtirpc libv4l logrotate lua lzo mad mainmenuhooks mariadb
mbrola mjpeg mng motif mp3 mp4 mpeg mplayer mtp multilib nautilus ncurses network
networkmanager nls nntp nptl nsplugin nvram objc odbc ogg opengl openmp pam pango
pcre pdf phonon php png policykit postfix postscript ppds pulseaudio pvr pysolcards qt4
qt5 rar readline scanner sdl seamonkey seccomp semantic-desktop setup sip slp smbclient
smp sms sndfile spamassassin spell split-usr spoof-source sql sqlite ssl startup-notification
stream subversion svg systemd sysv-utils tcpd themes tiff tracker truetype ttxtsubs udev
udisks unicode upower usb v4l video vorbis wareagleicon wav wavpack webkit wma wmf
wxwidgets x264 xattr xcb xine xinerama xml xpm xscreensaver xv xvid yaepg zip zlib"
ABI_X86="64 32" ADA_TARGET="gnat_2018" 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="karbon sheets words"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
CPU_FLAGS_X86="avx mmx mmxext 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="emu efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse evdev joystick"
KERNEL="linux" L10N="en fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter
minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java
mobility nb php profiler soa visualweb webcommon websvccommon xml"
POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25 ruby26"
USERLAND="GNU" VIDEO_CARDS="intel i965 fbdev vesa 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"
Comment 3 Patrick Fourniols 2019-12-04 23:38:25 UTC
i was not upgrading and i show only one example
i try to add to portage in package.use python_targets_python3_6 and...
emerge -pf portage work fine

idem for clutter removing egl from package.use and emerge -pf work fine
idem DBD-mysql need to add mariadb for emerge -pf to work
Comment 4 Zac Medico gentoo-dev 2019-12-05 00:17:33 UTC
Technically, the -f and -F cases should also fail if REQUIRED_USE is not satisfied, since the USE settings are used to evaluate SRC_URI and determine what to fetch.
Comment 5 Patrick Fourniols 2019-12-05 14:28:05 UTC
i have 4 pc running linux and same pb arise but not necessary on  same ebuilds.
Initial installations of them are old, passing openrc to systemd and so on.
I look in package.use and have removed or modified half of lines in it...
I do not know why but -f or -F are more strict than emerge without these flags
have a nice day ;)

for my pc i have modified package.use for emerge -pf works like emerge -p
Comment 6 Patrick Fourniols 2019-12-10 18:29:49 UTC
new strange behaviour:

emerge -f thunderbird-bin
Calculating dependencies... done!

>>> Fetching (1 of 1) mail-client/thunderbird-bin-68.3.0::gentoo
 * thunderbird-68.3.0-fr.xpi BLAKE2B SHA512 size ;-) ...                 [ ok ]
 * thunderbird-bin_x86_64-68.3.0.tar.bz2 BLAKE2B SHA512 size ;-) ...     [ ok ]
 * lightning-68.0b6.tar.xz BLAKE2B SHA512 size ;-) ...  

emerge -pf thunderbird-bin

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

Calculating dependencies... done!

if you add p to the line, emerge try merge thunderbird NOT thunderbird-bin...
a parse bug?

have a nice day ;)
Comment 7 Zac Medico gentoo-dev 2019-12-10 19:25:18 UTC
(In reply to Patrick Fourniols from comment #6)
> new strange behaviour:

Those are correct results for thunderbird-bin, for example in SRC_URI the thunderbird-bin ebuild has:
> amd64? ( -> thunderbird-bin_x86_64-68.3.0.tar.bz2 )
Comment 8 Luke-Jr 2020-12-10 20:36:16 UTC
Hitting this with qtgui...

# emerge -p qtgui

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

Calculating dependencies... done!
[ebuild   R    ] dev-qt/qtgui-5.15.1-r1:5/5.15.1::gentoo  USE="X accessibility dbus egl eglfs evdev gif jpeg libinput png udev vnc -debug -gles2-only -ibus -test -tslib -tuio (-vulkan) -wayland" 0 KiB

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

# emerge -p qtgui -f

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

Calculating dependencies... done!

  The following REQUIRED_USE flag constraints are unsatisfied:
    || ( eglfs X ) accessibility? ( dbus X )

  The above constraints are a subset of the following complete expression:
    any-of ( eglfs X ) accessibility? ( dbus X ) eglfs? ( egl ) ibus? ( dbus ) libinput? ( udev ) X? ( gles2-only? ( egl ) )
Comment 9 Luke-Jr 2020-12-10 20:36:48 UTC
Portage 3.0.9 FWIW
Comment 10 ta2002 2021-06-06 07:03:20 UTC
Duplicate of 675748?
Comment 11 Bernd Buschinski 2022-01-31 10:49:58 UTC
I just noticed this bug still exists with sys-apps/portage-3.0.30-r1.

$ emerge -pv perf

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

Calculating dependencies... done!
[ebuild   R    ] dev-util/perf-5.15-r1::gentoo  USE="crypt doc lzma zlib zstd -audit -babeltrace -clang -debug -gtk -java -libpfm -numa -perl -python -slang -systemtap -unwind" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB

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

$ emerge -pvf perf

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

Calculating dependencies... done!

  The following REQUIRED_USE flag constraints are unsatisfied:
    || ( python_targets_python3_8 python_targets_python3_9 python_targets_python3_10 )
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-10 12:38:32 UTC

*** This bug has been marked as a duplicate of bug 675748 ***