tests/option-tester is broken

James Browning jamesb192 at jamesb192.com
Tue Dec 20 01:57:36 UTC 2022


> On 12/19/2022 4:19 PM PST Hal Murray via devel <devel at ntpsec.org> wrote:
> 
> 
> Anybody remember this area?
> 
> With a fresh clone on Fedora which uses
> Python 3.11.0
> 
> 
> test-all/test.log:Trouble with test-all
> 
> Looking in test-all/test.log
> 
> The build looks clean. It dies in the checking that all the programs run well
> enough to print their version info:
> 
> running: main/ntpd/ntpd --version FAILED
> Expected: ntpd
> 
> Got (stdout): ntpd ntpsec-1.2.1+135-g62cb02f74
> 
> The Got looks good to me so the tester is broken?
> 
> Then the python stuff
> 
> running: main/ntpclients/ntpdig --version FAILED
> Expected: ntpdig
> 
> Got (stderr): ntpdig: can't find Python NTP library -- check PYTHONPATH.
> No module named 'ntp.ntpc'
> 
> I've forgotten how this stuff works. I think the "." in there is really a
> slash. Python is looking for ntp/ntpc.py
> 
> I see ./test-minimal/main/pylib/ntpc.py in all the others but not in test-all
> Same for libntpc.so
> 
> The log file shows:
> [ 96/137] Linking test-all/main/pylib/ntpc
> with no errors.
> 
> 
> I get the same results after I chop off my 2 recent commits.

Bumping waf (2.0.23 tested) resolves this, and it only happens 
for the extension because, for some raisin, waf is outputting
to the wrong file name of ntpc rather than
ntpc.cpython-311-x86_64-linux-gnu.so , go figure.

The default of the FFI library + ctypes is unaffected.


More information about the devel mailing list