File: multiarch.diff

package info (click to toggle)
cvxopt 1.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,720 kB
  • sloc: ansic: 23,233; python: 10,414; makefile: 75; sh: 7
file content (21 lines) | stat: -rw-r--r-- 805 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
Description: Fix build with multiarch on !amd64
Author: Adam Conrad <adconrad@ubuntu.com>
Bug-Debian: https://bugs.debian.org/934382
Forwarded: not-needed
Last-Update: 2019-10-20

--- a/setup.py
+++ b/setup.py
@@ -57,9 +57,10 @@
     SUITESPARSE_LIB_DIR = '/usr/local/lib'
     SUITESPARSE_INC_DIR = '/usr/local/include'
 else:
-    if glob("/usr/lib/x86_64-linux-gnu/libsuitesparse*"):
+    MULTIARCH = os.popen('dpkg-architecture -qDEB_HOST_MULTIARCH').read().strip()
+    if glob("/usr/lib/" + MULTIARCH + "/libsuitesparse*"):
         # Ubuntu/Debian
-        SUITESPARSE_LIB_DIR = "/usr/lib/x86_64-linux-gnu"
+        SUITESPARSE_LIB_DIR = "/usr/lib/" + MULTIARCH
         SUITESPARSE_INC_DIR = "/usr/include/suitesparse"
     elif glob("/usr/lib64/libsuitesparse*"):
         # CentOS/Fedora/RedHat