New package: payload-dumper-go-1.3.0#60047
New package: payload-dumper-go-1.3.0#60047r0man1an wants to merge 1 commit intovoid-linux:masterfrom
Conversation
|
Did not expect that. I will have a look into it |
| pkgname=payload-dumper-go | ||
| version=1.3.0 | ||
| revision=1 | ||
| archs="x86_64* aarch64*" |
There was a problem hiding this comment.
I doubt that this is the correct solution.
Looked more like zstd dependency was missing.
There was a problem hiding this comment.
Looks like the used gozstd go module is pretty bad and ships binaries in the repo that are linked into the program. This is why it won't work with musl.
There was a problem hiding this comment.
This package works around it by dynamically linking system libzstd:
void-packages/srcpkgs/victoria-metrics/template
Lines 32 to 36 in caadef8
There was a problem hiding this comment.
Got it, makes sense. I'll apply the same fix from victoria-metrics to link against system libzstd and update the template. Thanks for the help, have a nice evening.
There was a problem hiding this comment.
I tested locally on x86_64 successfully.
The x86_64-musl build fails here due to a broken cross-x86_64-linux-musl toolchain in my local xbps-src env, so I couldn’t validate musl locally.
The change itself is limited to linking against system zstd as suggested
There was a problem hiding this comment.
Instead of cross compiling for x86_64-musl, use ./xbps-src -A x86_64-musl pkg payload-dumper-go.
There was a problem hiding this comment.
Thank you! I will review all failing points and hopefully fix them.
|
|
||
| go_build_tags="" | ||
|
|
||
| do_prepare() { |
There was a problem hiding this comment.
do_prepare is not a functions that exists. This should be pre_build or something like that.
But I think you also need to run go mod vendor so that the file actually exists for patching.
4d4bc1b to
ce26a01
Compare
|
All issues on musl that I could test were resolved |
| makedepends="liblzma-devel libzstd-devel" | ||
|
|
||
| pre_build() { | ||
| cd ${wrksrc} |
There was a problem hiding this comment.
wrksrc is the default directory.
|
Okay only one build failed and Lint is an easy fix. |
|
|
|
|
|
Really appreciate you taking the time to walk me through all of this and being so patient, even when I didn’t get it right the first few times. I’m still new to Void packaging, so it genuinely helped a lot to have it explained properly. Thanks again. |
83c1fca to
3de3ac6
Compare
|
xlint is happy now! |
Testing the changes
New package
Local build testing