Repository navigation
eilmeldung: use system aws-lc and sqlite - #585485
Conversation
|
Thanks! Uff, this really affects a lot of packages. Ironically, I just removed all build deps last week. Anyway, thank you very much for creating the PR! |
|
|
||
| nativeBuildInputs = [ | ||
| pkg-config | ||
| rustPlatform.bindgenHook |
There was a problem hiding this comment.
is this still needed? it builds fine without it
There was a problem hiding this comment.
I do get an error message when removing pkg-config from the nativeBuildInputs
error: Cannot build '/nix/store/4p6jxl23x4nzlnmwk4j2dsqh1w6j77dd-eilmeldung-1.10.0.drv'.
Reason: builder failed with exit code 101.
Output paths:
/nix/store/m6wr2hsfrqmvwd34r9x23ag4vsnng3s7-eilmeldung-1.10.0
Last 25 log lines:
> cargo:rerun-if-env-changed=LIBCRYPTO_AWSLC_STATIC
> cargo:rerun-if-env-changed=LIBCRYPTO_AWSLC_DYNAMIC
> cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
> cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
>
> --- stderr
>
> thread 'main' (1432) panicked at /build/eilmeldung-1.10.0-vendor/source-registry-0/aws-lc-sys-0.45.0/builder/main.rs:767:9:
> AWS_LC_SYS_USE_SYSTEM=1 requires a system-installed AWS-LC, but none was found.
> Set AWS_LC_SYS_SYSTEM_DIR to point at an install, provide OPENSSL_DIR, or unset AWS_LC_SYS_USE_SYSTEM to build from source.
> Re-run with `-vv` to see why each discovered candidate was rejected.
> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> warning: build failed, waiting for other jobs to finish...
For full logs, run:
There was a problem hiding this comment.
I think it was need before when we had more external deps (like clang, llvm, perl, openssl, etc.). If it builds fine then, no, it can be removed (pkgs-config is just a build dependency)
There was a problem hiding this comment.
@NyCodeGHG Could it be you had pkg-config in your build environment somehow?
There was a problem hiding this comment.
OK, can confirm that it doesn't compile without pkg-config.
There was a problem hiding this comment.
Better to be explicit than rely upon propagated deps. Both of the added deps ostensibly require it, though due to some linker flag shenanigangs you can make sqlite work without it. But I highly recommend always using pkg-config as that can break.
There was a problem hiding this comment.
Yes and pkg-config is exactly there to avoid linker flag shenanigangs anyway. :-)
There was a problem hiding this comment.
I was talking about rustPlatform.bindgenHook
There was a problem hiding this comment.
@NyCodeGHG Yes, you are right, it builds fine without rustPlatform.bindgenHook. There is no crate left which depends on bindgen it seems. Good catch, thanks!
Since this PR is already merged, I will open a new PR with the bindgen hook removed.
There was a problem hiding this comment.
I think tack has a similar issue. It wasn't building on my system.
RossSmyth
left a comment
There was a problem hiding this comment.
- builds
- ldd shows new deps
- runs post-build
Thanks!
Fix broken build, as tracked in:
more specifically:
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.