From 7747ba0fdba45c199cc8a792b3dd15fadfcbfb8b Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 3 Jul 2025 09:32:35 +0200 Subject: [PATCH] libseccomp: Apply patch to fix test failures on big-endian architectures --- pkgs/by-name/li/libseccomp/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/li/libseccomp/package.nix b/pkgs/by-name/li/libseccomp/package.nix index f3721858b2da..e9f723f85bf0 100644 --- a/pkgs/by-name/li/libseccomp/package.nix +++ b/pkgs/by-name/li/libseccomp/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, getopt, util-linuxMinimal, which, @@ -20,6 +21,14 @@ stdenv.mkDerivation rec { }; patches = [ + # Remove when version > 2.6.0 + # Fixes test failures on big-endian archs + (fetchpatch { + name = "0001-libseccomp-remove-fuzzer-from-test-62-sim-arch_transactions.patch"; + url = "https://github.com/seccomp/libseccomp/commit/2f0f3b0e9121720108431c5d054164016f476230.patch"; + hash = "sha256-AKAQyALJlLgxnS23OEoqfyDswp0kU2vmja5ohgvFojw="; + }) + ./oob-read.patch ];