From e5a1036dfa980065cfbbdbc14ac14f38ca538bc0 Mon Sep 17 00:00:00 2001 From: thesn10 <38666407+thesn10@users.noreply.github.com> Date: Mon, 9 Nov 2026 18:05:07 +0100 Subject: [PATCH] perlPackages.BoostGeometryUtils: fix build with GCC 16 Assisted-by: Claude Code (claude-sonnet-5-5) (cherry picked from commit 8daaf8442608ace4ff53327f1c143ebcea55335b) --- pkgs/top-level/perl-packages.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 665328c52b4b1..13d24bb0935f5 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -2700,13 +2700,13 @@ with self; # Fix out of memory error on Perl 5.19.4 and later. ../development/perl-modules/boost-geometry-utils-fix-oom.patch ]; - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' - # Clang on Darwin defaults to a newer C++ mode where the old bundled Boost - # headers no longer compile. + postPatch = '' + # The old bundled Boost headers do not compile in newer default C++ modes. substituteInPlace Build.PL \ --replace-fail "extra_compiler_flags => [qw(-DHAS_BOOL)]" \ "extra_compiler_flags => [qw(-DHAS_BOOL -std=c++14)]" - + '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' # Avoid Boost.MPL enum wrappers that modern Clang rejects as out-of-range # enum constant expressions. substituteInPlace src/boost/numeric/conversion/detail/int_float_mixture.hpp \