Commit graph

257 commits

Author SHA1 Message Date
Bruno Lopes
cc02900d30 build/linux: Update exiv2 module to 0.28.7
(cherry picked from commit 27a89a0c8a)
2025-09-17 17:31:21 +02:00
Bruno Lopes
5cf0f58b49 build/linux: Update exiv2 module to 0.28.6
Ported from 91e327ab7a

(cherry picked from commit 04622852fa)
2025-09-17 17:30:37 +02:00
Bruno Lopes
e0fafcfda0 build/linux: Remove 'x-checker-data' while not on stable Ghostscript
Following faf0fd74

(cherry picked from commit 4ec1368af9)
2025-09-17 17:17:05 +02:00
Ondřej Míchal
8bec5e0910 build/linux: Re-add ghostscript using a new release candidate
This is not a full new release but we might as well test the new
release-candidate to see if it fixes the build issues with GCC 15.

Partially reverts 4ae861f5ac

(cherry picked from commit faf0fd7401)
2025-09-17 17:17:05 +02:00
Bruno Lopes
dd370e5dd0 build/linux: Make bund_usr function more robust on AppImage script
(cherry picked from commit c734c0f33f)
2025-09-17 17:17:05 +02:00
Bruno Lopes
e1df31ce2e build/linux: 'xdg-email' works on Snap package
(cherry picked from commit 05cde48a3e)
2025-09-17 17:02:01 +02:00
Bruno Lopes
1c50d3637c build/linux: Update imath module to 3.2.1
(cherry picked from commit ad03d6c94a)
2025-09-17 17:01:17 +02:00
Bruno Lopes
db481eff60 build/linux: Remove dangling .patch files after org.gimp.GIMP.HEIC drop
x265 is not being built anymore since eefc2bea

(cherry picked from commit f6704a84fa)
2025-09-17 17:01:17 +02:00
Bruno Lopes
198b08dc2f build/linux: Take AppStream metadata for Snap package
Like the Flatpak and, at a lesser extent, AppImage.

(cherry picked from commit d8a264283b)
2025-09-17 16:47:15 +02:00
Bruno Lopes
70652c0a8f build/linux: Update Snap README regarding babl and GEGL tagging
(cherry picked from commit bb1d96528d)
2025-09-17 16:47:15 +02:00
Bruno Lopes
0079ca3db2 build/linux: appimagetool now supports specifying .appimage path on .zsync
See: https://github.com/AppImage/appimagetool/pull/111
(cherry picked from commit 9eee96328b)
2025-09-17 16:47:15 +02:00
Bruno Lopes
51ec493554 build/linux: Use $CRAFT_PART_INSTALL for libheif plugins detection on Snap
$CRAFT_STAGE was being used but that is wrong since nothing is staged yet.
$CRAFT_PART_INSTALL is the right place where the packages are available.

(cherry picked from commit 79a92ce439)
2025-09-17 16:44:50 +02:00
Bruno Lopes
c9bbeed48a build/linux: Drop org.gimp.*.HEIC in favor of org.freedesktop.*.codecs-extra
See: https://github.com/flathub/org.gimp.GIMP/issues/414
(cherry picked from commit eefc2bea1a)
2025-09-17 16:44:50 +02:00
Bruno Lopes
eaa43858d3 build/linux: Only submit snaps to Snap Store on releases
(cherry picked from commit 0c1963ca7c)
2025-09-17 16:44:50 +02:00
Bruno Lopes
1cd9e8ca89 build/linux: More fixes to the README
(cherry picked from commit 0868cf3cd3)
2025-09-17 16:44:50 +02:00
Bruno Lopes
2c16fb989b build/linux: Fix some typos on Snap README
(cherry picked from commit bb26b9f81d)
2025-09-17 16:44:50 +02:00
Bruno Lopes
41689ef2e2 build/linux: Add Snap maintenance README like Flatpak and MSIX
But, right now, the "## Stable and Development releases"
section is not applicable due to the pass over being WIP:
https://github.com/snapcrafters/gimp/issues/447

