Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLVED] emerge REQUIRED_USE flag constraints
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
anvarro10
n00b
n00b


Joined: 29 Nov 2022
Posts: 9

PostPosted: Fri Dec 02, 2022 2:58 pm    Post subject: [RESOLVED] emerge REQUIRED_USE flag constraints Reply with quote

I'm attempting to update the system I'm building (Gentoo with systemd on QEMU KVM)

I've been following the handbook and gentoo website's systemd article.
https://wiki.gentoo.org/wiki/Systemd

When I try to emerge --ask --verbose --update --deep --newuse @world OR emerge -avDN @world

Code:
Autounmask changes successfully written.

 * IMPORTANT: 8 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

!!! The ebuild selected to satisfy ">=sys-fs/cryptsetup-2.0.1:0=" has unmet requirements.
- sys-fs/cryptsetup-2.4.3-r2::gentoo USE="argon2 fips gcrypt kernel nettle nls openssl pwquality static test udev -reencrypt -ssh -static-libs -urandom" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( gcrypt kernel nettle openssl ) static? ( !gcrypt !udev !fips ) fips? ( !kernel !nettle )

  The above constraints are a subset of the following complete expression:
    exactly-one-of ( gcrypt kernel nettle openssl ) static? ( !gcrypt !ssh !udev !fips ) fips? ( !kernel !nettle )

(dependency required by "sys-apps/systemd-251.7::gentoo[cryptsetup]" [ebuild])
(dependency required by "sys-apps/dbus-1.15.2::gentoo[systemd]" [ebuild])
(dependency required by "dev-libs/glib-2.74.1-r1::gentoo[test]" [ebuild])
(dependency required by "x11-libs/libXt-1.2.1::gentoo[test]" [ebuild])
(dependency required by "x11-libs/libXmu-1.1.3::gentoo" [ebuild])
(dependency required by "x11-apps/xhost-1.0.8::gentoo" [ebuild])
(dependency required by "dev-util/cmake-3.24.3::gentoo[test]" [ebuild])
(dependency required by "dev-cpp/gtest-1.11.0::gentoo" [ebuild])
(dependency required by "dev-util/ninja-1.11.1-r2::gentoo[test]" [ebuild])
(dependency required by "x11-base/xorg-proto-2022.1::gentoo" [ebuild])
(dependency required by "x11-libs/libXau-1.0.9-r1::gentoo" [ebuild])


Not sure if I'm missing or need current USE Flags in make.conf or if I need to remove anything to get systemd going.
Can't tell if the message is telling something I should know?

Output from emerge --info

Code:
(chroot) (none) / # emerge --info
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/systemd, gcc-11.3.0, glibc-2.36-r5, 5.15.75-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.15.75-gentoo-x86_64-x86_64-QEMU_Virtual_CPU_version_2.5+-with-glibc2.36
KiB Mem:     8172788 total,    781492 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 01 Dec 2022 19:30:01 +0000
Head commit of repository gentoo: f7ec42ab22d6b55019a26a7d4d199eaf65421716
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p3::gentoo, 3.11.0_p2::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.7::gentoo
sys-devel/autoconf:        2.71-r5::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/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.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: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/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 binpkg-multi-instance 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="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ rsync://mirror.csclub.uwaterloo.ca/gentoo-distfiles"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="acl amd64 apparmor argon2 audit bzip2 cgroup-hybrid cli crypt cryptsetup curl dns-over-tls dri elfutils fido2 fips fortran gcrypt gdbm gnutls homed http iconv idn importd ipv6 kernel libglvnd libtirpc lz4 lzma multilib ncurses nettle nls nptl openmp openssl pam pcre pkcs11 policykit pwquality python qrcode readline resolvconf seccomp split-usr ssl static systemd sysv-utils test test-rust tpm udev unicode vanilla xattr xkb zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" 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="mmx mmxext sse sse2" 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" KERNEL="linux" 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" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, LINGUAS, 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


Last edited by anvarro10 on Mon Dec 05, 2022 8:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Fri Dec 02, 2022 3:19 pm    Post subject: Re: emerge REQUIRED_USE flag constraints are unsatisfied Reply with quote

anvarro10 wrote:
Code:

