| 14 Jul 2025 |
lzcunt | basically in several places nixpkgs pretty much requires newlib for freestanding targets | 21:25:17 |
lzcunt | * basically in several places nixpkgs pretty much requires newlib (or another libc) for freestanding targets | 21:25:24 |
lzcunt | i guess i should make gcc deal with libc = null; | 21:26:44 |
lzcunt | cuz that's the best way to encode "no libc not even newlib" | 21:26:57 |
Tristan Ross | That's the preferred way | 21:28:31 |
Tristan Ross | Null means not specificed or unsupported | 21:28:48 |
lzcunt | expect a fix tomorrow then | 21:29:25 |
lzcunt | for this too | 21:29:34 |
| 15 Jul 2025 |
lzcunt | https://github.com/NixOS/nixpkgs/pull/425376 is ready and fixes my issues | 11:29:03 |
| 16 Jul 2025 |
QuadRadical (Ping) | btw @Alyssa Ross, are you planning on rebasing https://github.com/NixOS/nixpkgs/pull/196333? | 01:46:04 |
Alyssa Ross | It's in progress but testing it takes quite a lot of builds. | 06:36:34 |
QuadRadical (Ping) | right, but cant you rebase it and then multiple people can test? | 13:34:01 |
| 18 Jul 2025 |
QuadRadical (Ping) | Any idea what I should try to fix it? | 19:13:45 |
QuadRadical (Ping) | oh you said depsBuildBuild = [pkg-config lvm2]; before sorry i missed that | 19:14:30 |
QuadRadical (Ping) | sadly there is no difference with that | 19:23:48 |
QuadRadical (Ping) | still this:
> = note: some arguments are omitted. use `--verbose` to show all linker arguments
> = note: /nix/store/lg4hb0n4z18dfyi7jwrmrkw2dvc4fig8-binutils-2.44/bin/ld: skipping incompatible /nix/store/6fkll672b41pqdfcgkxk9kdgj7gf9myh-lvm2-aarch64-unknown-linux-gnu-2.03.32-lib/lib/libdevmapper.so when searching for -ldevmapper
> /nix/store/lg4hb0n4z18dfyi7jwrmrkw2dvc4fig8-binutils-2.44/bin/ld: cannot find -ldevmapper: No such file or directory
> /nix/store/lg4hb0n4z18dfyi7jwrmrkw2dvc4fig8-binutils-2.44/bin/ld: skipping incompatible /nix/store/6fkll672b41pqdfcgkxk9kdgj7gf9myh-lvm2-aarch64-unknown-linux-gnu-2.03.32-lib/lib/libdevmapper.so when searching for -ldevmapper
> collect2: error: ld returned 1 exit status
| 19:24:08 |
emily | is that on top of Alyssa's rebased branch? can you share the whole expression? | 20:09:24 |
emily | Alyssa Ross: I think you should be able to drop the ALLOW_CROSS thing we set somewhere too btw | 20:13:14 |
Alyssa Ross | Oh okay I'll look tomorrow (comment on the PR so I don't forget?) | 20:13:45 |
emily | sure | 20:14:03 |
emily | left a comment | 20:16:32 |
QuadRadical (Ping) | Yep. Sorry, what is an expression, is that the response from the nix build? | 20:21:49 |
emily | the patched package | 20:24:10 |
emily | just your Nix file :) | 20:24:15 |
QuadRadical (Ping) | ah okay! | 20:24:27 |
QuadRadical (Ping) | {
lib,
rustPlatform,
pkg-config,
udev,
lvm2,
fetchFromGitHub,
nixosTests,
}:
rustPlatform.buildRustPackage rec {
pname = "thin-provisioning-tools";
version = "1.2.0";
src = fetchFromGitHub {
owner = "jthornber";
repo = "thin-provisioning-tools";
rev = "v${version}";
hash = "sha256-gjsURDzA4LRTTgKZPzzTcvTdi1mXx4FkWmyoPcpdPfU=";
};
depsBuildBuild = [pkg-config lvm2];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
udev
lvm2
];
useFetchCargoVendor = true;
cargoHash = "sha256-H5GRAZpFl2t/bH8THyPkZq5ptS70XkhSCxQ6ko+0RC8=";
passthru.tests = {
inherit (nixosTests.lvm2) lvm-thinpool-linux-latest;
};
# Uses O_DIRECT, which is not supported on all filesystems.
# https://github.com/jthornber/thin-provisioning-tools/issues/38
doCheck = false;
# required for config compatibility with configs done pre 0.9.0
# see https://github.com/NixOS/nixpkgs/issues/317018
postInstall = ''
ln -s $out/bin/pdata_tools $out/bin/cache_check
ln -s $out/bin/pdata_tools $out/bin/cache_dump
ln -s $out/bin/pdata_tools $out/bin/cache_metadata_size
ln -s $out/bin/pdata_tools $out/bin/cache_repair
ln -s $out/bin/pdata_tools $out/bin/cache_restore
ln -s $out/bin/pdata_tools $out/bin/cache_writeback
ln -s $out/bin/pdata_tools $out/bin/era_check
ln -s $out/bin/pdata_tools $out/bin/era_dump
ln -s $out/bin/pdata_tools $out/bin/era_invalidate
ln -s $out/bin/pdata_tools $out/bin/era_restore
ln -s $out/bin/pdata_tools $out/bin/thin_check
ln -s $out/bin/pdata_tools $out/bin/thin_delta
ln -s $out/bin/pdata_tools $out/bin/thin_dump
ln -s $out/bin/pdata_tools $out/bin/thin_ls
ln -s $out/bin/pdata_tools $out/bin/thin_metadata_size
ln -s $out/bin/pdata_tools $out/bin/thin_repair
ln -s $out/bin/pdata_tools $out/bin/thin_restore
ln -s $out/bin/pdata_tools $out/bin/thin_rmap
ln -s $out/bin/pdata_tools $out/bin/thin_trim
'';
meta = with lib; {
homepage = "https://github.com/jthornber/thin-provisioning-tools/";
description = "Suite of tools for manipulating the metadata of the dm-thin device-mapper target";
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = [];
};
}
| 20:24:29 |
QuadRadical (Ping) | its the regular package with depsBuildBuild = [pkg-config lvm2]; added | 20:24:39 |
emily | I fear this may be precisely because of the ALLOW_CROSS thing. can you add preConfigure = ''unset PKG_CONFIG_ALLOW_CROSS; env'';? | 20:26:32 |
QuadRadical (Ping) | sure! | 20:26:41 |
emily | (I'd expect a different error message, ideally; but the environment dump it prints early in the build will be interesting to see in either case) | 20:26:57 |