Specify a sysconfig scheme in smoke-rpm
authorStefano Rivera <stefano@rivera.za.net>
Thu, 29 Sep 2022 11:10:19 +0000 (13:10 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 29 Sep 2022 14:27:58 +0000 (16:27 +0200)
Debian uses the posix_local scheme by default, since Python 3.10,
causing the rpm to be built with the incorrect layout.

debian/tests/smoke-rpm

index 90598a289e49474ffedd49bebd5feb6da2af4177..b7694d1e13fa9e5ce04413460008b52342f8d991 100755 (executable)
@@ -25,7 +25,7 @@ if python3 -c "import setuptools"; then
                        --git-export-dir="$GBP_TEMPDIR" \
                        -D'%__python3 /usr/bin/python3' \
                        -D'%__python /usr/bin/python3' \
-                       -D'%python_sitelib %(%{__python3} -Ic "from sysconfig import get_path; print(get_path('"'platlib'"'))")' \
+                       -D'%python_sitelib %(%{__python3} -Ic "from sysconfig import get_path; print(get_path('"'platlib'"', '"'posix_prefix'"'))")' \
                        -D'%_arch noarch' \
                        -bb --nodeps
 fi