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

Request: Appstream Cli #7

Closed
Azathothas opened this issue Nov 3, 2024 · 8 comments
Closed

Request: Appstream Cli #7

Azathothas opened this issue Nov 3, 2024 · 8 comments

Comments

@Azathothas
Copy link

Hi, hope you are doing well.
I have been busy over at https://github.com/Azathothas/Toolpacks-Extras, so very far away from static things..

Recently, I found the need to use appstream-cli: https://github.com/ximion/appstream
I tried building it, but found out it's not possible.
I came across ximion/appstream#128
That lead me to this: probonopd/static-tools#47
probonopd/go-appimage#272 (comment)

Would appreciate it if you could give it a look and say if it is indeed impossible to get a static appstream-cli
Thanks!

@leleliu008
Copy link
Owner

I will look into this tonight.

@leleliu008
Copy link
Owner

appstream package has been added in this repo https://github.com/leleliu008/ppkg-formula-repository-official-core/blob/master/formula/appstream.yml

It could be built as a fully statically linked executable against glibc.

If you want to built it as a fully statically linked executable against musl-libc, please remove systemd depencency, beacuase systemd needs a lot of patches for musl-libc, I have not done for it.

summary: Tools and libraries to work with AppStream metadata
web-url: https://www.freedesktop.org/wiki/Distributions/AppStream/
src-url: https://github.com/ximion/appstream/archive/refs/tags/v1.0.3.tar.gz
src-sha: dd7222519b5d855124fa803ce82a7cbf090ac6b2e44a5bc515e729b1f20a63ae
license: LGPL-2.1-or-later
dep-pkg: libxmlb libxml2 libyaml libcurl
dep-upp: gettext-tools itstool xsltproc docbook-xsl gperf

dopatch: gsed -i '/tests/d' meson.build

install: |
    mesonw \
        -Dsystemd=false \
        -Dstemming=false \
        -Dvapi=true \
        -Dgir=false \
        -Ddocs=false \
        -Dapidocs=false \
        -Dinstall-docs=false

I have no idea if it really works, I had never used it, you could test it.

@leleliu008
Copy link
Owner

https://github.com/fpliu1214/ppkg-package-manually-build/actions/runs/11711973185

@Samueru-sama
Copy link

https://github.com/fpliu1214/ppkg-package-manually-build/actions/runs/11711973185

Hey just in case, the binary isn't fully static:

image

@leleliu008
Copy link
Owner

leleliu008 commented Nov 7, 2024

mostly statically linked against glibc: https://github.com/fpliu1214/ppkg-package-manually-build/actions/runs/11711973185

fully statically linked against musl-libc, without libsystemd support: https://github.com/fpliu1214/test/actions/runs/11730041641

fully statically linked against glibc might not work, I didn't build it. if you want to try, please built it by yourself via https://github.com/leleliu008/ppkg-package-manually-build

@Samueru-sama
Copy link

mostly statically linked against glibc: https://github.com/fpliu1214/ppkg-package-manually-build/actions/runs/11711973185

fully statically linked against musl-libc, without libsystemd support: https://github.com/fpliu1214/test/actions/runs/11730041641

fully statically linked against glibc might not work, I didn't build it. if you want to try, please built it by yourself via https://github.com/fpliu1214/ppkg-package-manually-build

Thank you!

@leleliu008
Copy link
Owner

leleliu008 commented Nov 7, 2024

I build only x86_64 for you, if you want other arch, please refer to https://github.com/leleliu008/test/blob/master/.github/workflows/appstream.yml

@Azathothas
Copy link
Author

Thank you so much @leleliu008

I have commented here probonopd/static-tools#47 (comment), hopefully they can confirm if it works.

You may close this issue now.

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

No branches or pull requests

3 participants