After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779905 - build: Add a first version of Flatpak manifest
build: Add a first version of Flatpak manifest
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2017-03-11 15:32 UTC by Carlos Soriano
Modified: 2017-04-11 07:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Add a first version of Flatpak manifest (4.21 KB, patch)
2017-03-11 15:32 UTC, Carlos Soriano
none Details | Review
gnome-music.desktop: Rename desktop file (3.27 KB, patch)
2017-03-14 20:03 UTC, Carlos Soriano
committed Details | Review
build: Add a first version of Flatpak manifest (4.73 KB, patch)
2017-03-14 20:03 UTC, Carlos Soriano
none Details | Review
build: Add a first version of Flatpak manifest (4.23 KB, patch)
2017-03-16 16:46 UTC, Carlos Soriano
none Details | Review
build: Add a first version of Flatpak manifest (4.55 KB, patch)
2017-03-16 17:04 UTC, Carlos Soriano
committed Details | Review

Description Carlos Soriano 2017-03-11 15:32:46 UTC
See patch, reviewed by Christian. It's a first version since no portals are used (so the link to the music folder dosn't work for example) but I hope enough to allow contributors using flapak from inside gnome-builder.
Comment 1 Carlos Soriano 2017-03-11 15:32:52 UTC
Created attachment 347706 [details] [review]
build: Add a first version of Flatpak manifest

Still need to make load some files, but at least it runs!
Comment 2 Carlos Soriano 2017-03-14 20:03:37 UTC
Created attachment 347948 [details] [review]
gnome-music.desktop: Rename desktop file

Up until now we were using gnome-music.desktop as name for the desktop
file.

However this is discouraged since it's not using a unique id similar to
dbus addresses.
This also bring the problem that to build with flatpak the desktop file
has to match the dbus address.

So simply rename the desktop file to org.gnome.Music.org
Comment 3 Carlos Soriano 2017-03-14 20:03:42 UTC
Created attachment 347949 [details] [review]
build: Add a first version of Flatpak manifest

So it can be used by devs to build against in GNOME Builder.
Comment 4 Bastien Nocera 2017-03-15 11:55:44 UTC
Review of attachment 347948 [details] [review]:

Looks fine.
Comment 5 Bastien Nocera 2017-03-15 11:59:06 UTC
Review of attachment 347949 [details] [review]:

::: org.gnome.Music.json
@@ +81,3 @@
+        {
+            "name": "grilo-plugins",
+            "config-opts": [ "--enable-tracker", "--enable-dleyna" ],

You'll want to explicitely disable the plugins you don't need.

@@ +99,3 @@
+                {
+                    "type": "file",
+                    "path": "py-configure",

Is that doing "pip3 install"? That won't work in flatpak-builder, which doesn't have network access.
Comment 6 Carlos Soriano 2017-03-15 12:59:15 UTC
(In reply to Bastien Nocera from comment #5)
> Review of attachment 347949 [details] [review] [review]:
> 
> ::: org.gnome.Music.json
> @@ +81,3 @@
> +        {
> +            "name": "grilo-plugins",
> +            "config-opts": [ "--enable-tracker", "--enable-dleyna" ],
> 
> You'll want to explicitely disable the plugins you don't need.

You mean for the ones that are not by default on I should disable then?

> 
> @@ +99,3 @@
> +                {
> +                    "type": "file",
> +                    "path": "py-configure",
> 
> Is that doing "pip3 install"? That won't work in flatpak-builder, which
> doesn't have network access.

Yes, I took it from pitivy, but indeed that makes sense... I will change that.
Comment 7 Carlos Soriano 2017-03-16 16:46:37 UTC
Created attachment 348104 [details] [review]
build: Add a first version of Flatpak manifest

So it can be used by devs to build against in GNOME Builder.
Comment 8 Carlos Soriano 2017-03-16 17:04:12 UTC
Created attachment 348105 [details] [review]
build: Add a first version of Flatpak manifest

So it can be used by devs to build against in GNOME Builder.
Comment 9 Bastien Nocera 2017-03-16 17:29:42 UTC
Review of attachment 348105 [details] [review]:

Looks good to me. You might want to tweak the grilo plugins, especially the lack of goa support might be a problem for later features.
Comment 10 Carlos Soriano 2017-03-27 08:49:29 UTC
Marinus or Felipe can you ack this?
Comment 11 Felipe Borges 2017-04-08 11:02:19 UTC
While testing here, it fails to build the "requests" module.

  Error: module requests: Can't find autogen, autogen.sh or Xbootstrap

It should be build with pip or setup.py (which I think flatpak does not support).
Comment 12 Carlos Soriano 2017-04-08 13:00:51 UTC
(In reply to Felipe Borges from comment #11)
> While testing here, it fails to build the "requests" module.
> 
>   Error: module requests: Can't find autogen, autogen.sh or Xbootstrap
> 
> It should be build with pip or setup.py (which I think flatpak does not
> support).

the last version? The manifest builds the requests module. It needs Flatpak 0.9.1 for the simple-build system.
Comment 13 Felipe Borges 2017-04-09 08:20:48 UTC
(In reply to Carlos Soriano from comment #12)
> the last version? The manifest builds the requests module. It needs Flatpak
> 0.9.1 for the simple-build system.

ahaa! it works like a sharm! Lgtm
Comment 14 Felipe Borges 2017-04-09 08:23:07 UTC
Attachment 347948 [details] pushed as 26cbbe1 - gnome-music.desktop: Rename desktop file
Attachment 348105 [details] pushed as 400fbe9 - build: Add a first version of Flatpak manifest
Comment 15 Carlos Soriano 2017-04-09 11:12:31 UTC
Music pushed the renamed patch
Comment 16 Carlos Soriano 2017-04-09 11:14:21 UTC
ugh, git bz confused the bug it has to comment on :(
Comment 17 Carlos Soriano 2017-04-09 11:15:20 UTC
for reference, the gnome-shell counterpart https://bugzilla.gnome.org/show_bug.cgi?id=780157 is pushed now too
Comment 18 Carlos Soriano 2017-04-11 07:35:33 UTC
Heya, sorry I didn't mention in here, this was supposedly to happen after branching. Got a few reports from Jeremy Bicha and Michael Catanzaro.

Can it be reverted in master, do a 3.24.1.1 release, then branch and commit this to master again?