Lix does not build on systems with btrfs compressed store #507
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#507
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?
Describe the bug
On a system with
/nix
(and/nix/store
by extension) being located on a BTRFS filesystem with compression enabled for the directory (and with that also for all new files/directories in it) Lix fails to build due to errors in the check phase. All failed checks seem to fail because of thebtrfs.compression
extended file attribute, which the build process attempts to remove, but fails in doing so withPermission denied
(I think the compression and therefore also the attribute can only be changed via a BTRFS defragmentation). I've attached build and test logs to the issue.Steps To Reproduce
/nix
is on located a BTRFS filesystem/nix
before using nix for the first time withbtrfs property set /nix compression zstd
/nix/store
withbtrfs property get /nix/store compression
nix build https://git.lix.systems/lix-project/lix/archive/2.91.0.tar.gz --keep-failed --show-trace
Expected behavior
Lix checks pass without errors even on a system with a compressed store and build succeeds as a whole.
nix --version
outputnix (Nix) 2.18.5
Additional context
My setup has worked so far with NixCpp and building NixCpp also worked in the past, but I assume Lix just has a larger test suite. Building lix also fails with the official module, but the above was easier for me to try now and again and resulted in seemingly the same errors. If this is not a setup that you currently wish to support, feel free to change this to a feature request.
This issue was mentioned on Gerrit on the following CLs: