linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
gen.sh
(4161B)
1 curl https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz \
2 5a99f8e7a6a11a7b98b4e75e0d1303d3832cada5534068f69c7b6222a7b1b002
3
4 cflags "
5 -DNDEBUG
6 -DPLATLIBDIR=\\\"lib\\\"
7 -DPYTHONPATH=\\\":plat-linux\\\"
8 -DPREFIX=\\\"/\\\"
9 -DEXEC_PREFIX=\\\"/\\\"
10 -DVERSION=\\\"3.10\\\"
11 -DVPATH=\\\"\\\"
12 -DPLATFORM=\\\"linux\\\"
13 -DABIFLAGS=\\\"\\\"
14 -I$dir
15 -I$srcdir/Include
16 -I$srcdir/Include/internal
17 -isystem $pkgdir/linux-headers/include
18 -Wno-missing-field-initializers
19 -Wno-unused-parameter
20 -Wno-pedantic
21 "
22
23 dep linux-headers/headers
24
25 rule makesetup 'sh $dir/makesetup.sh $modules <$in >$out'
26 bind description 'MAKESETUP $out'
27
28 setup_modules() {
29 srcs=
30 for mod in $*; do
31 eval mod_srcs=\"\$mod_$mod\"
32 for src in $mod_srcs; do
33 srcs="$srcs Modules/$src"
34 done
35 done
36 makesetup config.c Modules/config.c.in
37 bind modules $*
38 compile -DPy_BUILD_CORE_BUILTIN "$srcs"
39 }
40
41 mod__codecs='_codecsmodule.c'
42 mod__io='_io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c'
43 mod__signal='signalmodule.c'
44 mod__sre='_sre.c'
45 mod__thread='_threadmodule.c'
46 mod__tracemalloc='_tracemalloc.c'
47 mod__weakref='_weakref.c'
48 mod_atexit='atexitmodule.c'
49 mod_faulthandler='faulthandler.c'
50 mod_itertools='itertoolsmodule.c'
51 mod_posix='posixmodule.c'
52
53 setup_modules "
54 _codecs
55 _io
56 _signal
57 _sre
58 _thread
59 _tracemalloc
60 _weakref
61 atexit
62 faulthandler
63 itertools
64 posix
65 "
66
67 lib libpython.a -DPy_BUILD_CORE "
68 $_objs
69 $outdir/config.c
70 Modules/getbuildinfo.c
71 Modules/getpath.c
72 Modules/main.c
73 Modules/gcmodule.c
74 Objects/abstract.c
75 Objects/accu.c
76 Objects/boolobject.c
77 Objects/bytes_methods.c
78 Objects/bytearrayobject.c
79 Objects/bytesobject.c
80 Objects/call.c
81 Objects/capsule.c
82 Objects/cellobject.c
83 Objects/classobject.c
84 Objects/codeobject.c
85 Objects/complexobject.c
86 Objects/descrobject.c
87 Objects/enumobject.c
88 Objects/exceptions.c
89 Objects/genericaliasobject.c
90 Objects/genobject.c
91 Objects/fileobject.c
92 Objects/floatobject.c
93 Objects/frameobject.c
94 Objects/funcobject.c
95 Objects/interpreteridobject.c
96 Objects/iterobject.c
97 Objects/listobject.c
98 Objects/longobject.c
99 Objects/dictobject.c
100 Objects/odictobject.c
101 Objects/memoryobject.c
102 Objects/methodobject.c
103 Objects/moduleobject.c
104 Objects/namespaceobject.c
105 Objects/object.c
106 Objects/obmalloc.c
107 Objects/picklebufobject.c
108 Objects/rangeobject.c
109 Objects/setobject.c
110 Objects/sliceobject.c
111 Objects/structseq.c
112 Objects/tupleobject.c
113 Objects/typeobject.c
114 Objects/unicodeobject.c
115 Objects/unicodectype.c
116 Objects/unionobject.c
117 Objects/weakrefobject.c
118 Parser/token.c
119 Parser/pegen.c
120 Parser/parser.c
121 Parser/string_parser.c
122 Parser/peg_api.c
123 Parser/myreadline.c
124 Parser/tokenizer.c
125 Python/_warnings.c
126 Python/Python-ast.c
127 Python/asdl.c
128 Python/ast.c
129 Python/ast_opt.c
130 Python/ast_unparse.c
131 Python/bltinmodule.c
132 Python/ceval.c
133 Python/codecs.c
134 Python/compile.c
135 Python/context.c
136 Python/errors.c
137 Python/frozenmain.c
138 Python/future.c
139 Python/getargs.c
140 Python/getcompiler.c
141 Python/getcopyright.c
142 Python/getplatform.c
143 Python/getversion.c
144 Python/hamt.c
145 Python/hashtable.c
146 Python/import.c
147 Python/importdl.c
148 Python/initconfig.c
149 Python/marshal.c
150 Python/modsupport.c
151 Python/mysnprintf.c
152 Python/mystrtoul.c
153 Python/pathconfig.c
154 Python/preconfig.c
155 Python/pyarena.c
156 Python/pyctype.c
157 Python/pyfpe.c
158 Python/pyhash.c
159 Python/pylifecycle.c
160 Python/pymath.c
161 Python/pystate.c
162 Python/pythonrun.c
163 Python/pytime.c
164 Python/bootstrap_hash.c
165 Python/structmember.c
166 Python/symtable.c
167 Python/sysmodule.c
168 Python/thread.c
169 Python/traceback.c
170 Python/getopt.c
171 Python/pystrcmp.c
172 Python/pystrtod.c
173 Python/pystrhex.c
174 Python/dtoa.c
175 Python/formatter_unicode.c
176 Python/fileutils.c
177 Python/suggestions.c
178 Python/dynload_stub.c
179 Python/frozen.c
180 "
181
182 bin python3 Programs/python.c libpython.a
183 sym bin/python python3
184
185 copy python3.1 Misc/python.man
186 man $outdir/python3.1
187 sym share/man/man1/python.1.gz python3.1.gz
188
189 pylibs() {
190 libfiles --keep-path --src-prefix Lib --prefix python3.10 $1
191 }
192
193 # 2,<cd src/Lib && find * '(' -name test -o -name tests -o -name idle_test ')' '!' -prune -o -name '*.py' -o -name '*Grammar.txt' | LC_COLLATE=C sort
194 foreach pylibs.txt pylibs