Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677494 - gnome-base/gnome-settings-daemon-3.26.2-r1 fails to link with use [-wayland]
Summary: gnome-base/gnome-settings-daemon-3.26.2-r1 fails to link with use [-wayland]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 703462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-08 09:56 UTC by Anton Gubarkov
Modified: 2020-04-18 04:43 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2019-02-08 09:56:18 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/libgnome-desktop-3.so: undefined reference to `gdk_wayland_display_get_type'
Comment 1 Anton Gubarkov 2019-02-08 09:56:55 UTC
PF16W6Y2 ~ # emerge --info gnome-base/gnome-settings-daemon-3.26.2-r1
!!! 'gnome-base/gnome-settings-daemon-3.26.2-r1' is not a valid package atom.
!!! Please check ebuild(5) for full details.
PF16W6Y2 ~ # emerge --info =gnome-base/gnome-settings-daemon-3.26.2-r1
Portage 2.3.59 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-8.2.0, glibc-2.28-r5, 4.20.6-gentoo-zfs x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.20.6-gentoo-zfs-x86_64-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    32612988 total,   3894056 free
KiB Swap:   33554428 total,  33517260 free
Timestamp of repository gentoo: Thu, 07 Feb 2019 20:44:48 +0000
Head commit of repository gentoo: 13e6acb660e240c5a1225836c65c2915cd16a10e

sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.13.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            7.4.0::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/gentoo-mirror/gentoo.git
    priority: -1000

bobwya
    location: /var/lib/layman/bobwya
    masters: gentoo
    priority: 50

dlang
    location: /var/lib/layman/dlang
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

rugubara
    location: /var/lib/layman/rugubara
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -mtune=native"
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"
FFLAGS="-O2 -pipe -mtune=native"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/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"
USE="X a52 aac acl acpi aio alsa amd64 berkdb bluetooth branding bzip2 cacert cairo cdda cdr cli client colord crypt cups cxx dbus djvu dri dri3 dts dvd dvdr eds emboss encode evo exif fam fat ffmpeg flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jack jpeg jpeg2k lcms ldap libnotify libsecret libtirpc libzfs lm_sensors lv2 mad mng mp3 mp4 mpeg multilib native-headset nautilus ncat ncurses networkmanager nls nptl nvenc nvme ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 raw readline sdl sdl2 seccomp smp sna sound spell spice ssl startup-notification svg systemd tcpd thunderbolt tiff tracker truetype udev udisks uefi unicode upower usb usbredir vaapi vala vdpau virgl vorbis wxwidgets x264 x265 xattr xcb xml xv xvid zeroconf zfs zlib" ABI_X86="64" 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="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 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="en ru" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

gnome-base/gnome-settings-daemon-3.26.2-r1::gentoo was built with the following:
USE="colord cups networkmanager policykit systemd udev wayland -debug -elogind -smartcard (-test)" ABI_X86="(64)" INPUT_DEVICES="wacom"
Comment 2 Mart Raudsepp gentoo-dev 2019-02-08 10:09:19 UTC
I think we already had a bug about this, but can't find it anymore.
Anyhow, is your gtk+:3 built with wayland support?
Comment 3 Anton Gubarkov 2019-02-08 11:06:31 UTC
No, it is not

x11-libs/gtk+-2.24.32-r1::gentoo was built with the following:
USE="cups introspection (-aqua) -examples -test -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)"


x11-libs/gtk+-3.24.5::gentoo was built with the following:
USE="X colord cups introspection (-aqua) -broadway -cloudprint -examples -gtk-doc -test -vim-syntax -wayland -xinerama" ABI_X86="(64) -32 (-x32)"
Comment 4 Mart Raudsepp gentoo-dev 2019-02-08 11:41:28 UTC
OK. And you never had it for anything either? If you know for sure that you've never had USE=wayland for anything, please say so, and my investigation should be much easier then, once I get to it :)
Comment 5 Mart Raudsepp gentoo-dev 2019-02-08 11:41:59 UTC
I meant - you also never had it enabled for something, and now disabled?
Comment 6 Anton Gubarkov 2019-02-08 19:45:03 UTC
I had it enabled before. I'm rebuilding my @world with [-wayland] and gnome-settings-daemon refuses to comply.
Comment 7 Mart Raudsepp gentoo-dev 2019-02-16 16:34:41 UTC
I can't reproduce this still, and looking at the error, it seems to be an issue in gnome-desktop instead. I think you need to get that rebuilt before gnome-settings-daemon; does that help?
Comment 8 Fredrick Lockert 2019-02-19 09:43:49 UTC
Had the same problem, re-emerging gnome-desktop does solve it (at least for me, that is).

Had gnome-light with global wayland support enabled, decided to check on the current status of plasma, thus did the following;

1. Changed system profile from systemd/gnome to systemd/plasma
2. Initiated a global rebuild, there were conflicts with wayland enabled.
3. Decided to removed wayland from make.conf
4. Initiated a new global rebuild, which failed when it reached gnome-settings-daemon.
5. Initiated a rebuild of gnome-desktop.
6. Initiated a new global rebuild, which successfully finished.
Comment 9 Anton Gubarkov 2019-03-03 14:18:08 UTC
Re-building gnome-desktop didn't help. I still hit this error.
Comment 10 Mart Raudsepp gentoo-dev 2019-03-03 14:24:28 UTC
specifically this error?

/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/libgnome-desktop-3.so: undefined reference to `gdk_wayland_display_get_type'
Comment 11 Anton Gubarkov 2019-03-03 15:19:32 UTC
Sorry, different one.

