Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699110 - dev-qt/qtgui-5.13.2: Project ERROR: Unknown module(s) in QT: xkbcommon_support-private
Summary: dev-qt/qtgui-5.13.2: Project ERROR: Unknown module(s) in QT: xkbcommon_suppor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qt-5.13.2-stable
  Show dependency tree
 
Reported: 2019-11-01 20:17 UTC by Ostashevskyi Viktor
Modified: 2019-11-20 21:21 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,857.85 KB, text/plain)
2019-11-02 04:08 UTC, Arseny Solokha
Details
patch fixing the problem (qt-5.13-xkbcommon-module.patch,698 bytes, patch)
2019-11-02 12:39 UTC, Petr Zima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ostashevskyi Viktor 2019-11-01 20:17:43 UTC
Without libinput flag set build fails in /var/tmp/portage/dev-qt/qtgui-5.13.2/work/qtbase-everywhere-src-5.13.2/src/plugins/platforms/xcb with:

Project ERROR: Unknown module(s) in QT: xkbcommon_support-private

xkbcommon_support-private is defined in qtbase-everywhere-src-5.13.2/src/platformsupport/input/libinput.




Reproducible: Always

Steps to Reproduce:
1. USE="+xcb -libinput" emerge qtgui
2. Observe build failure
Comment 1 Andreas Sturmlechner gentoo-dev 2019-11-01 20:59:24 UTC
Missing emerge --info, missing build.log.
Comment 2 Arseny Solokha 2019-11-02 04:08:54 UTC
Created attachment 594790 [details]
build.log

Portage 2.3.78 (python 3.7.5-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-9.2.0, glibc-2.29-r6, 5.3.7-gentoo x86_64)
=================================================================
System uname: Linux-5.3.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-4820K_CPU_@_3.70GHz-with-gentoo-2.6
KiB Mem:    49333272 total,  38453628 free
KiB Swap:   32767996 total,  32767996 free
Head commit of repository gentoo: a73069c971232cfd37f467f7f35a2832648bbced

sh bash 5.0_p11
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.7.5-r1::gentoo
dev-util/cmake:           3.15.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0::gentoo, 10.0.0_alpha20191027::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

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

toolchain
    location: /var/lib/layman/toolchain
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/toolchain.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-unknown-linux-gnu"
CFLAGS="-pipe -O2 -march=ivybridge -mtune=ivybridge -maccumulate-outgoing-args -minline-stringops-dynamically -fstack-clash-protection -ftree-loop-distribution -fgraphite -floop-interchange -floop-unroll-and-jam -ftracer -flto=4 -fuse-linker-plugin"
CHOST="x86_64-unknown-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=ivybridge -mtune=ivybridge -maccumulate-outgoing-args -minline-stringops-dynamically -fstack-clash-protection -ftree-loop-distribution -fgraphite -floop-interchange -floop-unroll-and-jam -ftracer -flto=4 -fuse-linker-plugin"
DISTDIR="/store/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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer 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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.corbina.ru/pub/Linux/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j4"
PKGDIR="/store/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="aes amd64 avx hardened ipv6 mmx mmxext nptl pie split-usr sse sse2 sse3 sse4_1 sse4_2 ssp ssse3 systemd threads unicode" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="ppc x86_64" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Ostashevskyi Viktor 2019-11-02 07:32:30 UTC
'emerge --info' is below. Build log is same as posted by Arseny.

Portage 2.3.78 (python 2.7.16-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-9.2.0, glibc-2.29-r6, 5.3.4-gentoo x86_64)
=================================================================
System uname: Linux-5.3.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-8300H_CPU_@_2.30GHz-with-gentoo-2.6
KiB Mem:    16315328 total,   8228120 free
KiB Swap:   16777212 total,  16641276 free
Timestamp of repository gentoo: Fri, 01 Nov 2019 17:30:01 +0000
Head commit of repository gentoo: 650b8df443387201e4a43b0a8d0f1df61349083b
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/cmake:           3.15.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::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.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /mnt/data/rootopt/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/x11.git
    masters: gentoo
    priority: 50

x-local
    location: /usr/local/portage
    masters: gentoo
    priority: 100

