diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-04-25 09:20:12 +0200 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-04-25 09:27:57 +0200 |
commit | 966f79bea66d16694316885ba5407a22e1c7bead (patch) | |
tree | 8f54852f018e252ffde514912752d423269b4da2 /pkgs/tools | |
parent | 5dd187f3b7967b6942273fd25d8bc261de5129ff (diff) |
pkgsMusl.ostree: fix build
Nixpkgs currently uses musl 1.2.3, which does not provide a statx(2) wrapper, which ostree now depends upon. Work on upgrading musl is ongoing, but for now, to keep ostree building, let's follow upstream's recommendation and revert the statx changes. Once the musl upgrade is complete, this change can be reverted. I've applied the patches conditionally, only for musl, to avoid impacting functionality for other platforms. Fixes: 1a56b3515b84 ("ostree: version bump and removing old patches")
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/ostree/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ostree/default.nix b/pkgs/tools/misc/ostree/default.nix index aff0968b7f102..caccfbec9b699 100644 --- a/pkgs/tools/misc/ostree/default.nix +++ b/pkgs/tools/misc/ostree/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchurl +, fetchpatch , substituteAll , pkg-config , gtk-doc @@ -51,6 +52,19 @@ in stdenv.mkDerivation rec { sha256 = "sha256-Y8kZCCEzOsc3Pg2SPkwnZrJevc/fTvtEy1koxlidn8s="; }; + patches = lib.optionals stdenv.hostPlatform.isMusl [ + # > I guess my inclination here is to recommend that musl users + # > carry a downstream patch to revert the commits in #3175 until + # > such time as they can update to the new musl. + # https://github.com/ostreedev/ostree/issues/3200#issuecomment-1974819192 + (fetchpatch { + name = "revert-statx.diff"; + url = "https://github.com/ostreedev/ostree/commit/f46cc0cd85b564e40e03c7438a41c8e57f6b836c.diff"; + excludes = [ "ci/*" ]; + revert = true; + hash = "sha256-LsXbRYh4hfjNdt1S384IPlSvtC5f2rgSTZEkIIBkT0g="; + }) + ]; nativeBuildInputs = [ autoconf |