Bug 447863

Summary: flatpak build fails when using libkdegames
Product: [Frameworks and Libraries] libkdegames Reporter: D Alexander <devel>
Component: generalAssignee: kdegames bugs <kde-games-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Cmake Output Log
Flatpak package JSON

Description D Alexander 2022-01-03 01:14:28 UTC
Created attachment 145064 [details]
Cmake Output Log

I am trying to build this flatpak package. (see attached json)



OBSERVED RESULT

It fails with this error

```
========================================================================
Building module libkdegames in /home/user/devel/flatpak/rolisteam/.flatpak-builder/build/libkdegames-1
========================================================================
Already on 'master'
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:11 (find_package):
  Could not find a configuration file for package "ECM" that is compatible
  with requested version "5.89.0".

  The following configuration files were considered but not accepted:

    /usr/share/ECM/cmake/ECMConfig.cmake, version: 5.88.0



-- Configuring incomplete, errors occurred!
See also "/run/build/libkdegames/CMakeFiles/CMakeOutput.log".
Error: module libkdegames: Child process exited with code 1
```

See attached CmakeOutput.log

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 D Alexander 2022-01-03 01:15:32 UTC
Created attachment 145065 [details]
Flatpak package JSON
Comment 2 D Alexander 2022-01-03 01:19:25 UTC
For reference. Build host

Debian 11 testing. 
flatpak-builder 1.2.0
Kernel  5.15.0-2-amd64 #1 SMP Debian 5.15.5-1 (2021-11-26) x86_64 GNU/Linux
Comment 3 Albert Astals Cid 2022-01-03 18:34:52 UTC
Why are you building libkdegames unstable branch?
Comment 4 D Alexander 2022-01-04 10:46:37 UTC
> Why are you building libkdegames unstable branch?

Where does it specify that? I am using the newer version of qtwebengine because that is supposed to solve the other problem I had for building the flatpak. 

https://github.com/flathub/io.qt.qtwebengine.BaseApp/issues/12#issuecomment-1003809018
Comment 5 Albert Astals Cid 2022-01-04 17:40:40 UTC
You're not setting the stable branch on the 	"https://anongit.kde.org/libkdegames.git" so you get the master one.
Comment 6 D Alexander 2022-01-04 23:13:07 UTC
Hmm Well I copied that from another flatpak project so ... my bad.. So this is the sort of thing I should do , correct? 


```
    "modules": [
        {
            "config-opts": [ "-DENABLE_TESTING=OFF" ],
            "name": "libkdegames",
            "buildsystem": "cmake-ninja",
            "sources": [ { "type": "git", "url": "https://anongit.kde.org/libkdegames.git", "branch": "release/21.12" } ],
```
Comment 7 Albert Astals Cid 2022-01-04 23:29:46 UTC
personally i prefer building from tarballs, but i guess that would work
Comment 8 Bug Janitor Service 2022-01-19 04:36:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2022-02-03 04:38:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!