Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python upgrade - broke gobject and whole system
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
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 240
Location: Italy

PostPosted: Mon Jul 26, 2021 1:09 pm    Post subject: python upgrade - broke gobject and whole system Reply with quote

I had issues while doing my routine
Code:
emerge -DuaN world
- I got some errors regarding a package not finding Python. I was in a hurry, I reissued, but the problem remained.

I powered down and today I perfomed "esync -v" and redit an emerge.

gobject-instrospection fails to build with this issue

Code:

Run-time dependency libffi found: YES 3.3
Dependency python found: YES (pkgconfig)

meson.build:161:3: ERROR: C header 'Python.h' not usable

A full log can be found at /var/tmp/portage/dev-libs/gobject-introspection-1.68.0/work/gobject-introspection-1.68.0-build/meson-logs/meson-log.txt


I fear this is related to python target. Previously I explicitely marked them up to 3.9, now 3.10 is in too. I removed python Targets to have them work out.


Now I have a very bad issue: I cannot authenticate: nor login, nor open a terminal, nor use su or sudo on an existing shell. I think that at my next reboot I will be mostly locked out. I will use a LiveCD and chroot to work out... but what can I do to correctly emerge and fix these issues?
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Mon Jul 26, 2021 9:25 pm    Post subject: Reply with quote

Code:
meson.build:161:3: ERROR: C header 'Python.h' not usable

A full log can be found at /var/tmp/portage/dev-libs/gobject-introspection-1.68.0/work/gobject-introspection-1.68.0-build/meson-logs/meson-log.txt
It is probably Bug 804142 (by the libxcrypt migration?)
Build
Code:
emerge -av1 virtual/libcrypt:0/2 sys-libs/libxcrypt
first should probably work.
Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 240
Location: Italy

PostPosted: Tue Jul 27, 2021 7:42 am    Post subject: Reply with quote

Josef.95 wrote:
Code:
meson.build:161:3: ERROR: C header 'Python.h' not usable

A full log can be found at /var/tmp/portage/dev-libs/gobject-introspection-1.68.0/work/gobject-introspection-1.68.0-build/meson-logs/meson-log.txt
It is probably Bug 804142 (by the libxcrypt migration?)
Build
Code:
emerge -av1 virtual/libcrypt:0/2 sys-libs/libxcrypt
first should probably work.


That sounds possible. I was able to make my system bootable again by using a LiveCD and re-emerging some core packages like pam, pambase, openssl and openssh.

Now I get a failure in cffi explicitly about crypt.h, so it is possible

I executed your command and see crypt is actually an update:

