Change:
Steps to reproduce the behavior: with enabled <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
This is not really a bug or a build failure, more of a feature request. The expression in nixpkgs doesn't set , as the build with it being set would fail. Someone needs to sit down and figure out why. I propose starting with the code of the two failed tests, seeing if something is missing from nativeCheckInputs. Happy to review a PR, but I don't have the bandwidth to drive this.
It's an indication that the packaging is incorrect. Incorrect packaging sounds like a packaging bug to me. See for the main tracking issue. If it's better categorised as a "bug" than a "build failure", then so be it, but it's absolutely not a "feature request." If you don't have time, that's a totally different topic, that could be just stated as is without the rest of it.
and the test for both use to get information about devices, which is not currently provided by any input. Adding (which provides ) to the check inputs makes this build without errors, even with . Since (a binary output) needs , should probably also be in the regular build inputs. (just stumbled across this randomly and thought I'd try to find out what's up)
Oh, very nice! Wondering how is currently sneaking in then :-) In any case, I'll try to add this to a PR and see how it goes!
I opened that does this, thanks!
The PR has been merged, this can be closed.

Discussion:
, ninja , pkg-config , python3 <del> , systemd </del> <ins> , substituteAll , systemdMinimal </ins> , usbutils , vala , which

# Hardcode absolute paths to libraries so that consumers # do not need to set LD_LIBRARY_PATH themselves. ./hardcode-paths.patch <ins> # Replace references to udevadm with an absolute paths, so programs using # umockdev will just work without having to provide it in their test environment # $PATH. (substituteAll { src = ./substitute-udevadm.patch; udevadm = "${systemdMinimal}/bin/udevadm"; }) </ins> ]; nativeBuildInputs = [

buildInputs = [ glib <del> systemd </del> <ins> systemdMinimal </ins> libpcap ];

nativeCheckInputs = [ python3 <del> which </del> usbutils <ins> which </ins> ]; <ins> strictDeps = true; </ins> mesonFlags = [ "-Dgtk_doc=true" ];

<ins> From 09efbe8090f501c60975d5467fb587ed633d6a01 Mon Sep 17 00:00:00 2001 From: Florian Klink <flokli@flokli.de> Date: Wed, 24 Jan 2024 14:29:28 +0200 Subject: [PATCH] substitute udevadm --- src/umockdev-record.vala     | 2 +- tests/test-umockdev-run.vala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/umockdev-record.vala b/src/umockdev-record.vala index 2d49bc8..272f25e 100644 --- a/src/umockdev-record.vala +++ b/src/umockdev-record.vala @@ -223,7 +223,7 @@ record_device(string dev) int exitcode; try { Process.spawn_sync(null, -                           {"udevadm", "info", "--query=all", "--path", dev}, +                           {"@udevadm@", "info", "--query=all", "--path", dev}, null, SpawnFlags.SEARCH_PATH, null, diff --git a/tests/test-umockdev-run.vala b/tests/test-umockdev-run.vala index cd00a08..94616cb 100644 --- a/tests/test-umockdev-run.vala +++ b/tests/test-umockdev-run.vala @@ -199,8 +199,8 @@ A: size=1048576n // unfortunately the udevadm output between distros is not entirely constant assert (get_program_out ( -            "udevadm", -            umockdev_run_command + "-d " + umockdev_file + " -- udevadm info --query=all --name=/dev/loop23", +            "@udevadm@", +            umockdev_run_command + "-d " + umockdev_file + " -- @udevadm@ info --query=all --name=/dev/loop23", out sout, out serr, out exit)); assert_cmpstr (serr, CompareOperator.EQ, ""); -- 2.43.0 </ins>