File: build-info-multiarch.patch

package info (click to toggle)
python3.14 3.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 130,180 kB
  • sloc: python: 756,125; ansic: 717,520; xml: 31,250; sh: 5,990; cpp: 4,063; makefile: 1,999; objc: 787; lisp: 502; javascript: 136; asm: 75; csh: 12
file content (51 lines) | stat: -rw-r--r-- 2,370 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Rename build-details.json to allow libpython3.14-stdlib to be multiarch
co-installable. PEP 739 is planned to be updated to allow this.

Bug-Debian: https://bugs.debian.org/1121810
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -797,11 +797,11 @@
 
 .PHONY: build_all
 build_all:	check-clean-src check-app-store-compliance $(BUILDPYTHON) platform sharedmods \
-		gdbhooks Programs/_testembed scripts checksharedmods rundsymutil build-details.json
+		gdbhooks Programs/_testembed scripts checksharedmods rundsymutil build-details_$(MULTIARCH).json
 
 .PHONY: build_wasm
 build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
-		python-config checksharedmods build-details.json
+		python-config checksharedmods build-details_$(MULTIARCH).json
 
 .PHONY: build_emscripten
 build_emscripten: build_wasm web_example web_example_pyrepl_jspi
@@ -1012,8 +1012,8 @@
 		exit 1 ; \
 	fi
 
-build-details.json: pybuilddir.txt
-	$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/generate-build-details.py `cat pybuilddir.txt`/build-details.json
+build-details_$(MULTIARCH).json: pybuilddir.txt
+	$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/build/generate-build-details.py `cat pybuilddir.txt`/build-details_$(MULTIARCH).json
 
 # Build static library
 $(LIBRARY): $(LIBRARY_OBJS)
@@ -2812,7 +2812,7 @@
 	done
 	$(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py $(DESTDIR)$(LIBDEST); \
 	$(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfig_vars_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).json $(DESTDIR)$(LIBDEST); \
-	$(INSTALL_DATA) `cat pybuilddir.txt`/build-details.json $(DESTDIR)$(LIBDEST); \
+	$(INSTALL_DATA) `cat pybuilddir.txt`/build-details_$(MULTIARCH).json $(DESTDIR)$(LIBDEST); \
 	$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
 	@ # If app store compliance has been configured, apply the patch to the
 	@ # installed library code. The patch has been previously validated against
--- a/Lib/test/test_build_details.py
+++ b/Lib/test/test_build_details.py
@@ -130,7 +130,7 @@
                 dirname = os.path.join(projectdir, f.read())
         else:
             dirname = sysconfig.get_path('stdlib')
-        return os.path.join(dirname, 'build-details.json')
+        return os.path.join(dirname, f'build-details_{sys.implementation._multiarch}.json')
 
     @property
     def contents(self):