| 13 Jul 2025 |
QuadRadical (Ping) | i mean its failing to find the pkg-config itself right? | 21:20:52 |
QuadRadical (Ping) | i mean its failing to find the pkg-config binary itself right? | 21:20:56 |
emily | ok what about depsBuildBuild = [ lvm2 ];, no pkg-config in the deps, but "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe (pkgsBuildBuild.pkg-config); | 21:21:06 |
emily | throwing stuff at the wall to see if it sticks | 21:21:10 |
QuadRadical (Ping) | will try | 21:22:11 |
QuadRadical (Ping) | OH | 21:22:31 |
QuadRadical (Ping) | I MAY HAVE BEEN STUPID | 21:22:34 |
QuadRadical (Ping) | i was most certainly stupid | 21:22:37 |
QuadRadical (Ping) | i may have declared an array called pkgsBuildBuild instead of depsBuildBuild haha... whoops | 21:22:56 |
emily | oh yeah that would do it | 21:23:10 |
QuadRadical (Ping) | wait no it still failed | 21:23:14 |
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 |