From d439d93c01e51131b862b9641dcdb21c203d4630 Mon Sep 17 00:00:00 2001 From: Manuel Frischknecht Date: Thu, 25 Jan 2024 15:08:33 +0000 Subject: [PATCH] arc_unpacker: apply AUR patch that fixes build on GCC 13 `arc_unpacker` fails to build with GCC 13 because GCC stopped transitively including `cstdint` in a lot of scenarios. While the project is inactive (the repository has been archived on GitHub), the Arch Linux user repository already contains a patch that fixes this issue. Since ofborg indicated unit test failures on darwin-aarch64, this change also marks the package as broken for such machines. Note that these test failures are very unlikely to be caused by the patch applied here, as it only adds a single `#include ` statement in a single file and that specific include has been pulled in with older versions of GCC, anyway. Co-authored-by: midchildan Co-authored-by: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> --- pkgs/tools/archivers/arc_unpacker/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/archivers/arc_unpacker/default.nix b/pkgs/tools/archivers/arc_unpacker/default.nix index f293ae49626f..61bf3fa91e74 100644 --- a/pkgs/tools/archivers/arc_unpacker/default.nix +++ b/pkgs/tools/archivers/arc_unpacker/default.nix @@ -31,6 +31,11 @@ stdenv.mkDerivation { url = "https://aur.archlinux.org/cgit/aur.git/plain/failing_tests.patch?h=arc_unpacker-git&id=bda1ad9f69e6802e703b2e6913d71a36d76cfef9"; hash = "sha256-bClACsf/+SktyLAPtt7EcSqprkw8JVIi1ZLpcJcv9IE="; }) + (fetchpatch { + name = "include_cstdint.patch"; + url = "https://aur.archlinux.org/cgit/aur.git/plain/include_cstdint.patch?h=arc_unpacker-git&id=8c5c5121b23813c7650db19cb617b409d8fdcc9f"; + hash = "sha256-3BQ1v7s9enUK/js7Jqrqo2RdSRvGVd7hMcY4iL51SiE="; + }) ]; postPatch = '' @@ -86,5 +91,8 @@ stdenv.mkDerivation { maintainers = with maintainers; [ midchildan ]; platforms = platforms.all; mainProgram = "arc_unpacker"; + + # unit test failures + broken = stdenv.isDarwin && stdenv.isAarch64; }; }