Code:
Calculating dependencies... done!
[ebuild  N     ] sys-libs/libxcrypt-4.4.23-r2:0/1::gentoo  USE="(compat) (split-usr) static-libs (system) -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  r  U  ] virtual/libcrypt-2:0/2::gentoo [1-r1:0/1::gentoo] USE="static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  rR    ] sys-libs/pam-1.5.1_p20210622::gentoo  USE="filecaps (split-usr) -audit -berkdb -debug -nis (-selinux)" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  rR    ] sys-apps/busybox-1.33.1::gentoo  USE="ipv6 static -debug -livecd -make-symlinks -math -mdev -pam -savedconfig (-selinux) -sep-usr -syslog -systemd" 0 KiB
[ebuild  rR    ] dev-lang/perl-5.34.0-r1:0/5.34::gentoo  USE="gdbm -berkdb -debug -doc -ithreads -minimal" 0 KiB
[ebuild  rR    ] app-shells/tcsh-6.22.04-r1::gentoo  USE="nls -doc" 0 KiB
[ebuild  rR    ] dev-lang/python-2.7.18_p11:2.7::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -examples -hardened -tk -verify-sig -wininst" 0 KiB
[ebuild  rR    ] dev-lang/python-3.6.14:3.6/3.6m::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl (threads) xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" 0 KiB
[ebuild  rR    ] dev-libs/apr-util-1.6.1-r7:1::gentoo  USE="gdbm -berkdb -doc -ldap -mysql -nss -odbc -openssl -postgres -sqlite -static-libs" 0 KiB
[ebuild  rR    ] dev-scheme/guile-2.2.7-r1:12/2.2-1::gentoo  USE="deprecated networking nls regex threads -debug -debug-malloc" 0 KiB
[ebuild  rR    ] sys-apps/util-linux-2.37.1::gentoo  USE="cramfs logger ncurses nls pam readline (split-usr) suid (unicode) -audit -build -caps -cryptsetup -fdformat -hardlink -kill -magic -python (-selinux) -slang -static-libs -su -systemd -test -tty-helpers -udev" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild  r  U  ] sys-apps/shadow-4.9-r1::gentoo [4.8.1-r3::gentoo] USE="acl nls pam (split-usr) su xattr -audit -bcrypt -cracklib (-selinux) -skey" 0 KiB
[ebuild  rR    ] sys-auth/passwdqc-2.0.2-r1::gentoo  0 KiB
[ebuild  rR    ] app-admin/sudo-1.9.7_p1-r1::gentoo  USE="nls pam secure-path sendmail ssl -gcrypt -ldap -offensive -sasl (-selinux) -skey -sssd" 0 KiB
[ebuild  rR    ] app-misc/screen-4.8.0-r3::gentoo  USE="pam -debug -multiuser -nethack (-selinux)" 0 KiB
[ebuild  rR    ] net-mail/mailutils-3.12-r2::gentoo  USE="clients gdbm ipv6 nls pam (split-usr) ssl tcpd threads -berkdb -bidi -emacs -guile -kerberos -kyotocabinet -ldap -mysql -postgres -python -sasl -servers -static-libs -tokyocabinet" PYTHON_SINGLE_TARGET="python3_9 -python3_8" 0 KiB
[ebuild  rR    ] dev-lang/python-3.9.6:3.9::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" 0 KiB
[ebuild  rR    ] dev-lang/python-3.8.11:3.8::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" 0 KiB
[ebuild  rR    ] dev-lang/python-3.10.0_beta4:3.10::gentoo  USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" 0 KiB
[ebuild  rR    ] net-misc/openssh-8.6_p1-r2::gentoo  USE="X pam pie scp ssl -X509 -audit -bindist (-debug) -hpn -kerberos -ldns -libedit -livecd -sctp -security-key (-selinux) -static -test -xmss" 0 KiB


I accepted, but got:


Code:
 * Detected file collision(s):
 *
 *      /lib64/libcrypt.so.1
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * sys-libs/glibc-2.33-r4:2.2::gentoo
 *      /lib64/libcrypt.so.1
 *
 * Package 'sys-libs/libxcrypt-4.4.23-r2' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

>>> Failed to install sys-libs/libxcrypt-4.4.23-r2, Log file:



now?
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Tue Jul 27, 2021 8:47 am    Post subject: Reply with quote

Please post
Code:
emerge --info sys-libs/glibc
and
emerge -pv sys-libs/glibc
output.
Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 240
Location: Italy

PostPosted: Tue Jul 27, 2021 11:04 am    Post subject: Reply with quote

Than you Josef,

Josef.95 wrote:
Code:
emerge --info sys-libs/glibc



Code:

Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1, gcc-11.1.0, glibc-2.33-r4, 5.13.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.13.0-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-glibc2.33
KiB Mem:    24619560 total,  15296632 free
KiB Swap:   45105236 total,  45105236 free
Timestamp of repository gentoo: Mon, 26 Jul 2021 05:30:01 +0000
Head commit of repository gentoo: 0d80b2337129f941d2cb768286bf56b329ee4c8e
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p4) 2.36.1
ccache version 4.3 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r1::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.5.9::gentoo, 3.6.14::gentoo, 3.8.11::gentoo, 3.9.6::gentoo, 3.10.0_beta4::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/ccache:          4.3-r3::gentoo
dev-util/cmake:           3.21.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            8.4.0-r2::gentoo, 11.1.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    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 ~amd64"
ACCEPT_LICENSE="@FREE PUEL linux-firmware MSttfEULA bh-luxi freedist linux-fw-redistributable no-source-code free-noncomm all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=westmere"
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=westmere"
DISTDIR="/usr/portage/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"
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 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://gentoo.inode.at/source/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
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"
USE="X acl alsa amd64 bzip2 cli crypt dbus dri gdbm hal iconv ipv6 libglvnd libtirpc mmx multilib ncurses nls nptl objc objc++ openmp pam pcre readline seccomp split-usr sse sse2 ssl tcpd threads unicode xattr zlib" ABI_X86="64" 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="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 aes pclmul popcnt" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

