Commit graph

115 commits

Author SHA1 Message Date
António Fernandes
b2c67de28a flatpak: Pin libportal dependency
Changes in libportal main branch break the CI and require dependency
changes which we shouldn't make on stable branch.

(cherry picked from commit 67927cb09b)
2021-11-08 20:18:06 +00:00
Ondrej Holy
78275a7180 ci: Remove flatpak master job
The flatpak master job seems to be redundant currently. It uses the same
image as flatpak devel and their .yml files are equal. The two flatpak jobs
are relict from the times when GNOME SDK was unstable and broke CI often,
which is no more true. Let's remove the flatpak master job.
2021-10-11 06:45:26 +00:00
Ondrej Holy
f5b9018f2c flatpak: Pin gexiv2 and exiv2 dependencies to fix build
The flatpak build currently fails because of gexiv2 build failure, which is
a problem for our contributors and among others breaks our CI pipeline. The
potential fix is available already for a couple of days on
https://gitlab.gnome.org/GNOME/gexiv2/-/merge_requests/63 but not yet merged.
Let's temporarily pin the gexiv2 and exiv2 dependencies to the stable branches
to fix those issues.
2021-09-17 12:56:00 +02:00
António Fernandes
7d188272c8 flatpak: Disable build options for gexiv2
We already disable introspection, which is required by the vapi and
python3 options.

We don't really on either and this is breaking the CI.


