Hi,

I've noticed that many packages fail their autopkgtests [1] because of this.
Root cause is that soft link wasn't updated after the first step of the cycle
between Python versions.

Applying the patch below fixes the problem and the package builds fine
in a sid chroot environment; autopkgtests pass as well.

--- rules       2024-11-19 06:55:37.478377387 +0000
+++ rules-new   2024-11-19 06:54:39.732267838 +0000
@@ -5,6 +5,7 @@
 export PYBUILD_NAME=orjson
 export CARGO_NET_OFFLINE=true
 export CARGO_HOME=$(shell pwd)/debian/cargo_home
+export PYBUILD_BEFORE_TEST=cp -r data {build_dir}
 
 %:
        dh $@ --buildsystem=pybuild
@@ -17,7 +18,3 @@
        mv Cargo.lock Cargo.lock.saved
        dh_auto_build
 
-override_dh_auto_test:
-       ln -sr data .pybuild/cpython3_*_orjson/build/
-       dh_auto_test
-       rm .pybuild/cpython3_*_orjson/build/data


Kind Regards

[1] https://qa.debian.org/excuses.php?package=python3-defaults

Reply via email to