File: d0-libgap-path.patch

package info (click to toggle)
sagemath 8.6-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 113,052 kB
  • sloc: python: 996,064; cpp: 6,208; sh: 3,252; ansic: 3,226; objc: 1,407; makefile: 1,087; lisp: 5
file content (24 lines) | stat: -rw-r--r-- 937 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Add gap library directory
 Search libraries in gap's subdirectory where libgap is located.
Author: Tobias Hansen <thansen@debian.org>

--- a/sage/src/setup.py
+++ b/sage/src/setup.py
@@ -12,6 +12,7 @@
 from distutils.dep_util import newer_group
 from distutils.errors import (DistutilsSetupError, DistutilsModuleError,
                               DistutilsOptionError)
+import sysconfig
 
 # This import allows instancemethods to be pickable
 import fpickle_setup
@@ -87,7 +88,8 @@
 include_dirs = sage_include_directories(use_sources=True)
 
 # Look for libraries in $SAGE_LOCAL/lib
-library_dirs = [os.path.join(SAGE_LOCAL, "lib")]
+gap_library_dir = "/usr/lib/%s/gap" % sysconfig.get_config_var('MULTIARCH')
+library_dirs = [os.path.join(SAGE_LOCAL, "lib"), gap_library_dir]
 
 # Manually add -fno-strict-aliasing, which is needed to compile Cython
 # and disappears from the default flags if the user has set CFLAGS.