(cherry picked from commit 052eb474cc)
2025-09-17 16:44:50 +02:00
Bruno Lopes
2b06439488 build/linux: Change collapsible section ID to the more technical '*_submission'
We already use '*_submission' on the MSIX script.

Submission is the first act, the one which we trigger on CI.
The publishing is done by the store (Flathub or Snap Store).

(cherry picked from commit 2e12de6747)
2025-09-17 16:40:25 +02:00
Bruno Lopes
264bb8185e build, gitlab-ci: Drop last ccache shenanigans
Let's prioritize reproducibility over small performance gains,
specially when we have too many packages do deal with.

(cherry picked from commit 839064a6c6)
2025-09-17 16:40:25 +02:00
Bruno Lopes
b3aaae6b46 build/linux, gitlab-ci: Change .flatpak-builder artifact naming to be more consistent
(cherry picked from commit 56cc7e363b)
2025-09-17 16:40:25 +02:00
Bruno Lopes
c5b03588ad build/linux: Restore comment of '--destructive-mode'/host mode on Snap script
It was on the env section before the remote-build drop. Let's restore it and
move to the build section which is more appropriate.

(cherry picked from commit aee3bd23d6)
2025-09-17 16:40:25 +02:00
Bruno Lopes
06caf0f336 build/linux: Add check to ensure we use the right 'snapcraft-rocks' image
If the container image don't have the base snap required by
snapcraft.yaml, it will naturally fail.

(cherry picked from commit a87ee3c241)
2025-09-17 16:40:25 +02:00
Bruno Lopes
b1397d782f build/linux: Rework deps installation message on Snap script
The new text is more alike to the flatpak one, which
should make easier to understand both scripts.

(cherry picked from commit d4aac4a3e5)
2025-09-17 16:40:25 +02:00
Bruno Lopes
14a90bc49d build/linux: Make Snap on GNOME runners (not on Launchpad)
Now can make snaps 3x faster on CI without snapcraft remote-build.

(cherry picked from commit 5da4b89002)
2025-09-17 16:40:25 +02:00
Bruno Lopes
8fc0bca456 build/linux: Remove redundant plugs: in favor of 'gnome' Snap extension
See: https://documentation.ubuntu.com/snapcraft/stable/reference/extensions/gnome-extension/
(cherry picked from commit b960be9735)
2025-09-17 16:40:25 +02:00
Bruno Lopes
0d6175e2a5 build/linux: Update imath and graphviz flatpak modules
Synced from: e6c69021e3

(cherry picked from commit 3bf6aaa0fa)
2025-09-17 16:40:24 +02:00
Bruno Lopes
378f990fe9 build/linux: Add comment about why we don't use config.h on Snap dist
(cherry picked from commit d5d6b5e726)
2025-09-17 16:40:24 +02:00
Bruno Lopes
ff4e58b89c build/linux: Add some sub comments on flatpak dist tools section
(cherry picked from commit 771fcb576f)
2025-09-17 16:40:24 +02:00
Bruno Lopes
b2357ffe26 build/linux: Clarify files/repo section comment on Flatpak dist script
(cherry picked from commit 0f91efa3d5)
2025-09-17 16:40:24 +02:00
Bruno Lopes
862bbe0014 build/linux: Fix .snap path on 'snapcraft upload' command
(cherry picked from commit bf03d71ad2)
2025-09-17 16:40:24 +02:00
Bruno Lopes
f02ed53502 build/linux: Remove exit check on flatpak dist
Let's hope this fixes the bug.

(cherry picked from commit 855d07193b)
2025-09-17 16:40:24 +02:00
Bruno Lopes
a8f194d6c1 build/linux: Hopefully bug of only aarch64 being distributed due to exit code
(cherry picked from commit 6645f245cb)
2025-09-17 16:40:24 +02:00
Bruno Lopes
251870ade6 build/linux: Fix wrong extraction of repo*.tar
(cherry picked from commit 19e83a0eb5)
2025-09-17 16:40:24 +02:00
Bruno Lopes
8a928fb48c build/linux: Fix typo in flatmanager_text variable evaluation
(cherry picked from commit e1b2b44f3b)
2025-09-17 16:40:24 +02:00
Bruno Lopes
343613c2e1 build/linux: Fix build-bundle on gimp job after
a6544047

