Commit 52abf79
committed
feat(python): drop configure-project-installer, inline autotools build
Switch fromsource:python (cpython) to its own inline autotools build,
applying the cluster-A sandbox-fix template. This is the last cluster B
leaf and exercises every other cluster-B fix end-to-end (zlib, openssl,
ncurses, readline, libffi, bzip2, xz-utils, util-linux/libuuid).
* paths derived from pkginfo.install_file() (path.absolute is nil)
* configure + make + install chained in single sh -c (os.cd doesn't
propagate to system.exec children)
* fixed -j8
* deps: explicit xim:gcc + xim:make + xim:xpkg-helper (previously
pulled in transitively via xim:configure-project-installer)
* license: humanized string -> SPDX PSF-2.0
* env exports kept inline in sh -c (TZDIR, CPPFLAGS, LDFLAGS) so they
reach the configure subprocess; os.setenv at lua scope didn't reach
configure's grandchildren via xpkg-helper indirection in the legacy
flow.
CPPFLAGS / LDFLAGS extensions:
-I<sysroot>/usr/include core stdlib deps
-I<sysroot>/usr/include/ncurses for `<termcap.h>` / `<curses.h>`
flat lookup (ncurses installs
these under the ncurses/ subdir)
-I<sysroot>/usr/include/openssl for openssl 3 headers (some are
under the openssl/ subdir)
-L<sysroot>/lib find xvm-shimmed shared libs
-Wl,-rpath,/home/xlings/.xlings_data/subos/linux/lib
bake canonical xlings runtime
lib path so the produced python
binary loads its dependent
shared libs from a user-machine
install, not the build host
Configure flags:
--enable-shared ship libpython3.13.so for embedders
--with-computed-gotos faster main loop dispatch
--enable-ipv6 IPv6 sockets
--enable-loadable-sqlite-extensions ready for future fromsource:sqlite3
--with-system-ffi link against fromsource:libffi
Verified end-to-end in xlings 0.4.9 iso (with cluster B 1..7 all
MERGED upstream as #62..#68):
✓ configure -> make -j8 -> make install (~1m20s with deps cached)
✓ produced bin/python3, bin/pip3, bin/idle3, bin/python3-config
✓ produced lib/libpython3.13.so.1.0
✓ python3 --version -> 3.13.1
✓ stdlib import sanity:
- zlib (zlib 1.3.1)
- ssl (OpenSSL 3.1.5 30 Jan 2024)
- hashlib (sha256 round-trip)
- lzma (xz-utils via _lzma)
- bz2 (bzip2)
- uuid (util-linux libuuid)
- readline (8.2 patched series)
- ctypes (libffi)
_sqlite3 is intentionally skipped (no fromsource:sqlite3 yet — tracked
under the existing "TODO: gdbm, sqlite3, tk/tkinter" line in deps).
Cluster B leaf 8/8 — sweep complete. Net effect across cluster B:
`grep -lR configure-project-installer pkgs/` should now match zero.1 parent f3629b3 commit 52abf79
1 file changed
Lines changed: 60 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
77 | 107 | | |
78 | 108 | | |
79 | 109 | | |
80 | 110 | | |
81 | | - | |
82 | 111 | | |
83 | 112 | | |
84 | 113 | | |
| |||
91 | 120 | | |
92 | 121 | | |
93 | 122 | | |
94 | | - | |
| 123 | + | |
95 | 124 | | |
96 | 125 | | |
97 | 126 | | |
| |||
128 | 157 | | |
129 | 158 | | |
130 | 159 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 160 | + | |
139 | 161 | | |
140 | | - | |
141 | | - | |
| 162 | + | |
| 163 | + | |
142 | 164 | | |
143 | | - | |
| 165 | + | |
| 166 | + | |
144 | 167 | | |
| 168 | + | |
| 169 | + | |
145 | 170 | | |
146 | | - | |
| 171 | + | |
| 172 | + | |
0 commit comments