| 13 Jul 2025 |
QuadRadical (Ping) | this made it error | 21:02:02 |
QuadRadical (Ping) | error: builder for '/nix/store/n787wrc31pgc1dvxmhbr9qgx82qapcyf-thin-provisioning-tools-aarch64-unknown-linux-gnu-1.2.0.drv' failed with exit code 101;
last 25 log lines:
> 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' panicked at /build/thin-provisioning-tools-1.2.0-vendor/devicemapper-sys-0.3.2/build.rs:18:19:
> Suitable version of libdevmapper not found:
> pkg-config exited with status code 1
> > PKG_CONFIG_PATH= PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 aarch64-unknown-linux-gnu-pkg-config --libs --cflags devmapper 'devmapper >= 1.02.151'
>
> The system library `devmapper` required by crate `devicemapper-sys` was not found.
> The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> PKG_CONFIG_PATH contains the following:
> - /nix/store/q83nr91wq640cybqn80b1604inpdnggq-lvm2-aarch64-unknown-linux-gnu-2.03.32-dev/lib/pkgconfig
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
>
> HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.
>
> 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 'nix log /nix/store/n787wrc31pgc1dvxmhbr9qgx82qapcyf-thin-provisioning-tools-aarch64-unknown-linux-gnu-1.2.0.drv'.
| 21:02:10 |
QuadRadical (Ping) | this is the same error as if i put it in pkgsBuildBuild instead of buildInputs | 21:02:32 |
emily | try "PKG_CONFIG_PATH_${stdenv.buildPlatform.config}" = "${pkgsBuildBuild.lvm2}/lib/pkg-config"; | 21:02:58 |
emily | that's not a "good solution" but it might be a first step to figuring out what is busted | 21:03:13 |
QuadRadical (Ping) | do i swap out pkgsBuildBuild there for buildInputs? | 21:03:15 |
emily | er or is it /lib/pkgconfig | 21:03:18 |
emily | no | 21:03:23 |
emily | leave it in buildInputs still | 21:03:26 |
emily | but check I got the path right :P | 21:03:32 |
emily | it probably needs pkgsBuildBuild.lvm2.dev instead too | 21:03:41 |
QuadRadical (Ping) | yes but you care using pkgsBuildBuild.lvm2 in the code you posted | 21:03:46 |
QuadRadical (Ping) | which doesnt exist | 21:03:48 |
QuadRadical (Ping) | so do i swap that to use buildInputs.lvm2? | 21:03:56 |
QuadRadical (Ping) | pkgsBuildBuild isnt a variable otherwise | 21:04:10 |
QuadRadical (Ping) | it just says error: undefined variable 'pkgsBuildBuild' @emily | 21:06:57 |
QuadRadical (Ping) | if i instead swap it with buildInputs it outputs error: expected a set but found a list: [ «thunk» «thunk» ] | 21:07:25 |
emily | needs adding to the package arguments. | 21:08:49 |
QuadRadical (Ping) | oh sorry | 21:08:58 |
emily | (pkgsFoo is not depsFoo) | 21:09:07 |
QuadRadical (Ping) | thank you | 21:09:08 |
emily | (pkgsFoo is the package set that depsFoo sources from) | 21:09:13 |
Grimmauld (any/all) | wait whats the diff between targetPackages and pkgsBuildBuild? | 21:09:23 |
QuadRadical (Ping) | trying now | 21:09:53 |
emily | targetPackages is pkgsTargetTarget, I believe. | 21:11:06 |
QuadRadical (Ping) | Okay we are getting somewhere | 21:11:07 |
QuadRadical (Ping) | this did something "PKG_CONFIG_PATH_${stdenv.buildPlatform.config}" = "${pkgsBuildBuild.lvm2.dev}/lib/pkgconfig"; | 21:11:16 |
QuadRadical (Ping) | it built succescsfully | 21:11:27 |
QuadRadical (Ping) | i typod but you understand | 21:11:31 |
QuadRadical (Ping) | *successfully | 21:11:43 |