Meson build can't detect coreutils on systems with non-monolith coreutils #376
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#376
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
coreutils = find_program('coreutils', native : true)
looks for a binary literally named
coreutils
, which is the multi-call binary, which does not exist for non-monolith builds of coreutils, e.g. Debian. We probably need to detect the actual executables we use.Originally spotted by @vigress9:matrix.org on Matrix.
It seems like that's only ultimately used in two places:
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh
and
path = "@coreutils@";
both simply to Have A Path where coreutils are. I'd really love to not need these things to depend on coreutils in the first place, honestly, but short of that, we could probably have Meson just look a specific coreutil and pass that
This issue was mentioned on Gerrit on the following CLs:
coreutils
requirement")Filed https://github.com/NixOS/nix/issues/11975 against
nix
as it has the same bug.