sys-libs/glibc-2.33-r4::gentoo was built with the following:
USE="multiarch (multilib) ssp (static-libs) -audit -caps (-cet) -compile-locales (-crypt) -custom-cflags -doc -gd -headers-only -multilib-bootstrap -nscd -profile (-selinux) -static-pie -suid -systemd -systemtap -test (-vanilla)" ABI_X86="(64)"
CFLAGS="-pipe -march=westmere -O2"
CXXFLAGS="-pipe -march=westmere -O2"
FEATURES="news ebuild-locks parallel-fetch usersandbox sandbox ipc-sandbox userfetch xattr protect-owned network-sandbox pid-sandbox sfperms userpriv qa-unresolved-soname-deps usersync config-protect-if-modified unknown-features-warn fixlafiles merge-sync binpkg-docompress strict distlocks binpkg-dostrip multilib-strict assume-digests unmerge-orphans unmerge-logs binpkg-logs"




Quote:
Code:
emerge -pv sys-libs/glibc


Code:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/glibc-2.33-r4:2.2::gentoo  USE="multiarch (multilib) ssp (static-libs) -audit -caps (-cet) -compile-locales (-crypt) -custom-cflags -doc -gd -headers-only -multilib-bootstrap -nscd -profile (-selinux) -static-pie -suid -systemd -systemtap -test (-vanilla)" 0 KiB

_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Tue Jul 27, 2021 11:31 am    Post subject: Reply with quote

Hm, this is strange :-/
* sys-libs/glibc-2.33-r4:2.2::gentoo
* /lib64/libcrypt.so.1
is installed with sys-libs/glibc[-crypt] I think it should not happen :-/

Please try a fresh glibc rebuild first:
Code:
emerge -av1 sys-libs/glibc virtual/libcrypt:0/2 sys-libs/libxcrypt

I'm not sure, but I think it should work.
Back to top
View user's profile Send private message
pscp
n00b
n00b


Joined: 27 Jul 2021
Posts: 1

PostPosted: Tue Jul 27, 2021 7:40 pm    Post subject: Reply with quote

Josef.95 wrote:
Hm, this is strange :-/
* sys-libs/glibc-2.33-r4:2.2::gentoo
* /lib64/libcrypt.so.1
is installed with sys-libs/glibc[-crypt] I think it should not happen :-/

Please try a fresh glibc rebuild first:
Code:
emerge -av1 sys-libs/glibc virtual/libcrypt:0/2 sys-libs/libxcrypt

I'm not sure, but I think it should work.



Code:

linovo /home/pscp # emerge -av1 sys-libs/glibc virtual/libcrypt:0/2 sys-libs/libxcrypt

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

Calculating dependencies ... done!                           
[ebuild   R    ] sys-libs/glibc-2.33-r4:2.2::gentoo  USE="multiarch (multilib) ssp (static-libs) systemd -audit -caps (-cet) -compile-locales (-crypt) -custom-cflags -doc -gd -headers-only -multilib-bootstrap -nscd -profile (-selinux) -static-pie -suid -systemtap -test (-vanilla)" 0 KiB




