[sagemath] 02/02: d0-libgap-sage.patch: Readd part that adds libgap include and library directories globally.

Tobias Hansen thansen at moszumanska.debian.org
Thu Jun 15 09:26:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository sagemath.

commit 875538d30bba9bda3e70ed5b927fcf367e7f5804
Author: Tobias Hansen <thansen at debian.org>
Date:   Thu Jun 15 09:53:22 2017 +0100

    d0-libgap-sage.patch: Readd part that adds libgap include and library directories globally.
---
 debian/patches/d0-libgap-sage.patch | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/debian/patches/d0-libgap-sage.patch b/debian/patches/d0-libgap-sage.patch
index d3b8560..0bd5495 100644
--- a/debian/patches/d0-libgap-sage.patch
+++ b/debian/patches/d0-libgap-sage.patch
@@ -75,3 +75,26 @@ Forwarded: not-needed
  
      ###################################
      ##
+--- a/sage/src/setup.py
++++ b/sage/src/setup.py
+@@ -86,12 +86,18 @@
+     compile_result_dir = None
+     keep_going = False
+ 
++import pkgconfig
++# LibGAP
++libgap_pc = pkgconfig.parse('libgap-sage')
++libgap_library_dirs = list(libgap_pc['library_dirs'])
++libgap_include_dirs = list(libgap_pc['include_dirs'])
++
+ # search for dependencies and add to gcc -I<path>
+ # this depends on SAGE_CYTHONIZED
+-include_dirs = sage_include_directories(use_sources=True)
++include_dirs = sage_include_directories(use_sources=True) + libgap_include_dirs
+ 
+ # Look for libraries in $SAGE_LOCAL/lib
+-library_dirs = [os.path.join(SAGE_LOCAL, "lib")]
++library_dirs = [os.path.join(SAGE_LOCAL, "lib")] + libgap_library_dirs
+ 
+ # Manually add -fno-strict-aliasing, which is needed to compile Cython
+ # and disappears from the default flags if the user has set CFLAGS.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list