singular: fix clang-19 build

remove dead code with invalid member reference
https://github.com/Singular/Singular/commit/d3f73432d73ac0dd041af83cb35301498e9b57d9

enable local networking in darwin sandbox

note: the darwin build is still broken due a link error which occurs due
to combining -flat_namespace and libgfortran.dylib -- gfortran/libs
are usings `@rpaths/libname.dylib` rather than full path names. However,
once this is fix the build succeeds.
This commit is contained in:
Reno Dakota
2025-01-02 02:17:24 -08:00
parent c01b2522d1
commit 4d3b1bcad8
+11
View File
@@ -1,6 +1,7 @@
{
stdenv,
fetchFromGitHub,
fetchpatch,
gmp,
bison,
perl,
@@ -48,6 +49,15 @@ stdenv.mkDerivation rec {
forceFetchGit = true;
};
patches = [
(fetchpatch {
# removes dead code with invalid member reference in gfanlib
name = "clang-19.patch";
url = "https://github.com/Singular/Singular/commit/d3f73432d73ac0dd041af83cb35301498e9b57d9.patch";
hash = "sha256-1KOk+yrTvHWY4aSK9QcByHIwKwe71QIYTMx8zo7XNos=";
})
];
configureFlags =
[
"--enable-gfanlib"
@@ -173,6 +183,7 @@ stdenv.mkDerivation rec {
'';
enableParallelBuilding = true;
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "CAS for polynomial computations";