Something is causing glibc to build w/o crypt. The use flag seems masked but i cant find the culprit
Code:
linovo /home/pscp # for i in $(find /usr/portage/profiles -type f -name "*");do cat $i  | grep glibc | grep crypt && echo $i; done
# Upstream plans to drop libcrypt.so.1/crypt.h from glibc
<sys-libs/glibc-2.33-r2 crypt
/usr/portage/profiles/base/package.use.force
# Upstream plans to drop libcrypt.so.1/crypt.h from glibc
>=sys-libs/glibc-2.33-r2 crypt
/usr/portage/profiles/base/package.use.mask
sys-libs/glibc:crypt - build and install libcrypt and crypt.h
sys-libs/libxcrypt:system - Install as system libcrypt.so rather than to an alternate directory (will collide with sys-libs/glibc's version)
/usr/portage/profiles/use.local.desc
linovo /home/pscp #


Code:
  [9]   default/linux/amd64/17.1/desktop/plasma/systemd (stable) *


But it seems that libcrypt needs updating libxcrypt

read news

Code:
 
linovo /home/pscp # eselect news read 44

[44]  N  2021-07-23  migrating from glibc[crypt] to libxcrypt in ~arch


Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 240
Location: Italy

PostPosted: Tue Jul 27, 2021 8:27 pm    Post subject: Reply with quote

Josef.95 wrote:
Hm, this is strange :-/
* sys-libs/glibc-2.33-r4:2.2::gentoo
* /lib64/libcrypt.so.1
is installed with sys-libs/glibc[-crypt] I think it should not happen :-/

Please try a fresh glibc rebuild first:
Code:
emerge -av1 sys-libs/glibc virtual/libcrypt:0/2 sys-libs/libxcrypt

I'm not sure, but I think it should work.


This helped a lot.. Very strange, I did re-emerge glibc right yesterday when I "resurrected" the system inside chroot! After your your suggestion, I was then able to rebuild workd and revdep-rebuild.

Only one thing is left-out

Code:

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-libs/libffi:0

  (dev-libs/libffi-3.4.2:0/8::gentoo, ebuild scheduled for merge) USE="-debug (-exec-static-trampoline) -pax-kernel -pax_kernel -static-libs -test" ABI_X86="(64) -32 (-x32)" conflicts with
    >=dev-libs/libffi-3.0.10:0/7= required by (www-client/firefox-90.0.2:0/90::gentoo, installed) USE="clang dbus gmp-autoupdate openh264 system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -pulseaudio -screencast (-selinux) -sndio -wayland -wifi" ABI_X86="(64)" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
                            ^^^^^
    >=dev-libs/libffi-3.0.10:0/7= required by (www-client/seamonkey-2.53.8.1:0/0::gentoo, installed) USE="chatzilla crypt dbus gmp-autoupdate ipc system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite -custom-cflags -custom-optimization -debug -jack (-lto) -pulseaudio -roaming (-selinux) -startup-notification -test -wifi" ABI_X86="(64)" L10N="-cs -de -en-GB -es-AR -es-ES -fr -hu -it -ja -lt -nl -pl -pt-PT -ru -sk -sv -zh-CN -zh-TW"
                            ^^^^^
    >=dev-libs/libffi-3.0.13-r1:0/7=[abi_x86_64(-)] required by (dev-libs/glib-2.68.3-r1:2/2::gentoo, installed) USE="dbus elf mime xattr -debug -fam -gtk-doc (-selinux) -static-libs -sysprof -systemtap -test -utils" ABI_X86="(64) -32 (-x32)"
                               ^^^^^
    >=dev-libs/libffi-3.0.13-r1:0/7=[abi_x86_64(-)] required by (sys-devel/llvm-12.0.1:12/12::gentoo, installed) USE="libffi ncurses -debug -doc -exegesis -gold -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARC -ARM -AVR -CSKY -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore"
                               ^^^^^
    dev-libs/libffi:0/7=[abi_x86_64(-)] required by (app-crypt/p11-kit-0.24.0:0/0::gentoo, installed) USE="asn1 libffi trust -debug -systemd" ABI_X86="(64) -32 (-x32)"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-scheme/guile-2.2.7-r1:12/2.2-1::gentoo, installed) USE="deprecated networking nls regex threads -debug -debug-malloc" ABI_X86="(64)"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-lang/python-3.10.0_beta4:3.10/3.10::gentoo, installed) USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" ABI_X86="(64)"
                   ^^^^^
    >=dev-libs/libffi-3.3_rc0:0/7[abi_x86_64(-)] required by (virtual/libffi-3.3_rc0:0/7::gentoo, installed) USE="" ABI_X86="(64) -32 (-x32)"
                             ^^^^
    >=dev-libs/libffi-3.0.13-r1:0/7=[abi_x86_64(-)] required by (sys-devel/llvm-10.0.1:10/10::gentoo, installed) USE="libffi ncurses -debug -doc -exegesis -gold -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 (-ARC) -ARM (-AVR) -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore"
                               ^^^^^
    dev-libs/libffi:0/7= required by (dev-lang/python-2.7.18_p11:2.7/2.7::gentoo, installed) USE="gdbm ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -examples -hardened -tk -verify-sig -wininst" ABI_X86="(64)"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-python/cffi-1.14.6:0/1.14.6::gentoo, installed) USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -python3_10 -python3_8"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-lang/python-3.9.6:3.9/3.9::gentoo, installed) USE="gdbm ipv6 ncurses readline sqlite ssl xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" ABI_X86="(64)"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-python/pygobject-3.40.1-r1:3/3::gentoo, installed) USE="cairo -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python3_9 -python3_10 -python3_8"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-lang/python-3.6.14:3.6/3.6m::gentoo, installed) USE="gdbm ipv6 ncurses readline sqlite ssl (threads) xml -bluetooth -build -examples -hardened -test -tk -verify-sig -wininst" ABI_X86="(64)"
                   ^^^^^
    dev-libs/libffi:0/7= required by (dev-libs/gobject-introspection-1.68.0:0/0::gentoo, installed) USE="-doctool -gtk-doc -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8"
                   ^^^^^


