Skip to content

eilmeldung: use system aws-lc and sqlite - #585485

Merged
RossSmyth merged 1 commit into
NixOS:masterfrom
cornservant:pr/570943
Nov 9, 2026
Merged

RossSmyth merged 1 commit into
NixOS:masterfrom
cornservant:pr/570943

Conversation

@cornservant

Copy link
Copy Markdown
Contributor

Fix broken build, as tracked in:

more specifically:

Things done

@cornservant

Copy link
Copy Markdown
Contributor Author

@rachitvrma @christo-auer 👀

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! labels Nov 9, 2026
@christo-auer

Copy link
Copy Markdown
Contributor

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!

@christo-auer christo-auer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this still needed? it builds fine without it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NyCodeGHG Could it be you had pkg-config in your build environment somehow?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, can confirm that it doesn't compile without pkg-config.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and pkg-config is exactly there to avoid linker flag shenanigangs anyway. :-)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was talking about rustPlatform.bindgenHook

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think tack has a similar issue. It wasn't building on my system.

@RossSmyth RossSmyth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • builds
  • ldd shows new deps
  • runs post-build

Thanks!

@RossSmyth
RossSmyth added this pull request to the merge queue Nov 9, 2026
Merged via the queue into NixOS:master with commit 69f0de8 Nov 9, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants