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 788693 - flatpak: Add a manifest to build d-feet master
flatpak: Add a manifest to build d-feet master
Status: RESOLVED FIXED
Product: d-feet
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: D-Feet Maintainer(s)
D-Feet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-10-09 00:37 UTC by Mathieu Bridon
Modified: 2017-11-25 20:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Rename the icons, appdata and desktop files (7.43 KB, patch)
2017-10-09 00:37 UTC, Mathieu Bridon
none Details | Review
flatpak: Add a manifest to build d-feet master (2.49 KB, patch)
2017-10-09 00:37 UTC, Mathieu Bridon
none Details | Review
Rename the icons, appdata and desktop files (8.67 KB, patch)
2017-11-24 22:32 UTC, Mathieu Bridon
none Details | Review
flatpak: Add a manifest to build d-feet master (2.49 KB, patch)
2017-11-24 22:32 UTC, Mathieu Bridon
none Details | Review
Rename the icons, appdata and desktop files (9.01 KB, patch)
2017-11-24 22:34 UTC, Mathieu Bridon
none Details | Review
flatpak: Add a manifest to build d-feet master (2.49 KB, patch)
2017-11-24 22:34 UTC, Mathieu Bridon
none Details | Review

Description Mathieu Bridon 2017-10-09 00:37:49 UTC
.
Comment 1 Mathieu Bridon 2017-10-09 00:37:53 UTC
Created attachment 361156 [details] [review]
Rename the icons, appdata and desktop files

This is good practice, and it helps a lot with Flatpak.
Comment 2 Mathieu Bridon 2017-10-09 00:37:57 UTC
Created attachment 361157 [details] [review]
flatpak: Add a manifest to build d-feet master
Comment 3 Mathieu Bridon 2017-10-09 09:20:39 UTC
Once this is in, I'm happy to setup the gnome-apps-nightly stuff so that d-feet gets built automatically. :)

https://git.gnome.org//browse/gnome-apps-nightly
Comment 4 Mathieu Bridon 2017-10-24 10:10:21 UTC
Hi, is there anything I can do to get this reviewed/merged faster?
Comment 5 Thomas Bechtold 2017-11-24 19:36:44 UTC
Hm. I applied the patches and tried to build a flatpak but it failed with:

$ flatpak-builder foo org.gnome.d-feet.json
[...]
Rewriting contents of org.gnome.d-feet.desktop
Error: Can't load desktop file /home/tom/devel/gnome/src/d-feet/.flatpak-builder/rofiles/rofiles-5laQWi/files/share/applications/org.gnome.d-feet.desktop: Error opening file /home/tom/devel/gnome/src/d-feet/.flatpak-builder/rofiles/rofiles-5laQWi/files/share/applications/org.gnome.d-feet.desktop: No such file or directory
Comment 6 Mathieu Bridon 2017-11-24 22:31:07 UTC
I assume you only applied the patches locally but didn't push them?

If so, that's normal.

The first patch renames the desktop file from d-feet.desktop to org.gnome.d-feet.desktop.

But the second patch adds the Flatpak manifest which points to:

            "sources": [
                {
                    "type": "git",
                    "url": "https://git.gnome.org/browse/d-feet"
                }
            ]

So if you didn't push the patches, then the .desktop file hasn't been renamed upstream. :)

If you want to test without pushing, simply replace the url in the Flatpak manifest by a file:// url pointing to the local clone where you applied the patches.

Alternatively, we could push those patches to a branch, then you can use:

            "sources": [
                {
                    "type": "git",
                    "url": "https://git.gnome.org/browse/d-feet",
                    "branch": "the-branch-you-pushed-to"
                }
            ]

I'm attaching new versions of the patches, rebased on the latest master.
Comment 7 Mathieu Bridon 2017-11-24 22:32:41 UTC
Created attachment 364363 [details] [review]
Rename the icons, appdata and desktop files

This is good practice, and it helps a lot with Flatpak.
Comment 8 Mathieu Bridon 2017-11-24 22:32:47 UTC
Created attachment 364364 [details] [review]
flatpak: Add a manifest to build d-feet master
Comment 9 Mathieu Bridon 2017-11-24 22:34:21 UTC
Created attachment 364365 [details] [review]
Rename the icons, appdata and desktop files

This is good practice, and it helps a lot with Flatpak.
Comment 10 Mathieu Bridon 2017-11-24 22:34:26 UTC
Created attachment 364366 [details] [review]
flatpak: Add a manifest to build d-feet master
Comment 11 Mathieu Bridon 2017-11-24 22:35:24 UTC
And I just found two small issues with the first patch, which I now fixed. Sorry for all the mails. :)
Comment 12 Thomas Bechtold 2017-11-25 18:17:28 UTC
Applied and pushed. Thanks Mathieu!
Comment 13 Mathieu Bridon 2017-11-25 20:45:26 UTC
FYI I added d-feet to the gnome-apps-nightly repository:

  https://git.gnome.org/browse/gnome-apps-nightly/commit/?id=d72098e7adee2af009b0cf43f14a15f294ba4377

It built successfully:

  http://sdkbuilder.gnome.org/logs/build-2017-11-25-185003/build-gnome-apps-nightly-master-org.gnome.d-feet-i386.txt
  http://sdkbuilder.gnome.org/logs/build-2017-11-25-190003/build-gnome-apps-nightly-master-org.gnome.d-feet-x86_64.txt

So it should soon land in the nightly repo, and be installable with:

  $ flatpak remote-add --if-not-exists gnome-nightly https://sdk.gnome.org/gnome-nightly.flatpakrepo
  $ flatpak remote-add --if-not-exists gnome-apps-nightly https://sdk.gnome.org/gnome-apps-nightly.flatpakrepo
  $ flatpak install gnome-apps-nightly org.gnome.d-feet