Nothing to merge; quitting.


I don't think this has anything to do with libcrypt, but well, I'd love to solve this too and be clean again. Thanks
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Tue Jul 27, 2021 8:31 pm    Post subject: Reply with quote

pscp wrote:
Something is causing glibc to build w/o crypt. The use flag seems masked but i cant find the culprit
Your output shows it is in package.use.mask.
pscp wrote:
Code:
linovo /home/pscp # for i in $(find /usr/portage/profiles -type f -name "*");do cat $i  | grep glibc | grep crypt && echo $i; done
That could be greatly simplified.
Code:
grep -r 'glibc.*crypt' /usr/portage/profiles/
If you really meant to find the words in either order, you could use a second pattern that transposes the expressions, or use a chained grep. Regardless, the find and cat are unnecessary, and use of per-file grep prevents you using -H (or one of the uses that implies it), which would have made that echo unnecessary.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Tue Jul 27, 2021 9:21 pm    Post subject: Reply with quote

multix,
great to hear - crypt.h issue is solved, fine :)

btw, i noticed you have the default enabled FEATURES=preserve-libs disabled - I think this is not a good idea.

For the dev-libs/libffi:0 dependency conflict,
please let now run after the @world update a emerge -a --depclean
i think it should help.
Example:
multix wrote:
Code:
    >=dev-libs/libffi-3.3_rc0:0/7[abi_x86_64(-)] required by (virtual/libffi-3.3_rc0:0/7::gentoo, installed) USE="" ABI_X86="(64) -32 (-x32)"
                             ^^^^
This old installed virtual/libffi package don't exist anymore in main tree - please let depclean remove it.
Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 240
Location: Italy

PostPosted: Thu Jul 29, 2021 10:09 pm    Post subject: Reply with quote

Thanks a lot for your help.
I tried depclean, revdep-rebuild and another emerge world.... no errors, but the issue with libffi remains.

I tried unmerging it manually with
Code:
emerge --unmerge -a virtual/libffi


That finally let the libffi upgrade with a new "emerge -DuaN world" - which is performing right now, it will take a while with new python and firefox pulled in. Let's hope it is finally clean & fixed!
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
reith
n00b
n00b


Joined: 13 Nov 2015
Posts: 16

PostPosted: Mon Aug 02, 2021 11:03 pm    Post subject: Reply with quote

multix wrote:

Code:
 * Detected file collision(s):
 *
 *      /lib64/libcrypt.so.1
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * sys-libs/glibc-2.33-r4:2.2::gentoo
 *      /lib64/libcrypt.so.1
 *
 * Package 'sys-libs/libxcrypt-4.4.23-r2' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

>>> Failed to install sys-libs/libxcrypt-4.4.23-r2, Log file:



now?


I had a similar problem for migration. System upgrade failed as `libxml2` wouldn't upgrade because of linking failure with `libcrypt`. I couldn't either emerge `libxcrypt` because of this file collusion. I remerged `glibc` and this time it didn't install `/libc64/libcrypt.so.1`, which is strange because it had been installed an hour before with the exactly same USE flags!. I still couldn't emerge `libxcrypt` because `perl` was broken as `libcrypt.so` was wiped out. Luckily I could remerge perl and this time it didn't link with libcrypt.

I think migration is thought and tested against a very up to date system. I was lucky I had some root shells open, as at time I couldn't login/su/sudo.
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