Bug 340834 - emerge konsole error: KF5 missing
Summary: emerge konsole error: KF5 missing
Status: CONFIRMED
Alias: None
Product: kde-windows
Classification: Miscellaneous
Component: other (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 21:45 UTC by Michael Gooch
Modified: 2021-03-09 23:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-11099-0.html (1.37 KB, text/html)
2014-11-11 15:37 UTC, Aleix Pol
Details
patch to adjust konsole.py (858 bytes, patch)
2014-11-11 20:10 UTC, Michael Gooch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gooch 2014-11-10 21:45:26 UTC
CMake Error at CMakeLists.txt:24 (find_package):
  Could not find a package configuration file provided by "KF5" with any of
  the following names:

    KF5Config.cmake
    kf5-config.cmake

Reproducible: Didn't try




I'm trying to see if I can find a framework or package that supplies the missing piece, this looks like a missing dependency problem
Comment 1 Kevin Funk 2014-11-11 10:29:08 UTC
There's tier1/kconfig. Please add it to the list of dependencies in konsole.py in emerge.git.

You can the post the patch on our review board.
Comment 2 Aleix Pol 2014-11-11 15:37:37 UTC
Created attachment 89537 [details]
attachment-11099-0.html

On Tue, Nov 11, 2014 at 11:29 AM, Kevin Funk <kfunk@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=340834
>
> --- Comment #1 from Kevin Funk <kfunk@kde.org> ---
> There's tier1/kconfig. Please add it to the list of dependencies in
> konsole.py
> in emerge.git.
>
> You can the post the patch on our review board.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
> _______________________________________________
> Kde-windows mailing list
> Kde-windows@kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>

Shouldn't/Couldn't this dependencies be generated from the
dependecy-data-kf5-qt5 in kde-build-metadata files?

Aleix
Comment 3 Kevin Funk 2014-11-11 16:14:54 UTC
Of course it could. Not sure if the Patricks have a script for that ready yet. That'd be helpful.
Comment 4 Michael Gooch 2014-11-11 19:50:49 UTC
I have that frameworks/tier1/kconfig installed, and yet it still gives me the above error.
Comment 5 Michael Gooch 2014-11-11 19:55:09 UTC
also interesting to note trying to run emerge frameworks/tier1/kconfig results in an error

r:\build\testing\kcwsh\work\mingw-w64-RelWithDebInfo-gitHEAD>emerge rameworks/tier1/kconfig
emerge debug: buildAction: all
emerge debug: packageName: ['rameworks/tier1/kconfig']
emerge debug: buildType: RelWithDebInfo
emerge debug: buildTests: False
________________________________________________________________________________
emerge error: unknown packageName
too many values to unpack (expected 2)
  File "r:\\emerge\bin\emerge.py", line 432, in <module>
    succes = main( )
  File "r:\\emerge\bin\emerge.py", line 411, in main
    if not handleSinglePackage( x, args ):
  File "r:\\emerge\bin\emerge.py", line 154, in handleSinglePackage
    (category, package) = packageName.split( "/" )

Will I end up with the same problem if I add that to the dependencies list?

Why is it named in 3 '/' splits if the scripts can't handle that?
Comment 6 Michael Gooch 2014-11-11 20:10:27 UTC
Created attachment 89542 [details]
patch to adjust konsole.py

here you go, i'm not sure where else to put it.
Comment 7 Michael Gooch 2014-11-11 20:11:09 UTC
However the build-script for konsole still doesn't seem to SEE kconfig
Comment 8 Michael Gooch 2014-11-11 20:31:27 UTC
looks like:

find_package(KF5 CONFIG REQUIRED
    Bookmarks Completion Config ConfigWidgets
    CoreAddons DocTools GuiAddons I18n IconThemes
    Init KDE4Support KIO Notifications NotifyConfig
    Parts Pty Service TextWidgets WidgetsAddons
    WindowSystem XmlGui
)

is the line causing this search.
Comment 9 Michael Gooch 2014-11-11 20:38:20 UTC
in R:\lib\cmake\KF5Config
there are a few files

 Directory of R:\lib\cmake\KF5Config

11/07/2014  03:59 PM    <DIR>          .
11/07/2014  03:59 PM    <DIR>          ..
11/07/2014  03:56 PM             2,514 KF5ConfigConfig.cmake
11/07/2014  03:56 PM             1,331 KF5ConfigConfigVersion.cmake
11/07/2014  03:56 PM             3,750 KF5ConfigMacros.cmake
11/07/2014  03:56 PM             2,505 KF5ConfigTargets-relwithdebinfo.cmake
11/07/2014  03:56 PM             4,112 KF5ConfigTargets.cmake
               5 File(s)         14,212 bytes
               2 Dir(s)  2,835,664,871,424 bytes free
Comment 10 Michael Gooch 2014-11-11 20:40:02 UTC
It looks like cmake wants there to be a master KF5.cmake file, and i'm only seeing the ones installed for each package so far
Comment 11 Michael Gooch 2014-11-11 20:52:52 UTC
I tried splitting that command up like this:
find_package(KF5Bookmarks CONFIG REQUIRED)
find_package(KF5Completion CONFIG REQUIRED)
find_package(KF5Config CONFIG REQUIRED)
find_package(KF5ConfigWidgets CONFIG REQUIRED)
find_package(KF5CoreAddons CONFIG REQUIRED)
find_package(KF5DocTools CONFIG REQUIRED)
find_package(KF5GuiAddons CONFIG REQUIRED)
find_package(KF5I18n CONFIG REQUIRED)
find_package(KF5IconThemes CONFIG REQUIRED)
find_package(KF5Init CONFIG REQUIRED)
find_package(KF5KDE4Support CONFIG REQUIRED)
find_package(KF5KIO CONFIG REQUIRED)
find_package(KF5Notifications CONFIG REQUIRED)
find_package(KF5NotifyConfig CONFIG REQUIRED)
find_package(KF5Parts CONFIG REQUIRED)
find_package(KF5Service CONFIG REQUIRED)
find_package(KF5TextWidgets CONFIG REQUIRED)
find_package(KF5WidgetsAddons CONFIG REQUIRED)
find_package(KF5WindowSystem CONFIG REQUIRED)
find_package(KF5XmlGui CONFIG REQUIRED)
find_package(KF5Pty CONFIG REQUIRED)

however there is no package KF5Pty

nor can I find one with emerge --search or under R:\emerge\portage\frameworks directories
Comment 12 Kevin Funk 2014-11-12 09:34:00 UTC
Whoops. KF5Config.cmake indeed should be installed by the kf5umbrella project, but the package apparently got removed in emerge. I have no clue why...

Alexander, ideas how that is supposed to work?

Who's installed KF5Config.cmake these days?

Reference:
commit 1f26657aa3888fefb0fed19367e36da2e7b74654
Author: Alex Richardson <arichardson.kde@gmail.com>
Date:   Thu May 8 00:43:41 2014 +0200

    drop kf5umbrella, it is no longer needed
Comment 13 Alex Richardson 2014-11-12 10:36:30 UTC
There is a FindKF5.cmake that is installed by extra-cmake-modules.

I guess it wants KF5Config, because the CMake command uses the CONFIG keywoard? If so just remove it or change it to MODULE
Comment 14 Michael Gooch 2014-11-12 17:08:51 UTC
as for the missing PTY framework, is that dropped too, or is it simply not ready yet?
Comment 15 Michael Gooch 2014-11-12 17:15:52 UTC
Oh btw, changing CONFIG to MODULES does appear to have done the trick. I don't know if that makes it dependent on any particular thing like extra-cmake-modules, as that was already installed. (might want to double check the python file for konsole and set it to dependent on all these frameworks modules as well, if it isn't already)
Comment 16 Justin Zobel 2021-03-09 23:01:54 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.