Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928300 - app-crypt/seahorse can't be built for X
Summary: app-crypt/seahorse can't be built for X
Status: RESOLVED DUPLICATE of bug 624960
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-31 17:03 UTC by Igor Korot
Modified: 2024-03-31 21:57 UTC (History)
4 users (show)

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


Attachments
seahorse build log (build.log,126.56 KB, application/octet-stream)
2024-03-31 18:25 UTC, Igor Korot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Korot 2024-03-31 17:03:57 UTC
app-crypt/seahorse has a hard dependency on Wayland and so can't be built for X.

My laptop has a touch screen which is not yet supported by Wayland.

Trying to install GNOME with "X" USE-flag results in:

[code]
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_set_transient_for_exported'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_get_type'
collect2: error: ld returned 1 exit status
[/code]

Only one version of seahorse s available so there is no way to downgrade.
Comment 1 genBTC 2024-03-31 17:42:12 UTC
This doesnt add up. I have the same setup, non Wayland system, X use flag, and my readelf -s /usr/lib64/libgcr-ui-3.so | grep wayland definitely doesnt have any functions.
Something is gone  wrong and we need more information, please post a full emerge --info and the result of the full build.log as it says to do so on the bottom of any portage compile error message.
Comment 2 Igor Korot 2024-03-31 18:16:06 UTC
emerge --info is as follows:

Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-10.3.0, glibc-2.38-r10, 5.10.52-gentoo x86_64)
=================================================================
System uname: Linux-5.10.52-gentoo-x86_64-AMD_FX-9800P_RADEON_R7,_12_COMPUTE_CORES_4C+8G-with-glibc2.38
KiB Mem:     7670864 total,   5462424 free
KiB Swap:   16777212 total,  15819848 free
Timestamp of repository gentoo: Sun, 24 Mar 2024 04:00:00 +0000
Head commit of repository gentoo: abf0318b44807782dcb9a636e321b9304e3df955
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.9.18_p2::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.75.0-r1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.35.2::gentoo, 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             10.3.0-r2::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            12.0.1::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE PUEL PUEL-11"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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"
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 pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j5"
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="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli colord crypt dbus dri dts dvd dvdr eds elogind encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vpx vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 Igor Korot 2024-03-31 18:25:46 UTC
Created attachment 889114 [details]
seahorse build log

The build log file
Comment 4 Igor Korot 2024-03-31 18:36:04 UTC
And when I run the grep command you posted I have following output:

[code]
   491: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND gdk_wayland_wind[...]
   554: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND gdk_wayland_wind[...]
[/code]

The problem might be that I'm trying to switch off from Wayland to X and so I did have wayland USE-flag  but now it is turned off.

I did try to re-emerge gcr, but those errors persisted.
Comment 5 genBTC 2024-03-31 18:55:10 UTC
Ok i'm starting to piece it together. Still unusual.
Idk how to proceed so, Try to run some debugging commands:
grep "gdk_wayland" /usr/include -r

which should not be showing anything in there.
If it is in there, that is part of the package you need to rebuild.

grep "wayland" /usr/share/pkgconfig -r

should only return 1 file named Xwaylandproto.pc

IMO these are the most likely locations where wayland could be being hiding and being picked up still - somehow.
Comment 6 genBTC 2024-03-31 19:01:55 UTC
Also to double check, make sure you dont accidentally set wayland USE in package.use flags somehow,
run: grep -rsin "wayland" /etc/portage

This is the full compilation line that failed: 


?[31mFAILED: ?[0mssh/ssh-askpass 
x86_64-pc-linux-gnu-gcc  -o ssh/ssh-askpass ssh/ssh-askpass.p/seahorse-ssh-askpass.c.o -Wl,--as-needed -Wl,--no-undefined -march=native -O2 -pipe -Wno-incompatible-pointer-types -Wl,-O1 -Wl,--as-needed -Wl,--start-group common/libcommon.a /usr/lib64/libgcr-ui-3.so /usr/lib64/libp11-kit.so /usr/lib64/libgdk-3.so /usr/lib64/libharfbuzz.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libcairo.so /usr/lib64/libcairo-gobject.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgck-1.so /usr/lib64/libgcr-base-3.so /usr/lib64/libgtk-3.so -Wl,--export-dynamic /usr/lib64/libgmodule-2.0.so -pthread /usr/lib64/libhandy-1.so -Wl,--end-group
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_set_transient_for_exported'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_get_type'
collect2: error: ld returned 1 exit status

I assume at least one of these libraries is the one that needs to be rebuilt.
You can try doing emerge --selective=n /usr/lib64/libgdk-3.so going through the list of libraries one by one and emerge will detect which package its from and re-install it.
Comment 7 Mart Raudsepp gentoo-dev 2024-03-31 19:05:27 UTC
Yes, switching these flags is fiddly. You need to rebuild things in correct order when you hit issues. It's essentially duplicate of bug 624960 then.

You don't NEED to disable USE=wayland when you use Xorg though ;)
Comment 8 Igor Korot 2024-03-31 19:30:29 UTC
K,
The first command didn't yield anything as predicted.
The second command gives 2 files:

[code]
/usr/share/pkgconfig/xwaylandproto.pc
/usr/share/pkgconfig/xwayland-protocols.pc
[/code]
Comment 9 Igor Korot 2024-03-31 19:51:45 UTC
Hi,
Only libgdk was re-emerged⁴

And after that I still get that error...

Thank you.
Comment 10 Mart Raudsepp gentoo-dev 2024-03-31 19:59:06 UTC
The error suggests you need to rebuild app-crypt/gcr.
And then you might hit other issues, but you can see from the link failure what you need to rebuild. In this case I ran `qfile /usr/lib64/libgcr-ui-3.so`
but you could also just run this directly too (changing the filename as pointed out by the failure):
emerge -1va /usr/lib64/libgcr-ui-3.so
Comment 11 Igor Korot 2024-03-31 20:45:08 UTC
@MartRaudsepp,

It looks like "emerge -1va /usr/lib64/libgcr-ui-3.so" solved the problem.

Thank you.
Comment 12 Mart Raudsepp gentoo-dev 2024-03-31 21:57:34 UTC
You may encounter more such issues from the transition, but now you should know how to workaround them in the same way :)

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