Bug 373802 - flatpak-kde-applications fails to compile: missing /app/files/share/applications/org.kde.marble.maps.desktop
Summary: flatpak-kde-applications fails to compile: missing /app/files/share/applicati...
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 2.1 (KDE Applications 16.12)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-18 07:26 UTC by Brenton Horne
Modified: 2017-01-01 16:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brenton Horne 2016-12-18 07:26:45 UTC
I have tried to build the flatpak-kde-applications repo (https://github.com/KDE/flatpak-kde-applications) with make but it failed giving the error:

Fetching git repo git://anongit.kde.org/marble.git
Starting build of org.kde.marble.maps
Cache hit for marble, skipping build
Cache miss, checking out last cache hit
Cleaning up
Rewriting contents of org.kde.marble.maps.desktop
Error: Can't load desktop file /home/fusion809/GitHub/others/flatpak-kde-applications/app/files/share/applications/org.kde.marble.maps.desktop: Error opening file /home/fusion809/GitHub/others/flatpak-kde-applications/app/files/share/applications/org.kde.marble.maps.desktop: No such file or directory
Makefile:6: recipe for target 'org.kde.marble.app' failed
make: *** [org.kde.marble.app] Error 1
Comment 1 Brenton Horne 2016-12-18 10:44:58 UTC
When I move the org.kde.marble.json out of this directory and re-run make it fails with the error:

6.3.0.debug
stripping /home/fusion809/GitHub/others/flatpak-kde-applications/app/files/lib/libqgpgme.so.7.1.0 to /home/fusion809/GitHub/others/flatpak-kde-applications/app/files/lib/debug/lib/libqgpgme.so.7.1.0.debug
Committing stage build-gpgme to cache
========================================================================
Building module libotp in /home/fusion809/GitHub/others/flatpak-kde-applications/.flatpak-builder/build/libotp-1
========================================================================
Cloning into '/home/fusion809/GitHub/others/flatpak-kde-applications/.flatpak-builder/build/libotp-1'...
done.
Branch dev/libotp set up to track remote branch dev/libotp from origin.
Switched to a new branch 'dev/libotp'
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: /run/ccache/bin/cc
-- Check for working C compiler: /run/ccache/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /run/ccache/bin/c++
-- Check for working CXX compiler: /run/ccache/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could not set up the appstream test. appstreamcli is missing.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
CMake Error at CMakeLists.txt:43 (if):
  if given arguments:

    "KF5Akonadi_FOUND" "AND"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/run/build/libotp/CMakeFiles/CMakeOutput.log".
Error: module libotp: Child process exited with code 1
Makefile:6: recipe for target 'org.kde.kube.app' failed
make: *** [org.kde.kube.app] Error 1

if relevant I am building this on 64-bit Fedora 25.
Comment 2 Dennis Nienhüser 2016-12-23 19:49:28 UTC
Aleix, can you comment on https://github.com/KDE/flatpak-kde-applications/blob/master/org.kde.marble.json and what it expects? I wonder if "id": "org.kde.marble.maps" should rather be "id": "org.kde.marble" which corresponds to the Desktop application, while org.kde.marble.maps is the mobile variant which is not installed by default.
Comment 3 Aleix Pol 2016-12-25 01:26:08 UTC
The flatpak id should be the same as the desktop file, which in turn should be the same as the appdata file.

Feel free to submit a patch with the fixed json (either directly or through phabricator for review).

Happy holidays!
Comment 4 Aleix Pol 2016-12-30 15:45:11 UTC
Git commit 070d3992b88f3938a8670d617387ab482178c900 by Aleix Pol.
Committed on 30/12/2016 at 15:45.
Pushed by apol into branch 'master'.

Address used marble metadata

M  +1    -1    org.kde.marble.json

https://commits.kde.org/flatpak-kde-applications/070d3992b88f3938a8670d617387ab482178c900
Comment 5 Brenton Horne 2016-12-30 21:50:33 UTC
That final commit fixes this bug.
Comment 6 Brenton Horne 2016-12-30 21:53:13 UTC
Except... Running flatpak run org.kde.kdevelop after running:

make
flatpak --user remote-add --no-gpg-verify flatpak-kde-applications repo
flatpak install --user org.kde.kdevelop 

fails to launch KDevelop. Giving repeated lines of errors along the lines of:

(process:15831): GLib-GIO-CRITICAL **: g_dbus_message_set_body: assertion '(body == NULL) || g_variant_is_of_type (body, G_VARIANT_TYPE_TUPLE)' failed
Comment 7 Brenton Horne 2016-12-30 21:55:16 UTC
Kate launches without a problem, however, using this Flatpak. The only error message it gives is:

Qt: Session management error: Could not open network socket


(process:16010): GLib-GIO-CRITICAL **: g_dbus_message_set_body: assertion '(body == NULL) || g_variant_is_of_type (body, G_VARIANT_TYPE_TUPLE)' failed
Comment 8 Brenton Horne 2016-12-30 22:02:59 UTC
flatpak run org.kde.okular returns:

Qt: Session management error: Could not open network socket

(process:17434): GLib-GIO-CRITICAL **: g_dbus_message_set_body: assertion '(body == NULL) || g_variant_is_of_type (body, G_VARIANT_TYPE_TUPLE)' failed

(process:17434): GLib-GIO-CRITICAL **: g_dbus_message_set_body: assertion '(body == NULL) || g_variant_is_of_type (body, G_VARIANT_TYPE_TUPLE)' failed
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
org.kde.knotifications: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification

it opens a window with the error message:

Unable to find the Okular component: Cannot load library /app/lib64/plugins/okularpart.so: (libpcreposix.so.0: cannot open shared object file: No such file or directory)
Comment 9 Aleix Pol 2016-12-31 12:01:00 UTC
Please open new issues if other things don't work.