../gnome-settings-daemon-3.28.1/plugins/common/gsd-device-manager-udev.c:27:10: fatal error: gdk/gdkwayland.h: No such file or directory
 #include <gdk/gdkwayland.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Comment 12 Mart Raudsepp gentoo-dev 2019-03-03 15:33:44 UTC
I see, that's a different problem. Looks like upstream assumes udev gets enabled only for wayland builds or something. This wasn't the case in 3.26.2, where the compilation of these sources was dependent on wayland choice.
I'll fix it up in 3.28.1 soon, but still unsure if anything to do for the original bug report here.
Comment 13 Mart Raudsepp gentoo-dev 2019-03-03 18:55:25 UTC
gnome-desktop has some build conditionals for using gdk-wayland. It's rather small code for which it seems excessive to patch it to not be automagical (and thus we don't have a IUSE=wayland on it even yet).
We assume wayland as a global setting really, and having to handle per-package USE=wayland choice differences and a change from wayland to non-wayland is rather more trouble than maybe worth.
I'm going to ignore the gnome-desktop issue for now, though not sure if to keep the bug open or not. For gnome-settings-daemon-3.28 I'm going to push a fix in a moment.
Comment 14 Larry the Git Cow gentoo-dev 2019-03-03 18:59:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96b8094548016d7e68aa6893416bba74103470c7

commit 96b8094548016d7e68aa6893416bba74103470c7
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2019-03-03 18:49:47 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2019-03-03 18:59:05 +0000

    gnome-base/gnome-settings-daemon: fix non-wayland builds
    
    Bug: https://bugs.gentoo.org/677494
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 .../files/3.28.1-fix-non-wayland-build.patch       | 88 ++++++++++++++++++++++
 ...uild => gnome-settings-daemon-3.28.1-r1.ebuild} |  4 +-
 2 files changed, 91 insertions(+), 1 deletion(-)
Comment 15 r7l 2019-12-09 16:18:27 UTC
This issue still exists with INPUT="wacom" and USE="-wayland"

Building without wacom works. Once i'll add wacom back in, it breaks with this:

FAILED: plugins/wacom/gsd-wacom 
x86_64-pc-linux-gnu-gcc  -o plugins/wacom/gsd-wacom 'plugins/wacom/db0d4a1@@gsd-wacom@exe/gsd-wacom-manager.c.o' 'plugins/wacom/db0d4a1@@gsd-wacom@exe/gsd-wacom-oled.c.o' 'plugins/wacom/db0d4a1@@gsd-wacom@exe/main.c.o' -Wl,--no-undefined -Wl,--as-needed -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--start-group gnome-settings-daemon/libgsd.so plugins/common/libcommon.a /usr/lib64/libgtk-3.so /usr/lib64/libgdk-3.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libcairo-gobject.so /usr/lib64/libcairo.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so -lm /usr/lib64/libwacom.so /usr/lib64/libgnome-desktop-3.so /usr/lib64/libX11.so /usr/lib64/libXi.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../gnome-settings-daemon:$ORIGIN/../common' -Wl,-rpath-link,/var/tmp/portage/gnome-base/gnome-settings-daemon-3.32.1/work/gnome-settings-daemon-3.32.1-build/gnome-settings-daemon -Wl,-rpath-link,/var/tmp/portage/gnome-base/gnome-settings-daemon-3.32.1/work/gnome-settings-daemon-3.32.1-build/plugins/common
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: plugins/wacom/db0d4a1@@gsd-wacom@exe/gsd-wacom-manager.c.o: in function `get_device_path':
gsd-wacom-manager.c:(.text+0x273): undefined reference to `gdk_wayland_device_get_node_path'
collect2: error: ld returned 1 exit status
Comment 16 Marek Szuba archtester gentoo-dev 2019-12-20 12:05:50 UTC
(In reply to r7l from comment #15)
> This issue still exists with INPUT="wacom" and USE="-wayland"

Confirmed.
Comment 17 Denis I. Polukarov 2020-01-17 13:24:19 UTC
(In reply to r7l from comment #15)
> This issue still exists with INPUT="wacom" and USE="-wayland"

Confirmed.
Comment 18 Larry the Git Cow gentoo-dev 2020-02-24 21:05:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=079fc0ca922964e6705420084e5c63e8912ec38b

commit 079fc0ca922964e6705420084e5c63e8912ec38b
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2020-02-24 21:03:32 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2020-02-24 21:04:55 +0000

    gnome-base/gnome-settings-daemon: fix USE="input_devices_wacom -wayland" build
    
    Closes: https://bugs.gentoo.org/677494
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 .../files/3.32.1-fix-wacom-no-wayland.patch        | 25 ++++++++++++++++++++++
 .../gnome-settings-daemon-3.32.1-r1.ebuild         |  1 +
 2 files changed, 26 insertions(+)
Comment 19 Mart Raudsepp gentoo-dev 2020-04-18 04:43:30 UTC
*** Bug 703462 has been marked as a duplicate of this bug. ***