File: python-3-hurd-configure.patch

package info (click to toggle)
guix 1.4.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 161,500 kB
  • sloc: lisp: 861,023; cpp: 10,741; javascript: 9,632; sh: 8,913; makefile: 951; ansic: 558; python: 129; sql: 33; sed: 16
file content (27 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (2)
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
Upstream status: Not upstreamed.

The build system refuses to cross-compile for unknown targets
even though it works fine.  Add GNU/Hurd target.

--- Python-3.8.5/configure.orig	2020-10-26 14:06:09.665423525 +0100
+++ Python-3.8.5/configure	2020-10-26 14:08:30.987765738 +0100
@@ -3278,6 +3278,9 @@
 	*-*-vxworks*)
 	    ac_sys_system=VxWorks
 	    ;;
+	*-*-gnu)
+	    ac_sys_system=GNU
+	    ;;
 	*)
 		# for now, limit cross builds to known configurations
 		MACHDEP="unknown"
@@ -3328,6 +3331,9 @@
 	*-*-vxworks*)
 		_host_cpu=$host_cpu
 		;;
+	*-*-gnu)
+		_host_cpu=$host_cpu
+	    ;;
 	*)
 		# for now, limit cross builds to known configurations
 		MACHDEP="unknown"