From 090165d7c17f814cfe458b22026fda026888f78b Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Wed, 21 Apr 2021 23:53:20 -0300 Subject: [PATCH] singular: disable vspace on aarch64 --- .../science/math/singular/default.nix | 3 +++ .../math/singular/disable-vspace-on-aarch64.patch | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/applications/science/math/singular/disable-vspace-on-aarch64.patch diff --git a/pkgs/applications/science/math/singular/default.nix b/pkgs/applications/science/math/singular/default.nix index 9a1d63169212..695af3d17440 100644 --- a/pkgs/applications/science/math/singular/default.nix +++ b/pkgs/applications/science/math/singular/default.nix @@ -52,6 +52,9 @@ stdenv.mkDerivation rec { # add aarch64 support to cpu-check.m4. copied from redhat. ./redhat-aarch64.patch + # vspace causes hangs in modstd and other libraries on aarch64 + ./disable-vspace-on-aarch64.patch + # the newest version of ax-prog-cc-for-build.m4 seems to trigger # linker errors. see # https://github.com/alsa-project/alsa-firmware/issues/3 for a diff --git a/pkgs/applications/science/math/singular/disable-vspace-on-aarch64.patch b/pkgs/applications/science/math/singular/disable-vspace-on-aarch64.patch new file mode 100644 index 000000000000..3e51b7fb2cec --- /dev/null +++ b/pkgs/applications/science/math/singular/disable-vspace-on-aarch64.patch @@ -0,0 +1,15 @@ +diff --git a/kernel/mod2.h b/kernel/mod2.h +index 867fcae47..2abd84f23 100644 +--- a/kernel/mod2.h ++++ b/kernel/mod2.h +@@ -60,8 +60,10 @@ + + /* define for parallel processes with shared memory */ + #ifndef __CCYGWIN__ ++#ifndef SI_CPU_AARCH64 + #define HAVE_VSPACE 1 + #endif ++#endif + + /*#define PROFILING*/ + #ifdef PROFILING