commit: d0a522113f36f683345e5f0efb6917ad9793618f
parent 42fa6c24c1495efb84d2f4b2c9d56188c01dc95d
Author: fosslinux <fosslinux@aussies.space>
Date: Tue, 17 Jan 2023 08:14:13 +1100
Fix QEMU/chroot differences in outputs for Python
Diffstat:
13 files changed, 40 insertions(+), 13 deletions(-)
diff --git a/sysa/SHA256SUMS.pkgs b/sysa/SHA256SUMS.pkgs
@@ -1,14 +1,14 @@
-dd761c6ab360b9ae66816b10fae38c3d547a146028188083295130f25dd03f5d Python-2.0.1_0.tar.bz2
-d64800e5da112f1cbdc3d2799ebd264d07fe8f111dd41edc37ed2276b3acda41 Python-2.0.1_1.tar.bz2
-bc392178f552280ba1063123257bcf549fdea088e1f78f60c93e19c9e05fa3f6 Python-2.3.7_0.tar.bz2
-97acf5c85ebfb47192fc310805ab3c80cb56f9d614027d6bdee11ae5934c2ab9 Python-2.3.7_1.tar.bz2
-e3e79771785905e169a19d8b0d784e74e5acf75889ebba2e18fcfb3ac01012f2 Python-2.5.6_0.tar.bz2
-cabadffa45bbef9043dfb940a90ec90c0cd81876493e38657f63b15bdac67065 Python-3.1.5_0.tar.bz2
-e25a6388869762a20aac39a67b51e0bdabec852ee41f1224ebac1c35fb6fdf16 Python-3.1.5_1.tar.bz2
-d0ef6a98b24e036bfd4c72aa6ae24044d85772a661553f0db5d932eef397015a Python-3.3.7_0.tar.bz2
-d72f32aee9e492f4f83f84310948193e5720f3e4572c3c98c8180cca3516dfc0 Python-3.4.10_0.tar.bz2
-5ebbb2f07cf7707801e2596768e35966e92d346ae386a19c38cfadbd30e3c4ac Python-3.8.16_0.tar.bz2
-a178cf90b4ce11396e37925c56e94359a5efba5baf6a159beb901124f64f4ba0 Python-3.11.1_0.tar.bz2
+af89612d89bb1c372a4ddf185e0df04525738662c5d173f79a75523696dcc1fe Python-2.0.1_0.tar.bz2
+67b7e41278e6242560c4ffc468881ee750d5a5682459016915dfbf976f9d3525 Python-2.0.1_1.tar.bz2
+3ab43c14ac94430ff70e8e92ac061bb994705357684123075e8999bc06e63ac2 Python-2.3.7_0.tar.bz2
+289a057ce0d3502cadf6c125de1dcd29ec048d071d924b1488c3f020fcc5c9d0 Python-2.3.7_1.tar.bz2
+82e876e93475f38fd54179d89de3db14d89841d8308bad7e39c1532807116a95 Python-2.5.6_0.tar.bz2
+742f4fab7d36dca88471e06f4920107178efaf2367bd79363ccaebb51bb4616b Python-3.1.5_0.tar.bz2
+1b156f958d29cd67b5910ada6d14e6694eab1cf0a8e840e23a11f4f4d16b9ddd Python-3.1.5_1.tar.bz2
+e5e39b284303538d59675d7369847e449b230c1df96da3d7e618a65c01de8d1b Python-3.3.7_0.tar.bz2
+4e3d09c8afe61a41e5f9a3c796dd2548743c199f271910c54e6de9cddf7232c0 Python-3.4.10_0.tar.bz2
+373b720f727f625fd7ec8437038f2ea1bd58a0c748fe487b299e3ba489770c1b Python-3.8.16_0.tar.bz2
+2e0c566fdbddd29a773f3df28639b3cc43c8733230a2cd9aa5d4a29d99f2cd94 Python-3.11.1_0.tar.bz2
2fde9f584a275efc5c8bf23adaa690e06ab6922ecbc35108731e87f565ddb2b6 autoconf-2.12_0.tar.bz2
40d88d4b1048ab70eaecf753fb77713dfcaa9c9c72252cd36459236034cdcdfd autoconf-2.13_0.tar.bz2
38f0de4c816088c514dbfb1536779f2204426a95bd6f57fa87b83bffefcaa390 autoconf-2.52_0.tar.bz2
diff --git a/sysa/helpers.sh b/sysa/helpers.sh
@@ -442,7 +442,6 @@ populate_device_nodes() {
test -c "/dev/urandom" || mknod -m 444 "/dev/urandom" c 1 9
if [ "${CHROOT}" = False ]; then
- test -c "/dev/ptmx" || mknod -m 666 "/dev/ptmx" c 5 2
test -c "/dev/tty" || mknod -m 666 "/dev/tty" c 5 0
test -c "/dev/console" || mknod -m 666 "/dev/console" c 5 1
fi
diff --git a/sysc/Python-2.0.1/stage1.sh b/sysc/Python-2.0.1/stage1.sh
@@ -26,6 +26,7 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
diff --git a/sysc/Python-2.0.1/stage2.sh b/sysc/Python-2.0.1/stage2.sh
@@ -26,6 +26,7 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl"
diff --git a/sysc/Python-2.3.7/stage1.sh b/sysc/Python-2.3.7/stage1.sh
@@ -35,6 +35,7 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
./configure \
--prefix="${PREFIX}" \
diff --git a/sysc/Python-2.3.7/stage2.sh b/sysc/Python-2.3.7/stage2.sh
@@ -37,6 +37,7 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
./configure \
--prefix="${PREFIX}" \
diff --git a/sysc/Python-2.5.6/Python-2.5.6.sh b/sysc/Python-2.5.6/Python-2.5.6.sh
@@ -15,6 +15,7 @@ src_prepare() {
rm Misc/Vim/python.vim
mv Lib/plat-generic .
rm -r Lib/plat-*
+ rm -r Modules/_ctypes/libffi
mv plat-generic Lib/
grep generated -r . -l | grep encodings | xargs rm
@@ -41,10 +42,15 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
+ LDFLAGS="-L/usr/lib/musl" \
./configure \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
- --libdir="${PREFIX}/lib/musl"
+ --libdir="${PREFIX}/lib/musl" \
+ --with-system-ffi
}
src_compile() {
diff --git a/sysc/Python-3.1.5/stage1.sh b/sysc/Python-3.1.5/stage1.sh
@@ -35,11 +35,14 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
LDFLAGS="-L/usr/lib/musl" \
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--with-pydebug \
--with-system-ffi
}
diff --git a/sysc/Python-3.1.5/stage2.sh b/sysc/Python-3.1.5/stage2.sh
@@ -40,11 +40,14 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
LDFLAGS="-L/usr/lib/musl" \
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--with-pydebug \
--with-system-ffi
}
diff --git a/sysc/Python-3.11.1/Python-3.11.1.sh b/sysc/Python-3.11.1/Python-3.11.1.sh
@@ -48,9 +48,12 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CPPFLAGS="-U__DATE__ -U__TIME__" \
LDFLAGS="-L/usr/lib/musl" \
./configure \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--with-system-ffi
diff --git a/sysc/Python-3.3.7/Python-3.3.7.sh b/sysc/Python-3.3.7/Python-3.3.7.sh
@@ -42,9 +42,12 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
LDFLAGS="-L/usr/lib/musl" \
./configure \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--with-system-ffi
diff --git a/sysc/Python-3.4.10/Python-3.4.10.sh b/sysc/Python-3.4.10/Python-3.4.10.sh
@@ -45,9 +45,12 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CFLAGS="-U__DATE__ -U__TIME__" \
LDFLAGS="-L/usr/lib/musl" \
./configure \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--with-system-ffi
diff --git a/sysc/Python-3.8.16/Python-3.8.16.sh b/sysc/Python-3.8.16/Python-3.8.16.sh
@@ -39,9 +39,12 @@ src_prepare() {
}
src_configure() {
+ MACHDEP=linux ac_sys_system=Linux \
CPPFLAGS="-U__DATE__ -U__TIME__" \
LDFLAGS="-L/usr/lib/musl" \
./configure \
+ --build=i386-unknown-linux-musl \
+ --host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--with-system-ffi