Commit graph

90 commits

Author SHA1 Message Date
Niels De Graef
be3ed978e2 Draft: Port to GTK4 2025-12-15 09:40:38 +01:00
Niels De Graef
0dad64a81d Port plugins from libpeas-1 to libpeas-2
The newer version of libpeas was released a couple of years ago already,
and at this point should probably be consdered the only maintained
version.

The changes are pretty minimal, and most should be pretty obvious from
the libpeas migration guide. The only annoying thing is that we can't
use `Peas.Engine.create_extension()` directly, since it's not exposed to
language bindings (even to Vala, which supports varargs, but alas).

Link: https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-2/migrating-1to2.html

Fixes: https://gitlab.gnome.org/GNOME/geary/-/issues/1690
2025-12-12 01:02:12 +01:00
Niels De Graef
f8f1e228e0 flatpak: Stop bundling libproxy
The fixes we need are now part of the nightly GNOME runtime, so we no
longer need to bundle the latest mainline.

Fixes: https://gitlab.gnome.org/GNOME/geary/-/work_items/1693
2025-12-06 00:32:14 +01:00
Niels De Graef
fbb9ba1e49 flatpak: Stop bundling copy of libsecret
We started bundling libsecret in commit a085f90831 to workaround an
issue in the 0.20 version where looking up a password could indefinitely
hang.

Since version 0.21.4, this has been resolved, and this version is also
available in the GNOME runtime, so let's stop building it ourselves.
2025-11-28 00:07:44 +01:00
Niels De Graef
e4a50ed3b2 flatpak: Don't specify branch
Apparently, this breaks the Flatpak CI yaml assumptions and makes the
"build-bundle" step there break with the following error:

> error: Refspec 'app/org.gnome.Geary.Devel/x86_64/test' not found
2025-11-27 20:19:56 +01:00
Niels De Graef
3ba5c44ab8 flatpak: Temporarily bundle libunwind
Some of our `ComposerWidgetTest` tests are failing with SIGSEGV.

This seemingly happens because they create a new
`Geary.AccountProblemReport`; for example, because a `MockAccount`
doesn't actually implement `get_required_special_folder_async()`.

That in turns will indirectly create a `Geary.ErrorContext` which will
try to use libunwind to create a stack trace. And there, it seems that
`unw_get_proc_name()` is the function that is actually segfaulting.

Looking at libunwind recent history, a similar crash was reported [1]
which has been fixed in libunwind commit b32ce6ee36. Since that hasn't
been backported into a release, let's bundle the latest mainline from
libunwind instead to get the fixes in.

[1]: https://github.com/libunwind/libunwind/issues/827
2025-11-27 19:58:46 +01:00
Niels De Graef
b1e53e5e7d flatpak: Patch libproxy
The latest main branch contains a fix that demotes a warning to a debug
message, which solves some of our tests failing.
2025-11-25 18:03:36 +01:00
Niels De Graef
e08e3a8c0c flatpak: Add test-args
This should fix several failures when running the test suite in our
Flatpak build, as they are not able to reach the Wayland compositor.
2025-11-24 23:39:15 +01:00
Niels De Graef
3ff4fe5b6a flatpak: Use local directory for geary module
While we're at it, set "run-tests" to true to make sure people are
running tests with flatpak-builder.
2025-11-24 12:26:29 +01:00
Niels De Graef
fa129c5bbf Revert "flatpak: Fix gmime build"
The patch got merged upstream, so no need for us to carry it anymore.

This reverts commit 2572bef6dd.
2025-11-24 09:13:37 +01:00
Niels De Graef
70791ac59f flatpak: Adjust snowball patch for latest master
Add a bit more comments in the patch file.
2025-11-24 01:01:41 +01:00
Niels De Graef
2572bef6dd flatpak: Fix gmime build
Apparently it does a explicit version check for automake, but in such a
way that it needs to be patched on new automake versions. Patch this out
while we await the PR upstream to be merged into master.

See: https://github.com/jstedfast/gmime/pull/180
2025-11-24 00:44:03 +01:00
Niels De Graef
de42107661 flatpak: Update libical version
The current version doesn't build anymore, which is breaking CI
2025-11-24 00:22:26 +01:00
Balló György
e56734a97d build: Use appstream for appdata validation test
appstream-glib is under heavy maintenance mode and recommends using
appstream instead.
2025-02-28 17:33:22 +00:00
Niels De Graef
e91c2ecb47 flatpak: folks now uses main instead of master 2025-02-24 22:21:21 +01:00
Niels De Graef
efb2d2b815 flatpak: Add appstream-glib module
It's no longer part of the SDK, so we have to build it ourselves
2024-09-14 12:22:04 +02:00
Niels De Graef
ae459a7240 flatpak: Update gmime module
It looks like gmime moved to github a while ago already [1], which
should hopefully contain some fixes that are preventing our flatpak
builds from, well, actually building.

[1]: https://github.com/jstedfast/gmime/issues/119
2024-09-13 19:43:45 +02:00
Niels De Graef
3bc6452f63 flatpak: gspell switched to meson on master 2024-08-17 10:17:22 +00:00
Niels De Graef
b79bbad8ae flatpak: Bump libsecret version
And build with Meson now that autotools support has been removed.
2024-08-17 10:17:22 +00:00
Cédric Bellegarde
9faf1659c0 flatpak: stick to libpeas1 for now 2023-03-24 06:52:06 +01:00
Cédric Bellegarde
a1f227dd1b flatpak: Allows org.freedesktop.login1 2023-02-05 17:11:52 +01:00
Cédric Bellegarde
7503950a38 flatpak: move to gitlab.gnome.org GMime version
duplicate_mailbox() unit test fails since this commit:
4a80ae527d

The commit is ok because it respects RFC 5322: 1 max From/To/Cc/Bcc
header.

We can't fix the unit test without breaking Ubuntu/Fedora builds so just
use same version.
2022-08-25 16:29:29 +02:00
Cédric Bellegarde
0d066955b7 flatpak: Fix branch name 2022-08-03 21:49:52 +02:00
Cédric Bellegarde
796845aaa7 build: Fix building against libsoup3
- Move to WebKitGTK 4.1
- Remove commit hold on EDS
2022-07-13 20:10:22 +02:00
Cédric Bellegarde
fdc2828d1b build: Update Flatpak manifest
- Update libstemmer patch
- Some buildsystem changes
- evolution-data-server moved to libsoup3. Fixed commit until Folks is
  ported to libsoup3
2022-07-05 21:55:07 +02:00
Cédric Bellegarde
adca034818 build: Use JSON Flatpak manifest
Generating JSON from meson does not work as flatpak-builder needs it
earlier
2022-07-05 21:55:03 +02:00
Cédric Bellegarde
71c3100eec client: accounts: Use new GNOME Settings app-id
Fix #1371
2022-07-02 22:50:20 +02:00
Michael Gratton
b0ad8274a5 build: Unpin GMime back to mainline for nightly Flatpak
It's had a pre-release version bump, so we can now tell the difference
if it's been built with the recent incompatible GI/VAPI changes.

See !699
2021-05-15 14:54:13 +10:00
Michael Gratton
ec3cc82bea build: Remove handy from Flatpak nightly manifest
Nightly SDK now ships 1.2.1, so this is no longer needed.
2021-04-28 08:47:57 +10:00
Michael Gratton
c0577d4bf6 build: Fix Flatpak CI FTB with GMime mainline
See !699 and https://github.com/jstedfast/gmime/pull/101
2021-04-22 22:39:16 +10:00
Adrien Plazas
5f0f9b57b2 flatpak: Don't drop the libhandy VAPI
This avoids prematurely cleaning /share for libhandy, which would drop
its VAPI and hence make Geary not build.
2021-04-14 12:54:37 +02:00
Michael Gratton
11882a1055 build: Pull in libhandy as a submodule until 1.2.1 is packaged 2021-04-14 00:49:45 +10:00
Michael Gratton
38231f04fc Merge branch 'mjog/1147-flatpak-libsecret-hang' into 'mainline'
org.gnome.Geary.yaml: Work around password look hang when sandboxed

Closes #1147

See merge request GNOME/geary!672
2021-02-27 00:43:56 +00:00
Michael Gratton
61570501a5 org.gnome.Geary.yaml: Work around password look hang when sandboxed
Libsecret 0.20's portal support is completely hosed at the moment.
Ship 0.19 until that is resolved. See GNOME/libsecret#58

Fixes #1147
2021-02-27 11:15:35 +11:00
Michael Gratton
46cf245440 org.gnome.Geary.yaml: Fix EDS contacts not working under flatpak, again
Stop trying to chase EDS DBus versioning, just allow access to any
EDS endpoint.
2021-02-25 20:45:28 +11:00
Michael Gratton
29f6ae63b0 org.gnome.Geary.yaml: Workaround for WebKitGTK not printing under Flatpak
Since WebKitGTK does not currently support printing under Flatpak,
enable RW access to XDG downloads folder, so at least people can print
to a PDF, then print that.

See https://github.com/flathub/org.gnome.Geary/issues/42
2021-01-17 20:19:36 +11:00
Michael Gratton
9da2a57c6f org.gnome.Geary.yaml: Remove libhandy module, it is now in the SDK 2020-10-25 19:43:52 +11:00
Michael Gratton
2e27a06889 build: Fix flatpak CI failing
Build libstemmer as a shared library. Use current mainline since that
at least supports build system args.

Shared lib patch courtesy of Stefano Rivera <stefanor@debian.org>,
updated to current head.
2020-10-14 20:05:15 +11:00
Michael Gratton
899834189c org.gnome.Geary.yaml: Enable copying release config for nightlies 2020-10-14 09:21:34 +11:00
Michael Gratton
2d12b25e2c build: Switch over to use libhandy-1
Add as a optional submodule for people who don't have it installed yet.
2020-08-18 22:10:34 +10:00
Michael Gratton
d5856bf72d org.gnome.Geary.json: Include missed fix from the yaml version 2020-05-06 18:33:08 +10:00
Michael Gratton
f3a3f2c6e6 org.gnome.Geary.yaml: Bump libical version and sort build args 2020-05-04 09:41:47 +10:00
Michael Gratton
1887d18c21 org.gnome.Geary.yaml: Unpin GSpell now that master is building again 2020-05-04 09:41:09 +10:00
Michael Gratton
f7db76a594 org.gnome.Geary.yaml: Pin ytnef to last known good version
While https://github.com/Yeraze/ytnef/issues/81 remains an issue, pin
to 1.9.3 so CI goes green again.
2020-05-04 09:22:44 +10:00
Michael Gratton
c7ea11a2c2 org.gnome.Geary.yaml: Fix the actual problem, bad GSound git URI 2020-04-06 09:37:43 +10:00
Michael Gratton
c9c5eb15dc org.gnome.Geary.yaml: Explicitly specify master branch for git sources
Hopefully fix current Flatpak CI FTB
2020-04-06 09:37:43 +10:00
Michael Gratton
9402e71500 org.gnome.Geary.yaml: Include libcanberra in build anyway for GSound 2020-04-03 11:21:43 +11:00
Michael Gratton
f443f671f2 org.gnome.Geary.yaml: Disable libcanberra in EDS now it is not shipped
Fixes CI build.
2020-04-03 10:03:01 +11:00
Michael Gratton
3fa1665690 org.gnome.Geary.yaml: Remove unused EDS config opts, sort remaining 2020-04-03 10:02:07 +11:00
Michael Gratton
ab635f4937 org.gnome.Geary.yaml: Add Pulse Audio and FDO sound theme
Former fixes Sent Mail plugin from being able to play, latter provides
it with something to play.

Fixes #752
2020-03-30 17:01:19 +11:00