Installed sets: @coreapps, @gstreamer, @kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
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 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto"
DISTDIR="/mnt/data/rootopt/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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy compressdebug 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="uk_UA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -O2 -march=native -fno-stack-protector -pipe -fuse-linker-plugin -flto -flto=4 -fuse-linker-plugin"
LINGUAS="en en-GB en-US uk uk_UA ru pl"
MAKEOPTS="-j4"
PKGDIR="/mnt/data/rootopt/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="amd64 ipv6 nls policykit split-usr" ABI_X86="64" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" KERNEL="linux" L10N="en en-GB en-US uk uk_UA ru pl" LLVM_TARGETS="X86" RUBY_TARGETS="ruby25" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Petr Zima 2019-11-02 12:33:49 UTC
Confirming, same here. Just the title is confusing, it happens *with* USE="-libinput xcb" and not without.
Comment 5 Petr Zima 2019-11-02 12:39:41 UTC
Created attachment 594840 [details, diff]
patch fixing the problem

In qt-5.13 xkbcommon became a module itself under platformsupport/input, cf.

https://github.com/qt/qtbase/commit/a34e81ab8be6445877e040b1afb85deeaa725f86

Problem is that platformsupport/input was not entered at all with given USE flags.
Comment 6 Chiitoo gentoo-dev 2019-11-03 17:40:13 UTC
(In reply to Petr Zima from comment #5)
> Created attachment 594840 [details, diff] [details, diff]
> patch fixing the problem
> 
> In qt-5.13 xkbcommon became a module itself under platformsupport/input, cf.
> 
> https://github.com/qt/qtbase/commit/a34e81ab8be6445877e040b1afb85deeaa725f86
> 
> Problem is that platformsupport/input was not entered at all with given USE
> flags.

Yeah, I found the same commit, but I'm not entirely sure the fix is correct.  It does work for me.

I'm not sure how likely it is that they didn't test this configuration upstream, but I do imagine it's entirely possible.

Speaking of upstream, that's where this should go, too.  I can probably get to it somewhat soon, unless you're willing to go for it yourself?
Comment 7 Petr Zima 2019-11-03 18:41:34 UTC
(In reply to Chiitoo from comment #6)
> Yeah, I found the same commit, but I'm not entirely sure the fix is correct.
> It does work for me.
> 
> I'm not sure how likely it is that they didn't test this configuration
> upstream, but I do imagine it's entirely possible.
> 
> Speaking of upstream, that's where this should go, too.  I can probably get
> to it somewhat soon, unless you're willing to go for it yourself?

Feel free to contact upstream yourself I do not plan to do so myself. I believe the fix is reasonable although I have no deeper knowledge of the Qt build system. Btw there was a large update of xcb handling in the dev branch since so this issue may not be relevant then.
Comment 8 Larry the Git Cow gentoo-dev 2019-11-12 22:21:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=1c7312e8264050c2c4e4c4feb7522339e66f3743

commit 1c7312e8264050c2c4e4c4feb7522339e66f3743
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-11-12 17:13:48 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-11-12 19:20:26 +0000

    dev-qt/qtgui: Fix build with -xcb and -no-libinput
    
    Bug: https://bugs.gentoo.org/699110
    Package-Manager: Portage-2.3.79, Repoman-2.3.17
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../qtgui-5.14.0_beta3-no-xcb-no-xkbcommon.patch   | 34 ++++++++++++++++++++++
 dev-qt/qtgui/qtgui-5.14.0_beta3.ebuild             |  2 ++
 2 files changed, 36 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2019-11-20 21:21:23 UTC
The bug has been closed via the following commit(s):

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

commit 36028ed5d437cabe3f011eb70a74412e3de8a295
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-11-12 17:13:48 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-11-20 21:20:42 +0000

    dev-qt/qtgui: Fix build with -xcb and -no-libinput
    
    Thanks-to: Petr Zima <zima@matfyz.cz>
    Thanks-to: Jimi Huotari <chiitoo@gentoo.org>
    Closes: https://bugs.gentoo.org/699110
    Package-Manager: Portage-2.3.79, Repoman-2.3.17
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/qtgui-5.13.2-no-xcb-no-xkbcommon.patch   | 34 ++++++++++++++++++++++
 dev-qt/qtgui/qtgui-5.13.2.ebuild                   |  5 +++-
 2 files changed, 38 insertions(+), 1 deletion(-)