!!! The ebuild selected to satisfy ">=sys-fs/cryptsetup-2.0.1:0=" has unmet requirements.
- sys-fs/cryptsetup-2.4.3-r2::gentoo USE="argon2 fips gcrypt kernel nettle nls openssl pwquality static test udev -reencrypt -ssh -static-libs -urandom" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( gcrypt kernel nettle openssl ) static? ( !gcrypt !udev !fips ) fips? ( !kernel !nettle )


Not sure if I'm missing or need current USE Flags in make.conf or if I need to remove anything to get systemd going.
Can't tell if the message is telling something I should know?


Yes, it is telling you too many USE, which are incompatible with each other, are set on this package.

First off, " exactly-one-of ( gcrypt kernel nettle openssl )" should be pretty straight forward. Enable exactly one, not zero not many.
At the same time, "static? ( !gcrypt !udev !fips )" when static is enabled, it cannot have gcrypt, udev or fips enabled.
Finally, "fips? ( !kernel !nettle )" when fips is enabled, neither kernel or nettle can be enabled.

So you have choices to make based upon that.

The default is to have only gcrypt enabled in the first group, but then static would have to be disabled.

This sort of feels like a case of filling up make.conf with USE flags when there is little understanding why they are there.
I would start minimizing make.conf's USE if that is true.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Fri Dec 02, 2022 4:07 pm    Post subject: Reply with quote

I agree with grknight's advice.

I will add that USE=static is only needed in certain special cases. Setting it system-wide is almost never the correct answer, but your emerge --info shows it is set system-wide.

If you still need help, post the contents of /etc/portage/make.conf so that we can distinguish which flags you set versus which ones you inherited from your profile.
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Fri Dec 02, 2022 8:22 pm    Post subject: Reply with quote

Also....
Code:
Autounmask changes successfully written.

 * IMPORTANT: 8 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Tells you that some files REALLY needs to be updated/have changes confirmed.
Back to top
View user's profile Send private message
anvarro10
n00b
n00b


Joined: 29 Nov 2022
Posts: 9

PostPosted: Fri Dec 02, 2022 9:14 pm    Post subject: emerge REQUIRED_USE flag constraints are unsatisfied Reply with quote

Thank you grknight and Hu,

Yeah, It's 3rd attempt at installing Gentoo with the intention of running Kubernetes on it.
However, I just can't seem to properly wrap my head around USE.
I'm sure once to you've helped me understand than I can start understanding them.
All I did was blindly add everything handbook/systemd documentation recommended but now I'm thinking that I don't need all these flags system wise to achieve my goal of getting a simple bootable gentoo with systemd as the init system for me to attempt at installing Kubernetes via Kubeadm and Containerd

Output of make.conf

Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
USE="fips static argon2 nls kernel nettle lzma python acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd test-rust udev unicode xattr zlib apparmor audit cgroup-hybrid cryptsetup curl dns-over-tls elfutils fido2 gcrypt gnutls homed http idn importd lz4 openssl pam pcre pkcs11 policykit pwquality qrcode resolvconf seccomp selinux split-usr sysv-utils test tpm vanilla xkb zstd"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ rsync://mirror.csclub.uwaterloo.ca/gentoo-distfiles"
ACCEPT_LICENSE=@BINARY-REDISTRIBUTABLE
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Dec 03, 2022 4:12 pm    Post subject: Reply with quote

In the cited systemd wiki page, none of the occurrences of static are to direct you to add it as a USE flag. There is no mention of nettle at all. I suggest you remove from make.conf every USE flag that you cannot explain why you need it. Yes, this may mean removing all the flags, leaving you with just USE="". That is fine. Your profile should provide good defaults, so as long as you do not actively disable flags it enabled, you are likely to have a decent system.

Last edited by Hu on Mon Dec 05, 2022 8:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
anvarro10
n00b
n00b


Joined: 29 Nov 2022
Posts: 9

PostPosted: Mon Dec 05, 2022 8:17 pm    Post subject: emerge REQUIRED_USE flag constraints are unsatisfied Reply with quote

Thank you for your advice, That helped me get systemd running and I ended up removing all the USE envs from the make.conf and carried on from there to install the boot loader
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum