Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916449 - net-im/telegram-desktop-4.10.5 -- Could not find a package configuration file provided by "KF6CoreAddons"
Summary: net-im/telegram-desktop-4.10.5 -- Could not find a package configuration fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-28 20:05 UTC by Gary E. Miller
Modified: 2023-10-31 16:21 UTC (History)
10 users (show)

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


Attachments
build log (net-im:telegram-desktop-4.10.5:20231028-200143.log,9.54 KB, text/plain)
2023-10-28 20:06 UTC, Gary E. Miller
Details
kcoreaddons kf6 revert patch (tdesktop-4.11.1-kcoreaddons.patch,3.27 KB, patch)
2023-10-29 13:33 UTC, Ryan Tsien
Details | Diff
4.11.1_revert_patch_build_log (build.log,4.01 KB, text/plain)
2023-10-29 17:54 UTC, Yuriy V
Details
4.11.1 clang-16 build.log (build.log.gz,109.14 KB, application/x-gzip)
2023-10-30 11:30 UTC, Esteve Varela Colominas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2023-10-28 20:05:14 UTC
Fails to emerge.

-- Checking for module 'giomm-2.68>=2.77'
--   Found giomm-2.68, version 2.78.0
-- Checking for module 'jemalloc'
--   Found jemalloc, version 5.3.0_0
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62") 
CMake Error at cmake/external/kcoreaddons/CMakeLists.txt:14 (find_package):
  By not providing "FindKF6CoreAddons.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "KF6CoreAddons", but CMake did not find one.

  Could not find a package configuration file provided by "KF6CoreAddons"
  with any of the following names:

    KF6CoreAddonsConfig.cmake
    kf6coreaddons-config.cmake

  Add the installation prefix of "KF6CoreAddons" to CMAKE_PREFIX_PATH or set
  "KF6CoreAddons_DIR" to a directory containing one of the above files.  If
  "KF6CoreAddons" provides a separate development package or SDK, be sure it
  has been installed.


-- Configuring incomplete, errors occurred!


Reproducible: Always

Steps to Reproduce:
1. emerge -uDNa world
2.
3.



dilbert ~ # emerge -pqv '=net-im/telegram-desktop-4.10.5::gentoo'
[ebuild     U ] net-im/telegram-desktop-4.10.5 [4.10.3-r1] USE="X dbus enchant fonts (jemalloc) qt6 qt6-imageformats screencast webkit -wayland" 

dilbert ~ # emerge --info '=net-im/telegram-desktop-4.10.5::gentoo'
Portage 3.0.54 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r7, 6.5.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.5.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.38
KiB Mem:    32718752 total,    551796 free
KiB Swap:   32767996 total,  32767996 free
Timestamp of repository gentoo: Sat, 28 Oct 2023 19:46:55 +0000
Head commit of repository gentoo: 9903c5c871f4bf6ff03575a3456759c1191ac783

Timestamp of repository brother-overlay: Sun, 01 Oct 2023 07:32:50 +0000
Head commit of repository brother-overlay: 4832a63f656b6d80fa0b91081179ba96a4ca537f

Timestamp of repository guru: Sat, 28 Oct 2023 07:46:46 +0000
Head commit of repository guru: 429f3a9d7f21e497d38762006f9167d7b62ef07c

Timestamp of repository vifino-overlay: Thu, 26 Oct 2023 22:03:44 +0000
Head commit of repository vifino-overlay: b062b292c9e6108e98c8ba8c548264eb49e20ee9

sh bash 5.2_p15-r7
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r7::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.72.0-r1::gentoo
dev-lang/rust-bin:         1.73.0::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.51::gentoo
sys-apps/sandbox:          2.38::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-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.3::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo, 17.0.3::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.3::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

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

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

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

vifino-overlay
    location: /var/db/repos/vifino-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vifino-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /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/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="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --with-bdeps=y --backtrack=15"
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 -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs 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 sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j3 -l4"
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 adns aio alsa alsa-plugin amd64 appindicator blake2 bluetooth bluray bpf branding bs2b btpclient bzip2 cairo calf capstone cdda cdr chromecast cli converter corefonts cover cpudetection cron crypt cups curl custom-modes dav1d dbus dri dri3 drm dts dv dvb dvd dvdr elogind enchant encode equalizer exif extra faac faad fdk fdt ffmpeg ffmpegthumbnailer fingerprint fingerprints flac flashrom fontconfig fontforge fortran fuse gbm gdal gdbm geolocation geos gif gimp gles2 glib gpg gpm graph gstreamer gtk gtk3 gui harfbuzz hddtemp http http2 iconv icu introspection io-uring ipp_autosetup ipv6 jack jemalloc jpeg keybinder ladspa lame lastfm lcms libcanberra libdrm libmpeg2 libmpv libnotify libretro libsamplerate libssh2 libtirpc libuvc libvisual lm_sensors lto lv2 lvm lz4 lzma lzo mad matroska md5sum mda-lv2 metadata mng mp3 mp4 mpeg mtp multilib ncat ncurses ndiff nfs nfsv41 nls notify nping nptl nvenc nvme obex offensive ogg openal opengl openmp opus pam pango pcap pcre pcre32 pdf pgo pipewire pkcs11 plugins png policykit postproc ppds projectm pulseaudio pvr python qml qt5 qt6 qt6-imageformats qtaudio rav1e readline realtime rtc rtmp rubberband screencast sdl sdl-image seccomp sensors sftp slirp sna snappy sndfile snmp sound sox spandsp spell spice spirv split-usr sqlite ssh ssl startup-notification svg svt-av1 system-llvm system-png taglib test-rust theora threads tiff tools truetype twolame udev udisks uefi unicode update_drivedb upnp upower usb usbredir uxa v4l v4lutils vaapi vde vdpau vdr vim vim-syntax virgl vmaf vorbis vpx vulkan webkit webp wg-quick widgets wifi wxwidgets x264 x265 xa xattr xcb xft xinerama xml xrandr xv xvid zamaudio zenmap zeroconf zimg zink zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" 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="roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" 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 python3_10" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="intel i965 nvidia iris nouveau" 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, 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, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Gary E. Miller 2023-10-28 20:06:24 UTC
Created attachment 873614 [details]
build log

build log
Comment 2 Михаил 2023-10-29 12:29:35 UTC
I can reproduce.

Looks like KF6CoreAddons is required for net-im/telegram-desktop-4.10.5
Comment 3 Ryan Tsien 2023-10-29 13:19:06 UTC
Looks like the KF major version is bundled with the QT major version, https://github.com/desktop-app/cmake_helpers/commit/78a86e6feea398ece7b5c89869673b169ade2454, so weird.
Comment 4 Ryan Tsien 2023-10-29 13:33:58 UTC
Created attachment 873660 [details, diff]
kcoreaddons kf6 revert patch

FYI, after reverting these two commits, the compilation (4.11.1 version) was successful under QT6. 
And, so far, it works fine.
Comment 5 Yuriy V 2023-10-29 17:54:53 UTC
Created attachment 873666 [details]
4.11.1_revert_patch_build_log

Just tried Ryan's revert patch
Unfortunately something went wrong
Is it for 4.11 or for 4.10.5 ?
Comment 6 Ryan Tsien 2023-10-29 18:12:25 UTC
(In reply to Yuriy V from comment #5)
> Just tried Ryan's revert patch
> Unfortunately something went wrong
> Is it for 4.11 or for 4.10.5 ?

This patch must be applied before seding 'CMakeLists.txt' and '*.cmake' files in the src_prepare function.

Try to use the `eapply` command in the beginning of src_prepare function instead of adding it to the 'PATCHES' variable.
Comment 7 Ryan Tsien 2023-10-29 19:21:33 UTC
My previous method of reverting commits was too rude. I should have skipped the kcoreaddons/CMakeList.txt file when replacing CMakeLists by sed in the src_prepare function to ensure that cmake can skip to use the bundled kcoreaddons library if the unbundled cannot be found.

So, just adding the following line below the `find -type f \( -name 'CMakeLists.txt' -o -name '*.cmake' \)` command in the ebuild file is enough:

```
\! -path './cmake/external/kcoreaddons/CMakeLists.txt' \
```
Comment 8 Esteve Varela Colominas 2023-10-29 19:42:43 UTC
That's indeed the proper fix, alongside using -DCMAKE_DISABLE_FIND_PACKAGE to make sure it's not found until we can add it to the dependencies.
Comment 9 Yuriy V 2023-10-29 20:19:25 UTC
> This patch must be applied before seding 'CMakeLists.txt' and '*.cmake'
> files in the src_prepare function.
> 
> Try to use the `eapply` command in the beginning of src_prepare function
> instead of adding it to the 'PATCHES' variable.

Heh, sorry, bad habit of writing first and thinking later.
I figured out what the problem was literally within 5 minutes.
Thanks anyway, everything compiles fine now
Comment 10 Михаил 2023-10-29 23:38:32 UTC
In addition. telegram with version 4.10.5 is not able to display new type messages.

Will be good to bump version to 4.11.1. It also builds if add kcoreaddons/CMakeLists.txt to exception list.
Comment 11 Yixun Lan archtester gentoo-dev 2023-10-30 02:06:34 UTC
(In reply to Михаил from comment #10)
> In addition. telegram with version 4.10.5 is not able to display new type
> messages.
> 
> Will be good to bump version to 4.11.1. It also builds if add
> kcoreaddons/CMakeLists.txt to exception list.

Yeah, let's be patient & give @Esteve some more time for the version bump,
in the meanwhile, I will p.mask the 4.10.5, thanks all
Comment 12 Larry the Git Cow gentoo-dev 2023-10-30 02:15:24 UTC
The bug has been referenced in the following commit(s):

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

commit 1eb076e811ae14ceb83643e2345b0ebb7c252224
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2023-10-30 02:12:33 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-10-30 02:15:07 +0000

    package.mask: mask net-im/telegram-desktop-4.10.5
    
    not work with qt6, mask it until has new release
    
    Bug: https://bugs.gentoo.org/916449
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 profiles/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 13 Esteve Varela Colominas 2023-10-30 11:30:06 UTC
Created attachment 873700 [details]
4.11.1 clang-16 build.log

Are any of you having trouble building 4.11.1 with clang-16? That's currently my only blocker for bumping this package.

/home/mid-kid/.gentoo-current/usr/include/range/v3/range/conversion.hpp:377:29: error: alias template 'QVector' requires template arguments; argument deduction only allowed for class templates
                -> decltype(ContT(range_cpp17_iterator_t<Rng>{},
                            ^
/home/mid-kid/.gentoo-current/usr/include/meta/meta_fwd.hpp:304:24: note: in instantiation of template class 'ranges::detail::from_range<QVector>' requested here
        typename quote<T::template invoke>;
                       ^
/home/mid-kid/.gentoo-current/usr/include/meta/meta_fwd.hpp:304:9: note: in instantiation of requirement here
        typename quote<T::template invoke>;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

... this is a huge C++ error, not pasting entirety ...
Comment 14 Михаил 2023-10-30 15:04:23 UTC
(In reply to Esteve Varela Colominas from comment #13)
> Are any of you having trouble building 4.11.1 with clang-16? That's
> currently my only blocker for bumping this package.

Same error. Is it possible to build without using precompiled headers?
Comment 15 Esteve Varela Colominas 2023-10-31 16:21:54 UTC
Fixed as of 4.11.1