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) | > error: linking with `/nix/store/7w8g0i44psrx7p1gl92s1s479kcf9xja-gcc-wrapper-14.3.0/bin/cc` failed: exit status: 1
> |
> = note: "/nix/store/7w8g0i44psrx7p1gl92s1s479kcf9xja-gcc-wrapper-14.3.0/bin/cc" "-m64" "/build/rustcYVLBFb/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/build/source/target/release/deps/{libdevicemapper_sys-588c6103ed122e5d.rlib,libsemver-153b5263e3dd1e07.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-ldevmapper" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/build/rustcYVLBFb/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/nix/store/6fkll672b41pqdfcgkxk9kdgj7gf9myh-lvm2-aarch64-unknown-linux-gnu-2.03.32-lib/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/source/target/release/build/devicemapper-f9856069ae5ea4d9/build_script_build-f9856069ae5ea4d9" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
> = 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
>
>
> error: could not compile `devicemapper` (build script) due to 1 previous error
> warning: build failed, waiting for other jobs to finish...
| 20:29:36 |