Source: feenox Version: 1.0.133-1 Severity: serious Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64
Dear feenox maintainer, The package feenox build failed on almost all arch.The crucial buildd log below: ``` FAIL: tests/expressions_constants.sh ==================================== expr.fee 1+1 ... ok expr.fee 1+3 ... ok expr.fee 1+2*3 ... ok expr.fee (1+2)*3 ... ok expr.fee (-2^3) ... ok expr.fee (-1-(-1)) ... ok expr.fee (-1+(-1)) ... ok expr.fee (-1+(+1)) ... ok expr.fee (-1-(+1)) ... ok expr.fee 1/3 ... ok expr.fee (1+1/1e6)^1e6 ... ok expr.fee 1/((1+1/1e6)^1e6) ... ok expr.fee ((1+1/1e6)^1e6)^(-1) ... ok expr.fee 2^0.5 ... ok expr.fee 2^(1/2) ... ok expr.fee sqrt(5)+(-2*(-2))*(-1) ... ok expr.fee (1+sqrt(5))/2 ... ok expr.fee pi ... ok expr.fee pi/2 ... ok expr.fee 2*pi ... ok expr.fee pi^2 ... ok expr.fee pi^0.5 ... ok expr.fee sqrt(2) ... ok expr.fee sqrt(3) ... ok expr.fee sqrt(pi) ... ok expr.fee sqrt(pi^2) ... ok expr.fee sqrt(pi)^2 ... ok expr.fee atan2(exp(-1/2),log(sqrt(2))) ... ok expr.fee mod(sinh(1+1^2),pi) ... ok expr.fee max(1,sqrt(2),cos(acos(2/3)),floor(1.9)) ... ok expr.fee if(sqrt(10)>pi,10,pi^2) ... ok expr.fee sin(1) ... ok expr.fee sqrt(1-cos(1)^2) ... ok expr.fee sin(1)^2+cos(1)^2 ... ok expr.fee 1/0 ... ok expr.fee (-1)^0.5 ... wrong, expected '-nan' and got 'nan' FAIL tests/expressions_constants.sh (exit status: 1) FAIL: tests/los-alamos.sh ========================= la-p01-PUa-1-0-IN.fee ... ok la-p02-PUa-1-0-SL.fee ... ok la-p03-PUa-H2O_1-1-0-SL.fee ... ok la-p04-PUa-H2O_0.5-1-0-SL.fee ... ok la-p05-PUb-1-0-IN.fee ... ok la-p06-PUb-1-0-SL.fee ... ok la-p07-PUb-1-0-CY.fee ... ok la-p08-PUb-1-0-SP.fee ... ok la-p09-PUb-H2O_1-1-0-CY.fee ... ok la-p10-PUb-H2O_10-1-0-CY.fee ... ok la-p47-U-2-0-IN.fee ... ok la-p48-U-2-0-SL.fee ... ok la-p49-U-2-0-SP.fee ... wrong, expected zero and got '0.00166048' FAIL tests/los-alamos.sh (exit status: 1) FAIL: tests/ray-effect.sh ``` The full buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=feenox&arch=riscv64&ver=1.0.133-1&stamp=1742325614&raw=0 My solution to this issue: The build failed due to three important tests not passing, namely tests/los-alamos.sh, tests/expressions_constants.sh, and tests/ray-effect.sh. I referred to the handling approach in the upstream-related files ( https://github.com/seamplex/feenox/commit/c222eb3f236f0635a60b6c441d8723e156a4cfcd#diff-49f9f63db61e3d02d7075941790e3b31a27617c7bcfb48c51845b02fa4a8f666; https://github.com/seamplex/feenox/commit/b3b4312d141e133fae9bfdced98883a25cba9d35#diff-e567837620f74415f49203a714c25ba19d426c1f8554d029b2c24932137a3f15) and, combined with the build logs, created a patch to modify these tests. I tested this solution, and it works effectively. The debpatch is in the attachment.Please let me know whether this solution can be accepted. Gui-Yue Best Regards
fix_feenox_test_failed.patch
Description: Binary data