Re: ntpq vs Python 3.8
On 26-05-2020 00:31, Hal Murray via devel wrote: > Fedora is updating from Python 3.7 to 3.8. > > That breaks ntpq (and friends) because the installed ntp libraries are over > in 3.7 but ntpq is looking in 3.8 > > Is there a good/clean fix for this? Should the code that chops the ".py? off > the name also fixup the first line of the script to replace "python" with > "python3.x"? > When awe are looking into the python corner, can we please fix these build errors? (...) Bytecompiling .py files below /root/rpmbuild/BUILDROOT/ntpsec-1.1.9-0.fc31.x86_64/usr/lib64/python3.7 using /usr/bin/python3.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/ntpleapfetch from /bin/sh to #!/usr/bin/sh Processing files: ntpsec-1.1.9-0.fc31.x86_64 error: Invalid version (double separator '-'): 1.1.9.2019-08-02T00-00-00Z: python3.7dist(ntp) == 1.1.9.2019-08-02T00-00-00Z error: Invalid version (double separator '-'): 1.1.9.2019-08-02T00-00-00Z: python3dist(ntp) == 1.1.9.2019-08-02T00-00-00Z (cut) These have been around for quite a while. Kind regards, Udo ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel
Re: ntpq vs Python 3.8
On Mon, May 25, 2020, at 3:31 PM Hal Murray via devel wrote: > > Fedora is updating from Python 3.7 to 3.8. > > That breaks ntpq (and friends) because the installed ntp libraries are over > in 3.7 but ntpq is looking in 3.8 > > Is there a good/clean fix for this? Should the code that chops the ".py? off > the name also fixup the first line of the script to replace "python" with > "python3.x"? I had a branch that could run on multiple Python major/minor combos, but it is out of date, there are questions about performance, and it dropped a point priority wise now that 2.7 is dead. IIRC ntpq and at least some friends pull in ntp.ntpc which would require recompile unless 3.8 is just being added not replacing 3.7. So, no there's not a good/clean solution as stated. ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel
Re: ntpq vs Python 3.8
Yo Hal! On Mon, 25 May 2020 15:31:42 -0700 Hal Murray via devel wrote: > Fedora is updating from Python 3.7 to 3.8. Gentoo has remove 2.7 and moved from 3.6 yo 3.7 to 3.8 quickly. What a PITA. > That breaks ntpq (and friends) because the installed ntp libraries > are over in 3.7 but ntpq is looking in 3.8 Just reinstall NTPsec from git head. It will autodetect the new python and Do The Right Thing(tm). > Is there a good/clean fix for this? Should the code that chops the > ".py? off the name also fixup the first line of the script to replace > "python" with "python3.x"? On gpsd, I made the python shebang a config variable. The PEP used to be very specific, but the distros went all random. There is no one, or even two good answers. RGDS GARY --- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can't measure it, you can't improve it." - Lord Kelvin pgpm7PPmosZf7.pgp Description: OpenPGP digital signature ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel
ntpq vs Python 3.8
Fedora is updating from Python 3.7 to 3.8. That breaks ntpq (and friends) because the installed ntp libraries are over in 3.7 but ntpq is looking in 3.8 Is there a good/clean fix for this? Should the code that chops the ".py? off the name also fixup the first line of the script to replace "python" with "python3.x"? -- These are my opinions. I hate spam. ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel