Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builder-manifest: run appstream compose with --no-partial-urls #576

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hfiguiere
Copy link
Contributor

Only when mirroring. This is to be compatible with existing flatpak deployment and appstream-glib

See ximion/appstream#505

Should fix #573

This can be tested on flathub with flathub/org.flatpak.Builder#196

@bbhtt
Copy link
Contributor

bbhtt commented Dec 28, 2023

This requires at least appstreamcli>=0.16.3 in meson.build.

I think it is fine, partials URLs when a baseurl is supplied doesn't make sense. The spec says icon/image should start with http(s)

Should fix #573

I don't think this fixes that issue? --no-partial-urls does not change the location of screenshots, they are still in share/app-info/media. The expectation there is, builddir/screenshots (it's not that flatpak-builder does not create screenshot dir, but it changed the previous location)

@barthalion
Copy link
Member

This fixes a problem we would experience in the Flathub backend, and --no-partial-urls was added per our request.

@TingPing
Copy link
Member

This requires at least appstreamcli>=0.16.3 in meson.build.

I think this is all that's needed to land this.

@hfiguiere
Copy link
Contributor Author

../meson.build:44:15: ERROR: Invalid version of program, need 'appstreamcli' ['>= 0.16.3'] found '0.16.1'.

I guess building on fedora 38 is a no go.

@hfiguiere
Copy link
Contributor Author

Also it's a runtime dependency while this is a meson (build-time) check.

@hfiguiere
Copy link
Contributor Author

done, but I don't think it will build in CI

@hfiguiere
Copy link
Contributor Author

On CI:

Program appstreamcli found: NO found 0.15.2 but need: '>= 0.16.3' (/usr/bin/appstreamcli)

@TingPing
Copy link
Member

Ubuntu 23.10 has 0.16.2... how annoying.

Only when mirroring. This is to be compatible with existing flatpak
deployment and appstream-glib

See ximion/appstream#505

Should fix flatpak#573

Signed-off-by: Hubert Figuière <hub@figuiere.net>
@hfiguiere hfiguiere marked this pull request as draft February 21, 2024 18:46
@GeorgesStavracas
Copy link
Member

Ubuntu folks clarified that it's unlikely they'll ever update the appstream package, so either the Ubuntu workflows are dropped, or updated to a non-LTS version

@hfiguiere
Copy link
Contributor Author

I'll reset the checks in meson and check at runtime in some way. Using CLI as an API...

@barthalion
Copy link
Member

And this, in turn, explodes with this:

Unable to set icon policy: 64x64@1 icons were not selected for being cached, which is not permitted.

so I'm dropping it after all

@hfiguiere
Copy link
Contributor Author

The approach here would be to degrade if the version of appstream is too low. But the check is a bit too hackish.

Checking in meson.build is kind of irrelevant since it's build time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

screenshots folder is no longer created in the builddir
5 participants