perlPackages.BoostGeometryUtils: fix build with GCC 16

Assisted-by: Claude Code (claude-sonnet-5-5)
(cherry picked from commit 8daaf84426)
This commit is contained in:
thesn10
2026-11-09 18:05:07 +01:00
committed by github-actions[bot]
parent 5cd93c0393
commit e5a1036dfa

View File

@@ -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 \