(cherry picked from commit 46579d08b0b1183aa36544e0e949a6d42c53ce84)
2021-08-15 20:14:06 +00:00
Ondrej Holy
82f4d0cd94 Switch to meson for gnome-autoar
Relates: https://gitlab.gnome.org/GNOME/gnome-autoar/-/merge_requests/11
2021-08-10 11:20:25 +00:00
Ondrej Holy
8c5fa3eb08 extensions/image-properties: Replace deprecated symbols
The build log contains warnings about deprecated gexiv2 functions. Let's
port to the new API, unpin exiv3 and gexiv2 dependencies in flatpak manifests
and bump the build dependency accordingly to get rid of the warnings.
2021-07-09 15:46:59 +02:00
Ondrej Holy
ca845f2b3c flatpak: Drop network requirement
The network access is no more needed for gvfs support as it currently
uses named sockets instead of abstract ones. It is enough to allow access
to `xdg-run/gvfsd` folder, where the named sockets reside. I'm not aware
of other reasons for allowing network access. Let's drop the network
access. This also workarounds "Too many open files" errors caused by
leftover sockets (GNOME/gvfs#542).

Relates: https://gitlab.gnome.org/GNOME/gvfs/-/issues/515
2021-04-11 22:33:20 +00:00
Felipe Borges
7cab1cd762 build, flatpak: Add libportal dependency
Fixes #795
2020-11-18 15:30:13 +00:00
Sam Thursfield
034a6a3394 flatpak: Update for Tracker Miners 3
Tracker 3 is provided in the Flatpak SDK, see
https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/630.

We still build tracker-miners inside the Flatpak bundle, so that the
org.freedesktop.Tracker3.Miner.Files settings schema is available, and
so that the tests that depend on Tracker can pass as part of the CI
build.

Access to the host's miners is controlled by the new
org.freedesktop.Tracker.portal process provided in Tracker 3.
2020-09-02 18:50:17 +02:00
Ondrej Holy
7868470694 flatpak: Build all tests by default
The flatpak template has been changed recently and MESON_ARGS variable
doesn't have any effect currently. Let's drop MESON_ARGS and move the
build options into the manifests directly (ie. -Dtests=all).

See:
https://gitlab.gnome.org/GNOME/citemplates/blob/master/flatpak/flatpak_ci_initiative.yml
https://mail.gnome.org/archives/desktop-devel-list/2020-April/thread.html
2020-05-10 22:59:32 +00:00
Ondrej Holy
0c91a64a43 flatpak: Remove unused gcovr module
The coverage is not computed since the commit a5a405d. Let's remove
the unused gcovr module also.
2020-04-05 16:22:26 +00:00
António Fernandes
65c338384c flatpak: Fix typos
Pipeline failed.

Cause: invalid URLs resulting from faulty select-copy-paste operation.
2020-03-09 21:27:14 +00:00
António Fernandes
90cc5fed28 flatpak: Unpin tracker[-miners]
We've pinned to specific versions, because their
git master branches have API-breaking changes.

Instead, let's follow from the tracker[-miners]-2.3 branches, where 
the stable API is still maintained.
2020-03-09 21:15:28 +00:00
Ondrej Holy
68f63d2c40 flatpak: Use also tracker-miners 2.3.2
tracker-miners master requires tracker-testutils 2.0, but they are not
provided by tracker 2.3.2 and tracker master provides just version 3.0.
Let's use tracker-miners 2.3.2 to workaround this issue.
2020-02-21 12:30:22 +01:00
Ondrej Holy
5b7192c34f flatpak: Use tracker 2.3.2 as tracker-miners requires old API
Flatpak generation fails currently because tracker-miners still requires
tracker API version 2.0. Let's use tracker 2.3.2, until tracker-miners
will be ported to 3.0.
2020-02-21 12:01:28 +01:00
Ondrej Holy
5a74959caf flatpak: Use default libdir location for tracker
I don't see any reason to manually specify libdir for tracker as
it seemingly uses the same directory by default. Let's remove that
redundant definition.
2020-02-21 12:01:28 +01:00
António Fernandes
d95a616116 flatpak: Unpin most dependencies
We are near 3.36, so let's update the dependencies.

gexiv2 git master is failing to build locally, so I've 
updated it to the latest tag that builds locally.
2020-02-06 20:28:17 +00:00
António Fernandes
cdd9ce790f flatpak: Drop '(Development)' app name prefix
The prefix is not localized, and tends to ellipsize the name.

With the introduction of an icon for the development profile, there is
enough visual distinction in the app grip.

So, drop the prefix.

Part of https://gitlab.gnome.org/GNOME/Initiatives/issues/12
2019-10-13 17:17:53 +01:00
Ondrej Holy
7d3ae8755d ci: Update gexiv2 meson options to fix flatpak master
The -Ddisable-introspection gexiv2 meson option was renamed to -Dintrospection.
25a03fe69c

Let's reflect this in the org.gnome.NautilusMaster.yml file to fix the flatpak
master job as it currenty fails with "OSError: [Errno 30] Read-only file system:
'/usr/lib/python3.7/site-packages/gi/overrides/GExiv2.py'" error.
2019-10-13 15:09:50 +00:00
António Fernandes
81dd339634 flatpak: Update to 3.34 runtime
Also, bundle intltool, because the 3.34 Sdk doesn't include it but
tracker-miners still depends on it.

Intltool lines taken from https://github.com/flathub/shared-modules.git
2019-09-18 21:46:20 +01:00
Jordan Petridis
45fc00c5c3
flatpak: fix the yml manifests to better reflect json structure
See !467
2019-07-02 18:42:07 +03:00
Christian Hergert
daac24d50c build: fix flatpak json manifest
This allows Builder to open the Nautilus project again. I suspect that
there is also some configuration issue with the .yml file.
2019-07-01 16:42:17 -07:00
Ernestas Kulik
3862cf7980 general: Drop in-tree copy of gnome-desktop
The code was copied to avoid having an external GTK+ 3 dependency, but
at this point it’s more trouble than it’s worth.
2019-06-28 15:49:15 +02:00
Carlos Soriano
cab54308aa flatpak: Unpin dependencies for the master manifest
Doing so defeats the point...
2019-03-21 15:12:34 +01:00
Carlos Soriano
4635f34cf4 flatpak: Pin dependencies to 3.32 releases 2019-03-21 15:12:34 +01:00
Carlos Soriano
e3f1b309ad Flatpak: Remove gtk4 manifest
The gtk4 branch should have the proper manifest already
2019-03-21 13:20:28 +00:00
Carlos Soriano
091db8c4dc Flatpak: Sync json from yaml
Generate the json from the yaml file.
2019-03-13 11:21:15 +01:00
Ondrej Holy
2e38753aed flatpak: Add --share=network to fix synchronous gvfs connections
GVfs communicates with daemons over abstract sockets. Currently, synchronous
GIO API doesn't work for GVfs locations, because abstract sockets seem to be
blocked by sandbox permissions. This is not problem in most cases as Nautilus
uses asynchronous API usually. But this breaks e.g. "Empty Trash" functionality
as it is for some reason based on synchronous API.

In order to fix this problems, it is necessary to allow access to sockets
beginning with `unix:abstract=/dbus-vfs-daemon/socket-`, but I am not aware of
better way than adding `--share=network`, which allows access to all abstract
sockets:
http://docs.flatpak.org/en/latest/sandbox-permissions-reference.html#f2

Just a note that it is not clear to me, why it affects only the synchronous
API as the asynchronous API also uses abstract sockets. See the corresponding
Flatpak bug:
https://github.com/flatpak/flatpak/issues/2711
2019-03-13 08:47:04 +00:00
Ernestas Kulik
7f5d6b2afc org.gnome.NautilusGtk4.yml: Fix tracker options
92e052be73 - guess what, not very.
2019-02-17 21:24:49 +00:00
Ernestas Kulik
92e052be73 org.gnome.NautilusMaster.yml: Fix tracker options
f9df2bbf7f - how deep can we go?
2019-02-17 21:23:56 +00:00
Ernestas Kulik
f9df2bbf7f org.gnome.Nautilus.yml: Fix tracker options
Same thing as 288197a122, but now a gorillion other manifests need to be changed.
2019-02-17 21:22:52 +00:00
Ernestas Kulik
288197a122 org.gnome.Nautilus.json: Fix tracker options
cfab5f9604
2019-02-17 21:21:11 +00:00
Carlos Soriano
7f19a03649 files-view: Use tracked directories for star
We were using the xdg directories to check whether we can star a file
or not, since the star feature only works on directories that are
tracked by tracker.

Tracker is usually shipped in distributions tracking the
xdg-directories, so we check that as a stop gap solution for 3.30
since we didn't have time to actually query what directories tracker
is tracking and match that.

This work makes it so that we show the star action on tracked
directories.
2019-02-04 19:16:48 +01:00
Carlos Soriano
10af9a05a9 Flatpak: Use master SDK
We are close to 3.32, let's dogfood. We also need to try the new theme.
2019-01-17 13:54:30 +01:00
Ernestas Kulik
34321c9380 org.gnome.NautilusMaster.yml: Fix gexiv2 options 2019-01-11 09:27:42 +00:00
Ernestas Kulik
c600aae36a org.gnome.NautilusMaster.yml: Fix gexiv2 options 2019-01-11 09:26:00 +00:00
Debarshi Ray
0f38ffd494 Use CMake's Ninja backend
The difference between Make and Ninja for full, non-incremental builds
isn't that much [1,2]; but Ninja is already being used by Meson, so
why not?

[1] https://david.rothlis.net/ninja-benchmark/
[2] http://hamelot.io/programming/make-vs-ninja-performance-comparison/

https://gitlab.gnome.org/GNOME/nautilus/merge_requests/386
2019-01-10 14:09:16 +00:00
Jordan Petridis
6b64657848
Flatpak: do not build gtk4 from source.
Gtk4 is included in the master Sdk now.
2018-12-14 01:35:48 +02:00
Jordan Petridis
0428392dde
Flatpak: remove no longer needed options
builddir: true is assumed always whenever the buildsystem is meson.

libdir no longer needs to be specified, and cmake was patched to
be able to deal with lib64. See [1] for more.

[1]: https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/77
2018-12-14 01:27:44 +02:00
Jordan Petridis
be1888bc50
Flatpak: get gexiv2 module to compile again
This seems to have been broken for a while now cause by default
it tries to install a python overide in the python shared packages
in /usr, but this is immutable since it comes from the runtime.

This patch disables that.
2018-12-14 01:22:05 +02:00
Ernestas Kulik
8442b4e7dd flatpak: Fix fallout from JSON-YAML conversion 2018-12-06 08:15:53 +00:00
Ernestas Kulik
3ae0c8901e flatpak: Fix JSON manifest some more
Booleans are not strings.
2018-12-06 08:06:48 +00:00
Ernestas Kulik
6580594954 flatpak: Fix JSON manifest
The profile option is set to a wrong value.
2018-12-06 08:02:37 +00:00
Vaibhav Yadav
9e166fc9ee Replacing gcovr module with gcovr.json
Currently network is used during build time because of pip fetching from
internet.
However network should not be used during build time.
To fix this issue, use gcovr.json generated by flatpak-pip-generator
and replace them with gcovr module in org.gnome.Nautilus.json and
org.gnome.Nautilus.yml and remove build option that uses network.

Closes issue https://gitlab.gnome.org/GNOME/nautilus/issues/681
2018-11-20 14:02:20 +00:00
Carlos Soriano
a0f07a0445 Flatpak: Use json2yaml tool for the yaml manifest
So they are more equal and we have a simple way to generate it.
2018-10-09 13:16:24 +00:00
Carlos Soriano
837123f9ff Flatpak: Add gcovr
So we can generate coverage reports.

And do it with pip, cannot make my system run the pipToFlatpak tool
locally.
2018-10-09 13:16:24 +00:00
Carlos Soriano
9fbb8a8557 Flatpak: Update to 3.30 2018-10-09 12:08:17 +02:00
Ernestas Kulik
f6d8292b57 Flatpak: Remove Automake leftovers from exiv2 2018-10-09 07:29:41 +00:00
Ernestas Kulik
dd0e258d49 Flatpak: master: use url, not path for git repo 2018-10-05 20:08:56 +03:00
Jordan Petridis
61e54e4f8d Revert "Flatpak: Remove unecessary meson options"
This reverts commit a565907fe6
2018-09-20 16:49:00 +00:00