Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package plplot for openSUSE:Factory checked in at 2021-07-07 18:30:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plplot (Old) and /work/SRC/openSUSE:Factory/.plplot.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plplot" Wed Jul 7 18:30:26 2021 rev:68 rq:904392 version:5.15.0 Changes: -------- --- /work/SRC/openSUSE:Factory/plplot/plplot.changes 2021-07-05 22:23:16.433585485 +0200 +++ /work/SRC/openSUSE:Factory/.plplot.new.2625/plplot.changes 2021-07-07 18:31:36.634458488 +0200 @@ -1,0 +2,7 @@ +Tue Jul 6 05:52:58 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Change shebangs for Python examples to be Python 3. +- Add patch support-python3-pythondemos.patch so pythondemos.py will + run under Python 3. + +------------------------------------------------------------------- New: ---- support-python3-pythondemos.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plplot.spec ++++++ --- /var/tmp/diff_new_pack.wPukrt/_old 2021-07-07 18:31:37.190454125 +0200 +++ /var/tmp/diff_new_pack.wPukrt/_new 2021-07-07 18:31:37.190454125 +0200 @@ -72,6 +72,8 @@ Patch3: plplot-drop-FindLua-cmake-module.patch # PATCH-FIX-UPSTREAM https://sourceforge.net/p/plplot/bugs/196/ -- Use reentrant libqhull_r Patch4: 0001-Use-reentrant-libqhull_r-instead-of-deprecated-libqh.patch +# PATCH-FIX-UPSTREAM support-python3-pythondemos.patch Use print function, so the script works with Python 3 +Patch5: support-python3-pythondemos.patch # List based on build_ada in gcc.spec ExclusiveArch: %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 riscv64 BuildRequires: cmake >= 3.13.2 @@ -1123,10 +1125,10 @@ #Remove a fortran static library rm %{buildroot}%{_libdir}/libplfortrandemolib*.a -#Fix python hashbangs for examples (/usr/bin/env python -> /usr/bin/python) -sed -i "1{s/\/usr\/bin\/env python/\/usr\/bin\/python/;}" %{buildroot}%{_datadir}/%{name}%{version}/examples/python/x* -sed -i "1{s/\/usr\/bin\/env python/\/usr\/bin\/python/;}" %{buildroot}%{_datadir}/%{name}%{version}/examples/python/*.py -sed -i "1{s/\/usr\/bin\/env python/\/usr\/bin\/python/;}" %{buildroot}%{_datadir}/%{name}%{version}/examples/python/pytkdemo +#Fix python hashbangs for examples (/usr/bin/env python -> /usr/bin/python3) +sed -i "1{s/\/usr\/bin\/env python/\/usr\/bin\/python3/;}" %{buildroot}%{_datadir}/%{name}%{version}/examples/python/x* +sed -i "1{s/\/usr\/bin\/env python/\/usr\/bin\/python3/;}" %{buildroot}%{_datadir}/%{name}%{version}/examples/python/*.py +sed -i "1{s/\/usr\/bin\/env python/\/usr\/bin\/python3/;}" %{buildroot}%{_datadir}/%{name}%{version}/examples/python/pytkdemo %fdupes %{buildroot}%{_datadir}/ ++++++ support-python3-pythondemos.patch ++++++ Index: plplot-5.15.0/examples/python/pythondemos.py =================================================================== --- plplot-5.15.0.orig/examples/python/pythondemos.py +++ plplot-5.15.0/examples/python/pythondemos.py @@ -53,7 +53,6 @@ for i in range(0,34): w.plend() if len(failed) != 0: - import string - print "Failed script(s): " + string.join(failed,", ") + print("Failed script(s): " + ", ".join(failed)) sys.exit(1)