sage: remove openblas hack

The pc files have since been included into the openblas package.
This commit is contained in:
Timo Kaufmann 2018-11-24 18:41:53 +01:00
parent 3832ddedb9
commit 21f9123ea6
5 changed files with 9 additions and 42 deletions

View File

@ -33,7 +33,7 @@ let
# `sagelib`, i.e. all of sage except some wrappers and runtime dependencies # `sagelib`, i.e. all of sage except some wrappers and runtime dependencies
sagelib = self.callPackage ./sagelib.nix { sagelib = self.callPackage ./sagelib.nix {
inherit flint ecl arb; inherit flint ecl arb;
inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular; inherit sage-src pynac singular;
linbox = pkgs.linbox.override { withSage = true; }; linbox = pkgs.linbox.override { withSage = true; };
}; };
}; };
@ -54,7 +54,7 @@ let
sage-env = callPackage ./sage-env.nix { sage-env = callPackage ./sage-env.nix {
sagelib = python.pkgs.sagelib; sagelib = python.pkgs.sagelib;
inherit env-locations; inherit env-locations;
inherit python rWrapper openblas-cblas-pc ecl singular palp flint pynac pythonEnv; inherit python rWrapper ecl singular palp flint pynac pythonEnv;
pkg-config = pkgs.pkgconfig; # not to confuse with pythonPackages.pkgconfig pkg-config = pkgs.pkgconfig; # not to confuse with pythonPackages.pkgconfig
}; };
@ -68,7 +68,7 @@ let
sage-with-env = callPackage ./sage-with-env.nix { sage-with-env = callPackage ./sage-with-env.nix {
inherit pythonEnv; inherit pythonEnv;
inherit sage-env; inherit sage-env;
inherit openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular; inherit pynac singular;
pkg-config = pkgs.pkgconfig; # not to confuse with pythonPackages.pkgconfig pkg-config = pkgs.pkgconfig; # not to confuse with pythonPackages.pkgconfig
three = nodePackages_8_x.three; three = nodePackages_8_x.three;
}; };
@ -81,11 +81,6 @@ let
inherit sage-with-env; inherit sage-with-env;
}; };
# FIXME
openblas-blas-pc = callPackage ./openblas-pc.nix { name = "blas"; };
openblas-cblas-pc = callPackage ./openblas-pc.nix { name = "cblas"; };
openblas-lapack-pc = callPackage ./openblas-pc.nix { name = "lapack"; };
sage-src = callPackage ./sage-src.nix {}; sage-src = callPackage ./sage-src.nix {};
pythonRuntimeDeps = with python.pkgs; [ pythonRuntimeDeps = with python.pkgs; [

View File

@ -1,17 +0,0 @@
{ openblasCompat
, writeTextFile
, name
}:
writeTextFile {
name = "openblas-${name}-pc-${openblasCompat.version}";
destination = "/lib/pkgconfig/${name}.pc";
text = ''
Name: ${name}
Version: ${openblasCompat.version}
Description: ${name} for SageMath, provided by the OpenBLAS package.
Cflags: -I${openblasCompat}/include
Libs: -L${openblasCompat}/lib -lopenblas
'';
}

View File

@ -36,7 +36,7 @@
, lcalc , lcalc
, rubiks , rubiks
, flintqs , flintqs
, openblas-cblas-pc , openblasCompat
, flint , flint
, gmp , gmp
, mpfr , mpfr
@ -99,11 +99,12 @@ writeTextFile rec {
destination = "/${name}"; destination = "/${name}";
text = '' text = ''
export PKG_CONFIG_PATH='${lib.concatStringsSep ":" (map (pkg: "${pkg}/lib/pkgconfig") [ export PKG_CONFIG_PATH='${lib.concatStringsSep ":" (map (pkg: "${pkg}/lib/pkgconfig") [
# This is only needed in the src/sage/misc/cython.py test and I'm not sure if there's really a use-case # This is only needed in the src/sage/misc/cython.py test and I'm not
# for it outside of the tests. However since singular and openblas are runtime dependencies anyways # sure if there's really a usecase for it outside of the tests. However
# and openblas-cblas-pc is tiny, it doesn't really hurt to include. # since singular and openblas are runtime dependencies anyways, it doesn't
# really hurt to include.
singular singular
openblas-cblas-pc openblasCompat
]) ])
}' }'
export SAGE_ROOT='${sagelib.src}' export SAGE_ROOT='${sagelib.src}'

View File

@ -3,9 +3,6 @@
, makeWrapper , makeWrapper
, sage-env , sage-env
, openblasCompat , openblasCompat
, openblas-blas-pc
, openblas-cblas-pc
, openblas-lapack-pc
, pkg-config , pkg-config
, three , three
, singular , singular
@ -34,9 +31,6 @@ let
makeWrapper makeWrapper
pkg-config pkg-config
openblasCompat # lots of segfaults with regular (64 bit) openblas openblasCompat # lots of segfaults with regular (64 bit) openblas
openblas-blas-pc
openblas-cblas-pc
openblas-lapack-pc
singular singular
three three
pynac pynac

View File

@ -3,9 +3,6 @@
, buildPythonPackage , buildPythonPackage
, arb , arb
, openblasCompat , openblasCompat
, openblas-blas-pc
, openblas-cblas-pc
, openblas-lapack-pc
, brial , brial
, cliquer , cliquer
, cypari2 , cypari2
@ -65,9 +62,6 @@ buildPythonPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
iml iml
perl perl
openblas-blas-pc
openblas-cblas-pc
openblas-lapack-pc
jupyter_core jupyter_core
]; ];