-
Notifications
You must be signed in to change notification settings - Fork 119
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
Statically linked appstreamcli #128
Comments
As an aside, I think a web service where you could check AppData would be a really useful thing to have. Personally I'd much rather have appstreamcli in the default flatpak freedesktop runtime, which could be updated nightly. |
I am trying to do a static build, so I added to the top of
But I run into:
What do I need to do? |
Note to self how I made a self-standing AppImage: AppImage/AppImageKit#225 (comment) |
@ximion let me know whether you would like to have a PR that generates such an AppImage from the Travis CI build. It would be 20 MB large because it would have to bundle all involved libraries and the loader. |
I am not very keen on shipping any "official" binary here, because I would not use (and test) that, and I prefer people building their own AppStream version. @hughsie Coincidentally I have written a tiny web service that does exactly that (check AppStream files with ascli), it was part of my D experiments. In order to make the thing available publicly, I would need to basically rewrite some chunks, because the code was just a learning exercise (and it's not very good). |
@ximion for AppImage, a static build (or a library that still runs on 14.04 LTS) could go into appimagetool (the tool that is used to generate AppImages). Currently appimagetool only verifies AppStream metainfo files if |
Meson allows you to make a version of appstreamcli that is statically linked to libappstream relatively easily. With libappstream linked in statically, appstreamcli still requires these libraries:
(only the dependency on libstemmer can be switched off) |
@probonopd I don't think there is much I can do in AppStream itself as of now - things might get easy for you when mesonbuild/meson#484 is resolved, and linking libappstream into appstreamcli as static library is also an easy task, but anything more is more tedious to do. |
OK @ximion thanks for the hint. In the meantime, I am happily using an appstreamcli-x86_64.AppImage that I've put together with this method. Works for me on Ubuntu 14.04 on Travis CI. |
Maybe a hosted version as a webservice would be a solution - people could POST their file there for validation and get back a response. |
That could relatively easily be done, but I am very worried about the volume of requests that service would get (and I'd have to figure out where to host it). |
A statically linked
appstreamcli
of the latest release would be tremendously helpful, since the AppStream spec and the tool are evolving and currently users suffer from outdated versions delivered with distributions. This is especially cumbersome for LTS and Enterprise distributions.Hence, it would be very welcome if this project could build and provide a static version.
The text was updated successfully, but these errors were encountered: