the sieve test fail because math.mod seems to be depreciate : in src/luaconf.h : /* @@ LUA_COMPAT_MOD controls compatibility with old math.mod function. ** CHANGE it to undefined as soon as your programs use 'math.fmod' or ** the new '%' operator instead of 'math.mod'. */ #undef LUA_COMPAT_MOD So I replace math.mod with math.fmod in the test.
Created attachment 144135 [details, diff] replace math.mod with math.fmod in test/sieve.lua
Created attachment 144136 [details, diff] ebuild's diff
Created attachment 144257 [details, diff] lua.ebuild.patch In fact we need to patch only if use=deprecated is not enable.
It would also be nice if we got rid of the ridiculous &> /dev/null in src_test(). If anything you'd want to _keep_ the output of a test, especially if it fails. Frankly, why anyone would ever put &> /dev/null in an ebuild is beyond me. Changing the summary as this hasn't been fixed in -r2.
Probably the &> /dev/null was introduced so the output looked nicer or whatever. I agree with you that it's silly, i removed it and included the patch for the test. Thanks Oliver!