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

reducePackageToml removes mandatory build dependency #334

Open
gvz opened this issue Oct 18, 2023 · 0 comments
Open

reducePackageToml removes mandatory build dependency #334

gvz opened this issue Oct 18, 2023 · 0 comments
Labels
crate broken A crate needs an override in order to succced

Comments

@gvz
Copy link

gvz commented Oct 18, 2023

Hi,

while trying to move a project the uses zmq into a rust flake I came across the problem that the build dependency zeromq-src = { version = "0.2.1" } was remove from the Cargo.toml of zmq-sys. Removing this dependency leads to the following error:

 error: builder for '/nix/store/dk9qgqqg1paakxzxscdrxsi2a0b308ss-crate-zmq-sys-0.12.0.drv' failed with exit code 101;
       last 10 log lines:
       >
       >   --- stderr
       >   cc1: fatal error: /build/zeromq-src-0.2.6+4.3.4/src/strlcpy.c: No such file or directory
       >   compilation terminated.
       >
       >
       >   error occurred: Command "/nix/store/3hbxw05vfs6m1155xa6pvribs3bv777n-gcc-wrapper-12.2.0/bin/c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/build/zeromq-src-0.2.6+4.3.4/vendor/include" "-I" "/build/zeromq-src-0.2.6+4.3.4/vendor/src" "-I" "/build/zeromq-src-0.2.6+4.3.4/vendor/src" "-I" "/build/zeromq-src-0.2.6+4.3.4/vendor/external/sha1" "-I" "/build/zmq-sys-0.12.0/target/x86_64-unknown-linux-gnu/release/build/zmq-sys-f65ad9a14c492c23/out" "-Wall" "-Wextra" "-DZMQ_BUILD_TESTS=OFF" "-DZMQ_USE_CV_IMPL_STL11=1" "-DZMQ_STATIC=1" "-DZMQ_USE_BUILTIN_SHA1=1" "-DZMQ_HAVE_WS=1" "-DZMQ_IOTHREAD_POLLER_USE_EPOLL=1" "-DZMQ_POLL_BASED_ON_POLL=1" "-DZMQ_HAVE_IPC=1" "-DHAVE_STRNLEN=1" "-DZMQ_HAVE_UIO=1" "-o" "/build/zmq-sys-0.12.0/target/x86_64-unknown-linux-gnu/release/build/zmq-sys-f65ad9a14c492c23/out/lib/e9604ab5dbd5f1ec-sha1.o" "-c" "/build/zeromq-src-0.2.6+4.3.4/vendor/external/sha1/sha1.c" with args "c++" did not execute successfully (status code exit status: 1).
       >
       >
       > /nix/store/gv2cl6qvvslz5h15vqd89f1rpvrdg5yc-stdenv-linux/setup: line 146: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/dk9qgqqg1paakxzxscdrxsi2a0b308ss-crate-zmq-sys-0.12.0.drv'.

The src/strlcpy.c is part of the build dependency zeromq-src = { version = "0.2.1" }.

I am not sure why this dependency is removed or how to convince cargo2nix to keep it.

@psionic-k psionic-k added the crate broken A crate needs an override in order to succced label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate broken A crate needs an override in order to succced
Projects
None yet
Development

No branches or pull requests

2 participants