Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700480 - [qt overlay] kde-plasma/plymouth-kcm-5.17.3 w/ Qt 5.14.0_beta3: kcm.cpp:54:41: error: no matching function for call to ‘qmlRegisterType<KCMPlymouth>()’
Summary: [qt overlay] kde-plasma/plymouth-kcm-5.17.3 w/ Qt 5.14.0_beta3: kcm.cpp:54:41...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-18 13:35 UTC by rnddim
Modified: 2019-12-02 13:01 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,32.64 KB, text/x-log)
2019-11-18 13:35 UTC, rnddim
Details
plymouth-kcm-5.17.3-qt5.14-fix.patch (plymouth-kcm-5.17.3-qt5.14-fix.patch,1021 bytes, patch)
2019-11-20 08:00 UTC, Peter Levine
Details | Diff
plymouth-kcm-5.17.3-qt5.14-fix.patch (plymouth-kcm-5.17.3-qt5.14-fix.patch,885 bytes, patch)
2019-11-23 03:56 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rnddim 2019-11-18 13:35:09 UTC
The issue specifically is that qmlRegisterType with no function arguments is deprecated in Qt 5.14, and since the package has QT_DISABLE_DEPRECATED_BEFORE set to Qt 6 the function is deleted.

Reproducible: Always

Steps to Reproduce:
1. Install dev-qt/qtdeclarative-5.14.0_beta3
2. Try to compile plymouth-kcm-5.17.3



Portage 2.3.79 (python 3.7.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.30-r2, 5.3.9-gentoo x86_64)
=================================================================
System uname: Linux-5.3.9-gentoo-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4450B-with-gentoo-2.6
KiB Mem:     3755640 total,    391448 free
KiB Swap:    8388604 total,   7344716 free
Timestamp of repository gentoo: Mon, 18 Nov 2019 10:00:01 +0000
Head commit of repository gentoo: d80b80bf6748241f69b1f3e2a898cd464cffdcba
sh bash 5.0_p11
ld GNU ld (Gentoo 2.33.1 p1) 2.33.1
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo
dev-util/cmake:           3.15.5::gentoo
dev-util/pkgconfig:       0.29.2::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.11.6-r3::gentoo, 1.16.1-r2::gentoo
sys-devel/binutils:       2.33.1::gentoo
sys-devel/gcc:            9.2.0-r2::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-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r2::gentoo
Repositories:

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

mytestbed
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

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

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

Installed sets: @kde-frameworks, @kde-plasma
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/angband/gamedata/ /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-keep-masks"
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 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="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif gtk iconv icu ipv6 jack jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid 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="sheets" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" 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="pc" INPUT_DEVICES="mouse keyboard wacom evdev joystick" KERNEL="linux" L10N="en-US en de fr" 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-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="x86_64 i386 ppc" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 rnddim 2019-11-18 13:35:43 UTC
Created attachment 596632 [details]
build.log
Comment 2 Peter Levine 2019-11-20 08:00:13 UTC
Created attachment 596874 [details, diff]
plymouth-kcm-5.17.3-qt5.14-fix.patch

From https://doc-snapshots.qt.io/qt5-5.14/qqmlengine-obsolete.html:

> int qmlRegisterType()
> 
> This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
> This is an overloaded function.
> Do not use this function. For anonymous type registrations, use qmlRegisterAnonymousType(), and make sure to provide a URI and a major version.

I have no experience with QT API but assuming an arbitrary URI and major version are acceptable in this context, this workaround should suffice.
Comment 3 Andreas Sturmlechner gentoo-dev 2019-11-20 14:12:24 UTC
Nicely done, I usually see something like #if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) in use for these checks.

Do you have an account on phabricator.kde.org to submit it upstream?
Comment 4 Peter Levine 2019-11-23 03:56:14 UTC
Created attachment 597146 [details, diff]
plymouth-kcm-5.17.3-qt5.14-fix.patch

Fixed a mistake.

(In reply to Andreas Sturmlechner from comment #3)
> Nicely done, I usually see something like #if (QT_VERSION <
> QT_VERSION_CHECK(5, 14, 0)) in use for these checks.
> 
> Do you have an account on phabricator.kde.org to submit it upstream?

Yes. Maybe I'll submit it this weekend if I get a chance.
Comment 5 Peter Levine 2019-11-30 05:42:44 UTC
Upstream Bug: https://bugs.kde.org/show_bug.cgi?id=414679
Phabricator: https://phabricator.kde.org/D25624
Comment 6 Andreas Sturmlechner gentoo-dev 2019-12-02 13:01:04 UTC
Fixed upstream in Plasma/5.17 branch by relaxing deprecation policy in commit 849ac4d0d716e17a5ebdc52d41ed07667b511720, thanks for sending your patch upstream that is pending for master.