From 598aa1f95454c62d8f3f5d088834cbf8b36903a5 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Wed, 12 Feb 2025 18:27:31 -0700 Subject: [PATCH] xz: run autoreconfHook on OpenBSD This cannot be made unconditional as it causes infinite recursion, but the old libtool being used messes up the distribution of OpenBSD shared libraries. --- pkgs/tools/compression/xz/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/compression/xz/default.nix b/pkgs/tools/compression/xz/default.nix index 658e8d8216a8..74d8e9b85423 100644 --- a/pkgs/tools/compression/xz/default.nix +++ b/pkgs/tools/compression/xz/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + autoreconfHook, enableStatic ? stdenv.hostPlatform.isStatic, writeScript, testers, @@ -37,6 +38,10 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; doCheck = true; + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isOpenBSD [ + autoreconfHook + ]; + # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion # necessary for FreeBSD code path in configure postPatch = ''