File: python-pylibacl_hurd.patch

package info (click to toggle)
python-pylibacl 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 276 kB
  • ctags: 243
  • sloc: ansic: 1,517; python: 352; makefile: 57; sh: 21
file content (33 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Date: Sun, 21 Jun 2009 16:37:01 -0400
From: Barry deFreese <bdefreese@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#534123: python-pylibacl: FTBFS on Debian GNU/Hurd [Patch]
Reply-To: bdefreese@debian.org, 534123@bugs.debian.org
Organization: Debian
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)

Package: python-pylibacl
Version: 0.4.0-2
Severity: normal

Hi,

python-pylibacl currently fails to build on Debian GNU/Hurd because it
doesn't recognize GNU as an OS.  Attached is a patch to resolve this.

Thanks,

Barry deFreese
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,10 @@
         macros.append(("HAVE_LEVEL2", None))
 elif u_sysname == "Darwin":
     libs.append("pthread")
+elif u_sysname == "GNU":
+    macros.append(("HAVE_LINUX", None))
+    macros.append(("HAVE_LEVEL2", None))
+    libs.append("acl")
 else:
     raise ValueError("I don't know your system '%s'."
                      " Please contact the author" % u_sysname)