(cherry picked from commit 34285d4459)
2025-09-17 16:40:24 +02:00
Bruno Lopes
cf8ccde824 build/linux: Fix lack of desktop icon when running Snap
(cherry picked from commit 0f09167e50)
2025-09-17 16:40:24 +02:00
Bruno Lopes
40a2ffc0ab build/linux: Add comment about 'dot' situation on snapcraft.yaml
(cherry picked from commit fa19794d74)
2025-09-17 16:40:24 +02:00
Bruno Lopes
0756e9eb29 build/linux: Fix for glib_networking_works test on Snap
(cherry picked from commit 1ec86c7d6a)
2025-09-17 16:40:24 +02:00
Bruno Lopes
f322a862e2 build/linux: Remove bogus pygimp.interp creation on Snap
(cherry picked from commit 3c02c8bcb7)
2025-09-17 16:40:24 +02:00
Bruno Lopes
75a3035e9e build/linux: Fix local distribution of .flatpak
(cherry picked from commit a65440478c)
2025-09-17 16:40:24 +02:00
Bruno Lopes
9a76ae6f22 build/linux: Add 'snapcraft pack' code on local snaps
(cherry picked from commit 56e8275690)
2025-09-17 16:40:24 +02:00
Bruno Lopes
8601b86229 build/linux: Fix 'if not can_import_heic and not can_import_avif' test on Snap
Similar to c860ffe2 but now for build-time.

(cherry picked from commit c25418f38a)
2025-09-17 16:40:24 +02:00
Bruno Lopes
e942a9889e build/linux: Print more debug info on Snap dist: name, track and gimp_version
That completes a3aca3c1 making the snap script just like the other ones but
it differs on the way to get GIMP_UNSTABLE since we don't have access to
the GIMP's config.h file after building with snapcraft remote-build.

(cherry picked from commit effedb9248)
2025-09-17 16:40:24 +02:00
Bruno Lopes
f3f5545b64 build/linux: License snapcraft.yaml under GPL-3.0+
Like all other build files in this repo

(cherry picked from commit f157206146)
2025-09-17 16:40:24 +02:00
Bruno Lopes
204c45a24b build/linux: Fix libheif comment on Snapcraft (it is HEJ2 not J2K)
So, in commits c860ffe2 and 2e5ac18d you should read HEJ2

(cherry picked from commit 59ab053ab9)
2025-09-17 16:40:24 +02:00
Bruno Lopes
8b151b07b6 build/linux: Do not plug with useless ffmpeg content snap
libheif from GNOME SDK Snap can't directly use codecs from ffmpeg due
to the use of plugin system (plugins on LIBHEIF_PLUGIN_PATH) at build time.

Also, even if it could (by custom building, which I don't plan to do),
codecs like libde265/x265 are always present in GNOME runtime Snap
(unlike GNOME runtime flatpak) so there is no way of not installing them.

(cherry picked from commit 2e5ac18d78)
2025-09-17 16:40:24 +02:00
Bruno Lopes
0765b43dc5 build/linux: Fix AVIF, HEIC and J2K support on Snap package
The GNOME SDK Snap have only AVIF and HEIC decoding plugins,
no AVIF or HEIC encoding plugins and no J2K at all. So,
let's complete the support with 'build-packages:'.

(cherry picked from commit c860ffe2a8)
2025-09-17 16:40:24 +02:00
Bruno Lopes
a1662b354e build/linux: Add comment about wreid libexpat1-dev situation on Snap
(cherry picked from commit 863152f1af)
2025-09-17 16:40:24 +02:00
Bruno Lopes
ab32b16854 build/linux: Update libheif Flatpak module to 1.20.2
Synced from 93db928805

(cherry picked from commit d6766cc374)
2025-09-17 16:40:24 +02:00
Bruno Lopes
7d72a31431 build/linux: Move build-bundle code back to 3_dist-gimp-flatpakbuilder.sh
This makes more clear that making .flatpak is a dist stuff while
maintaining the multiarch support introduced in caf46017.

(cherry picked from commit 687382b98d)
2025-09-17 16:40:24 +02:00