Fedora 28 - python warnings

Udo van den Heuvel udovdh at xs4all.nl
Fri May 11 04:46:27 UTC 2018


On 10-05-18 18:44, Gary E. Miller via devel wrote:
>> I built ntpsec 1.1.0 for the first time on the Feddora 28 platform.
>> I noticed that they want to move away from invocations of
>> /usr/bin/python towards explicit choices for /usr/bin/python2 or
>> /usr/bin/python3.
> 
> Uh, where?  I can't find any:
> 
> ntpsec # fgrep bin/python * -r
> ntpsec # 

# rpmbuild -bb SPECS/ntpsec.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.G8gS26
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf ntpsec-1.1.0
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/ntpsec-1.1.0.tgz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ntpsec-1.1.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nMCO91
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd ntpsec-1.1.0
+ ./waf configure --prefix=/usr --enable-early-droproot
--refclock=nmea,generic --libdir=/usr/lib64
--docdir=/usr/share/doc/ntpsec --enable-doc
DEPRECATION WARNING: python2 invoked with /usr/bin/python.
    Use /usr/bin/python3 or /usr/bin/python2
    /usr/bin/python will be removed or switched to Python 3 in the future.
    If you cannot make the switch now, please follow instructions at
https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out
(cut)

It is a Fedora thing but perhaps a step in the right direction.

Kind regards,
Udo


More information about the devel mailing list