| 13 Jul 2025 |
emily | I'm still not sure the variables are getting mangled right but | 21:23:16 |
QuadRadical (Ping) | if i actually do the right name its this error:
> thread 'main' panicked at /build/thin-provisioning-tools-1.2.0-vendor/libudev-sys-0.1.4/build.rs:38:41:
> called `Result::unwrap()` on an `Err` value: "\npkg-config exited with status code 1\n> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libudev\n\nThe system library `libudev` required by crate `libudev-sys` was not found.\nThe file `libudev.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.\nThe PKG_CONFIG_PATH environment variable is not set.\n\nHINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libudev.pc`.\n"
> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> warning: build failed, waiting for other jobs to finish...
| 21:23:57 |
QuadRadical (Ping) | so it cant find libudev | 21:24:08 |
QuadRadical (Ping) | should i put udev in depsBuildBuild too? | 21:24:21 |
emily | nah, re-ad pkg-config to nativeBuildInputs | 21:24:56 |
emily | * nah, re-add pkg-config to nativeBuildInputs | 21:25:00 |
emily | this is all very silly but | 21:25:03 |
QuadRadical (Ping) | this caused a different error^^ | 21:25:15 |
QuadRadical (Ping) | oke | 21:25:18 |
emily | the problem is that it wants to link some things for the build platform and some for the host platform | 21:25:32 |
emily | and the whole thing is kind of confused about which | 21:25:37 |
QuadRadical (Ping) | right | 21:25:43 |
QuadRadical (Ping) | makes sense | 21:25:44 |
emily | and we don't seem to do a good job at making sure the variables that the pkg_config crate expects for this stuff are wired up correctly | 21:25:55 |
QuadRadical (Ping) | btw | 21:26:48 |
QuadRadical (Ping) | @emily | 21:26:51 |
QuadRadical (Ping) | this builds:
depsBuildBuild = [
pkg-config
lvm2.dev
udev
];
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = [
udev
lvm2
];
| 21:26:55 |
QuadRadical (Ping) | that works fine | 21:27:00 |
QuadRadical (Ping) | just had to put udev in both | 21:27:08 |
emily | with no environment variables? | 21:27:09 |
QuadRadical (Ping) | correct | 21:27:13 |
QuadRadical (Ping) | and strictDeps | 21:27:18 |
emily | what if you drop udev from pkgsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? | 21:27:34 |
emily | * what if you drop udev from depsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? | 21:27:41 |
QuadRadical (Ping) | sure will try | 21:27:58 |
QuadRadical (Ping) | fails | 21:28:39 |
QuadRadical (Ping) | 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/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.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/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.
| 21:28:46 |
emily | I see. and if you drop pkg-config from depsBuildBuild and set "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe pkgsBuildBuild.pkg-config;? | 21:29:26 |
QuadRadical (Ping) | like this then?
"PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe pkgsBuildBuild.pkg-config;
depsBuildBuild = [
lvm2.dev
];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
udev
];
| 21:30:03 |
QuadRadical (Ping) | same err | 21:30:06 |