From c55e4e15d6aaf4d11b691ae2c1f059aa0d170a18 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Thu, 13 Mar 2025 10:15:50 +0100 Subject: [PATCH] singular: fix build It's another instance of the libstdc++ libtool fallout [1]. Due to the package generating multiple libtools and re-configuring some of them several times during the build, the source libtool is patched. [1] https://github.com/NixOS/nixpkgs/commit/aca1e446e2d348c7e88aaf0dcb750d0a0d45c286 --- pkgs/by-name/si/singular/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/si/singular/package.nix b/pkgs/by-name/si/singular/package.nix index 40fa34b87761..cddb360c5885 100644 --- a/pkgs/by-name/si/singular/package.nix +++ b/pkgs/by-name/si/singular/package.nix @@ -119,6 +119,12 @@ stdenv.mkDerivation rec { -i '{}' ';' ''; + # FIXME: ugly hack for https://github.com/NixOS/nixpkgs/pull/389009 + preConfigure = '' + substituteInPlace build-aux/ltmain.sh \ + --replace 'for search_ext in .la $std_shrext .so .a' 'for search_ext in $std_shrext .so .a' + ''; + hardeningDisable = lib.optional stdenv.hostPlatform.isi686 "stackprotector"; doCheck = true; # very basic checks, does not test any libraries