From ade9a1f720b5bde2afa8e5a01ffd92cac7673eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Wed, 27 Dec 2023 17:43:23 -0500 Subject: [PATCH] flatpak-builder: tell appstream compose to canonicalize URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hubert Figuière --- org.flatpak.Builder.json | 9 ++++++--- patches/flatpak-builder-appstream-cli-urls.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 patches/flatpak-builder-appstream-cli-urls.patch diff --git a/org.flatpak.Builder.json b/org.flatpak.Builder.json index 394575e..b5e521d 100644 --- a/org.flatpak.Builder.json +++ b/org.flatpak.Builder.json @@ -385,13 +385,15 @@ "name": "appstream", "buildsystem": "meson", "config-opts": [ + "-Dapidocs=false", + "-Dgir=false", "-Dcompose=true" ], "sources": [ { "type": "archive", - "url": "https://github.com/ximion/appstream/archive/refs/tags/v0.16.3.tar.gz", - "sha256": "4470a27474dc3cc4938552fbf0394b6a65d8a2055d4f4418df086d65d8f2ba29" + "url": "https://github.com/ximion/appstream/archive/refs/tags/v1.0.1.tar.gz", + "sha256": "3a6877c887627aed515e9802f63ac7bd83fffab4c2cad33c809c692c4bd8da48" } ], "modules": [ @@ -499,7 +501,8 @@ { "type": "patch", "paths": [ - "patches/flatpak-builder-lfs.patch" + "patches/flatpak-builder-lfs.patch", + "patches/flatpak-builder-appstream-cli-urls.patch" ] } ] diff --git a/patches/flatpak-builder-appstream-cli-urls.patch b/patches/flatpak-builder-appstream-cli-urls.patch new file mode 100644 index 0000000..204cfa4 --- /dev/null +++ b/patches/flatpak-builder-appstream-cli-urls.patch @@ -0,0 +1,12 @@ +diff --git a/src/builder-manifest.c b/src/builder-manifest.c +index fa2fb6e2..84e54bbd 100644 +--- a/src/builder-manifest.c ++++ b/src/builder-manifest.c +@@ -3033,6 +3033,7 @@ builder_manifest_cleanup (BuilderManifest *self, + g_print ("Running appstreamcli compose\n"); + g_print ("Saving screenshots in %s\n", flatpak_file_get_path_cached (media_dir)); + if (!appstreamcli_compose (error, ++ "--no-partial-urls", + "--prefix=/", + origin, + arg_base_url,