Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914378 - kde-plasma/kde-gtk-config-5.27.8 fails to compile with x11-libs/gtk+[-X]
Summary: kde-plasma/kde-gtk-config-5.27.8 fails to compile with x11-libs/gtk+[-X]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-18 10:13 UTC by Steffen Hau
Modified: 2023-09-19 15:26 UTC (History)
0 users

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


Attachments
kde-plasma/kde-gtk-config-5.27.8 build.log (kde-gtk-config-5.27.8_build.log,47.10 KB, text/x-log)
2023-09-18 10:15 UTC, Steffen Hau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2023-09-18 10:13:07 UTC
I'm in the progress of getting rid of X.

In the last emerge -uvDN @world I noticed that kde-gtk-config no longer compiles with the error:
FAILED: gtk3proxies/CMakeFiles/gtk3_preview.dir/preview3.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DDATA_DIR=\"/usr/share/kcm-gtk-module/\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8_build/gtk3proxies -I/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies -I/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8_build/gtk3proxies/gtk3_preview_autogen/include -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/cairo -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/freetype2 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/atk-1.0 -isystem /usr/include/blkid -isystem /usr/include/libmount -isystem /usr/include/libpng16 -isystem /usr/include/pixman-1 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/fribidi -isystem /usr/lib64/libffi/include  -DQT_NO_DEBUG -march=native -O3 -pipe -flto=auto -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -std=gnu90 -fvisibility=hidden -pthread -MD -MT gtk3proxies/CMakeFiles/gtk3_preview.dir/preview3.c.o -MF gtk3proxies/CMakeFiles/gtk3_preview.dir/preview3.c.o.d -o gtk3proxies/CMakeFiles/gtk3_preview.dir/preview3.c.o -c /home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c: In function ‘on_dlg_response’:
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c:30:40: warning: unused parameter ‘dlg’ [-Wunused-parameter]
   30 | static void on_dlg_response(GtkDialog* dlg, int res, gpointer user_data)
      |                             ~~~~~~~~~~~^~~
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c:30:63: warning: unused parameter ‘user_data’ [-Wunused-parameter]
   30 | static void on_dlg_response(GtkDialog* dlg, int res, gpointer user_data)
      |                                                      ~~~~~~~~~^~~~~~~~~
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c: In function ‘main’:
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c:77:18: error: implicit declaration of function ‘gtk_plug_new’; did you mean ‘atk_plug_new’? [-Werror=implicit-function-declaration]
   77 |         window = gtk_plug_new(wid);
      |                  ^~~~~~~~~~~~
      |                  atk_plug_new
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c:77:16: warning: assignment to ‘GtkWidget *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   77 |         window = gtk_plug_new(wid);
      |                ^
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c:89:55: error: implicit declaration of function ‘gtk_plug_get_embedded’ [-Werror=implicit-function-declaration]
   89 |         fprintf(stderr, "--- is embedded gtk3: %d\n", gtk_plug_get_embedded(GTK_PLUG(window)));
      |                                                       ^~~~~~~~~~~~~~~~~~~~~
/home/gentoo/tmp/portage/kde-plasma/kde-gtk-config-5.27.8/work/kde-gtk-config-5.27.8/gtk3proxies/preview3.c:89:77: error: implicit declaration of function ‘GTK_PLUG’; did you mean ‘ATK_PLUG’? [-Werror=implicit-function-declaration]
   89 |         fprintf(stderr, "--- is embedded gtk3: %d\n", gtk_plug_get_embedded(GTK_PLUG(window)));
      |                                                                             ^~~~~~~~
      |                                                                             ATK_PLUG
cc1: some warnings being treated as errors


I checked the gtk headers, and gdkplug.h has an #ifdef GDK_WINDOWING_X11. This is of course not defined because of -X.

So either upstream can get rid of the dependency or the ebuild has to depend on gtk+[X].

Reproducible: Always




 emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/23.0/systemd, gcc-13, glibc-2.38-r1, 6.5.2-HAUIHAU x86_64)
=================================================================
System uname: Linux-6.5.2-HAUIHAU-x86_64-Intel-R-_Core-TM-_i5-10210U_CPU_@_1.60GHz-with-glibc2.38
KiB Mem:    32598224 total,  11436032 free
KiB Swap:   16777212 total,  16434684 free
Timestamp of repository gentoo: Sat, 16 Sep 2023 10:31:37 +0000
Head commit of repository gentoo: fcd1675bf8eb56a26df207b4a2dae0a22723ec22

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo, 3.12.0_rc2_p1-r1::gentoo
dev-lang/rust:             1.72.0::gentoo
dev-util/cmake:            3.27.5::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.3::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

hauihau
    location: /var/db/repos/hauihau
    masters: gentoo
    priority: 0
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -flto=auto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O3 -pipe -flto=auto"
DISTDIR="/home/gentoo/distfiles/"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --quiet-build=y --quiet-fail=y --with-bdeps=y --changed-deps-report=n"
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 fakeroot fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install 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="https://ftp.fau.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.gwdg.de/pub/linux/gentoo/"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--gc-sections -fuse-ld=mold"
LEX="flex"
LINGUAS="de"
MAKEOPTS="-j9"
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="/home/gentoo/tmp/"
SHELL="/bin/bash"
USE="a52 aac aalib acl alsa amd64 avx avx2 bluetooth bluray branding bzip2 cairo caps cdda cddb crypt cups curl cxx dbus dri dts dv dvd egl encode exif ffmpeg flac fontconfig ftp gd gdbm gif gmp gstreamer iconv icu ipv6 jpeg jpeg2k kde kerberos lame libnotify libsamplerate libtirpc lzma lzo mad matroska mmx mmxext mng mp3 mpeg mtp multilib musepack ncurses networkmanager nls nptl ogg openal opengl openmp opus pam pcre pdf pipewire png policykit pulseaudio qt5 readline screencast seccomp sndfile spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 svg systemd test-rust theora threads tiff truetype udev unicode upower usb v4l vaapi vim-syntax vorbis wavpack wayland x264 xattr xml xmp xpm xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" 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 rdrand 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="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, 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
Comment 1 Steffen Hau 2023-09-18 10:15:39 UTC
Created attachment 870843 [details]
kde-plasma/kde-gtk-config-5.27.8 build.log
Comment 2 Larry the Git Cow gentoo-dev 2023-09-19 13:17:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=f0b00cf0191ad6c283f7f67e14bf2aa79e7bc0f7

commit f0b00cf0191ad6c283f7f67e14bf2aa79e7bc0f7
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-09-19 13:15:58 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-09-19 13:15:58 +0000

    kde-plasma/kde-gtk-config: Add missing x11-libs/gtk:3[X] USEdep
    
    gtk3proxies/preview3.c includes gtk/gtkx.h
    
    Bug: https://bugs.gentoo.org/914378
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/kde-gtk-config/kde-gtk-config-5.27.49.9999.ebuild | 2 +-
 kde-plasma/kde-gtk-config/kde-gtk-config-9999.ebuild         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2023-09-19 15:26:55 UTC
The bug has been closed via the following commit(s):

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

commit c712cdb73ec89765c26bd98f31d15ea2dc1f99d6
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-09-19 14:49:40 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-09-19 15:23:16 +0000

    kde-plasma/kde-gtk-config: Fix dependencies
    
    Closes: https://bugs.gentoo.org/914139
    Closes: https://bugs.gentoo.org/914378
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../kde-gtk-config/kde-gtk-config-5.27.8-r1.ebuild | 53 ++++++++++++++++++++++
 1 file changed, 53 insertions(+)