-
Notifications
You must be signed in to change notification settings - Fork 13
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
AppStream 1.0 #47
base: master
Are you sure you want to change the base?
AppStream 1.0 #47
Conversation
It uses meson as a build time tool. Every time meson is used, building the latest version means that meson probably needs to be updated as well (which, in practical terms, means that the whole Linux distribution needs to be updated). So annoying. I don't like moving targets. |
Newst appstream needs newest meson, argh
Newer versions of things always seem to require more dependencies. Argh! Even with curl we get errors:
Meson is never new enough. Reason enough to avoid Meson altogether. |
@ximion is there a way to build appstream 1.0 without curl? Right now we are using a static build of a pre-1.0 version, and would like to go to 1.0 in the hope that the AppStream format is no longer subject to change. |
No, it is required for the portions of the spec that require network access. |
Thanks @ximion. Do you happen to know how to produce a static build of |
What kind of issue do you have? AppStream 1.0 doesn't have dependencies that 0.16.4 didn't also have, I think. |
Coming from 0.12.9. Currently running into |
All I need is the
Is there a way to just compile the |
That error indeed makes no sense, the function on that line isn't passed any kwargs. Can you easily upgrade to Meson 1.3.2, just to check if that helps? |
I don't think I can (easily) update Meson any further, as I have already updated to the latest version of Alpine as part of this PR. |
I was asking because this smells a bit like a Meson bug. Do you apply any patches to AppStream? What is in the line that it complains about in your copy? Because the upstream line does not make any sense here. |
Yes, I was indeed wondering the same thing. No, I am not applying any patches, except for some ad-hoc Lines 90 to 115 in 0aea9a2
|
Can you please drop the
lines? That is no way to disable anything, there is a lot of interdependencies here which can cause all kinds of issues. Dropping po/ is probably harmless, but the rest isn't! Use You can also drop the entire LMDB block, unless something else needs it - because AppStream does not require it anymore for a long time. Besides all of that, |
Thanks for your help @ximion. |
The original command asks for a password interactively, which does not work on CI
It's not essential if you just need validation and don't need hardware information. Just pass |
libxmlb has |
Just was gonna elaborate... erm, complain about, that we are now firmly in Gnome land, with stuff like gobject-introspection-dev... |
In an effort to fix `/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: attempted static link of dynamic object '/usr/lib/libglib-2.0.so'`
Almost there...
What is it this time? This whole exercise is a great reminder why I like Golang so much. Writing https://github.com/probonopd/appstreamlint from scratch was a breeze compared to getting appstreamcli 1.0 built as a static binary. |
If you would just use LD_LIBRARY_PATH, you could avoid the static linking annoyance completely ;-) |
Playing around with bundling the
Getting rid of |
Looks fine, most dependencies likely come in via Curl to support loading data from the web. |
Looks like you can build it fully static on musl if you remove the systemd dependency. |
Interesting. I am already using |
As per @leleliu008, As per the comment on: leleliu008/ppkg-formula-repository-official-core#7 , You had just need to remove the systemd depdency and change systemd to false: |
We don't have a |
This PR shall build AppStream v1.0.x instead of what we have been using so far.
probonopd/go-appimage#272
Note to self: If this doesn't work, a possibly less painful alternative might be https://github.com/probonopd/appstreamlint