- Update python3 to 3.9
- Fixed packages for compatibility
Change-Id: I62ad1fe69d0a5bcae832694b0f5b3b98314cda51
Signed-off-by: Tapas Kundu <tkundu@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/11500
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Shreyas Ranjan Behera <shreyasb@vmware.com>
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Name: WALinuxAgent |
| 2 | 2 |
Summary: The Windows Azure Linux Agent |
| 3 | 3 |
Version: 2.2.49.2 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
License: Apache License Version 2.0 |
| 6 | 6 |
Group: System/Daemons |
| 7 | 7 |
Url: https://github.com/Azure/WALinuxAgent |
| ... | ... |
@@ -76,9 +76,11 @@ python3 setup.py check && python3 setup.py test |
| 76 | 76 |
%{_localstatedir}/log/waagent.log
|
| 77 | 77 |
%ghost %{_localstatedir}/opt/waagent/log/waagent.log
|
| 78 | 78 |
%dir %attr(0700, root, root) %{_sharedstatedir}/waagent
|
| 79 |
-/usr/lib/python3.8/site-packages/* |
|
| 79 |
+/usr/lib/python3.9/site-packages/* |
|
| 80 | 80 |
|
| 81 | 81 |
%changelog |
| 82 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 2.2.49.2-3 |
|
| 83 |
+- Build with python 3.9 |
|
| 82 | 84 |
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 2.2.49.2-2 |
| 83 | 85 |
- openssl 1.1.1 |
| 84 | 86 |
* Fri Aug 28 2020 Gerrit Photon <photon-checkins@vmware.com> 2.2.49.2-1 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
| 2 | 2 |
Name: apparmor |
| 3 | 3 |
Version: 3.0.0 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
Summary: AppArmor is an effective and easy-to-use Linux application security system. |
| 6 | 6 |
License: GNU LGPL v2.1 |
| 7 | 7 |
URL: https://launchpad.net/apparmor |
| ... | ... |
@@ -194,9 +194,9 @@ make %{?_smp_mflags}
|
| 194 | 194 |
%check |
| 195 | 195 |
easy_install_3=$(ls /usr/bin |grep easy_install |grep 3) |
| 196 | 196 |
$easy_install_3 pyflakes |
| 197 |
-export PYTHONPATH=/usr/lib/python3.8/site-packages |
|
| 197 |
+export PYTHONPATH=/usr/lib/python3.9/site-packages |
|
| 198 | 198 |
export PYTHON=/usr/bin/python3 |
| 199 |
-export PYTHON_VERSION=3.8 |
|
| 199 |
+export PYTHON_VERSION=3.9 |
|
| 200 | 200 |
export PYTHON_VERSIONS=python3 |
| 201 | 201 |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/" |
| 202 | 202 |
cd ./libraries/libapparmor |
| ... | ... |
@@ -207,9 +207,9 @@ cd ../utils |
| 207 | 207 |
make check |
| 208 | 208 |
|
| 209 | 209 |
%install |
| 210 |
-export PYTHONPATH=/usr/lib/python3.8/site-packages |
|
| 210 |
+export PYTHONPATH=/usr/lib/python3.9/site-packages |
|
| 211 | 211 |
export PYTHON=/usr/bin/python3 |
| 212 |
-export PYTHON_VERSION=3.8 |
|
| 212 |
+export PYTHON_VERSION=3.9 |
|
| 213 | 213 |
export PYTHON_VERSIONS=python3 |
| 214 | 214 |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/" |
| 215 | 215 |
cd libraries/libapparmor |
| ... | ... |
@@ -352,6 +352,8 @@ make DESTDIR=%{buildroot} install
|
| 352 | 352 |
%exclude %{perl_archlib}/perllocal.pod
|
| 353 | 353 |
|
| 354 | 354 |
%changelog |
| 355 |
+* Fri Nov 06 2020 Tapas Kundu <tkundu@vmware.com> 3.0.0-3 |
|
| 356 |
+- Build with python 3.9 |
|
| 355 | 357 |
* Fri Oct 23 2020 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 3.0.0-2 |
| 356 | 358 |
- Fix build failure in apparmor on linux 5.9-rc7 |
| 357 | 359 |
* Thu Oct 01 2020 Gerrit Photon <photon-checkins@vmware.com> 3.0.0-1 |
| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 |
-%define python3_sitelib /usr/lib/python3.8/site-packages |
|
| 1 |
+%define python3_sitelib /usr/lib/python3.9/site-packages |
|
| 2 | 2 |
|
| 3 | 3 |
Name: cloud-init |
| 4 | 4 |
Version: 20.3 |
| 5 |
-Release: 2%{?dist}
|
|
| 5 |
+Release: 3%{?dist}
|
|
| 6 | 6 |
Summary: Cloud instance init scripts |
| 7 | 7 |
Group: System Environment/Base |
| 8 | 8 |
License: GPLv3 |
| ... | ... |
@@ -156,6 +156,8 @@ rm -rf $RPM_BUILD_ROOT |
| 156 | 156 |
%dir /var/lib/cloud |
| 157 | 157 |
|
| 158 | 158 |
%changelog |
| 159 |
+* Fri Nov 06 2020 Tapas Kundu <tkundu@vmware.com> 20.3-3 |
|
| 160 |
+- Updated using python 3.9 lib |
|
| 159 | 161 |
* Mon Oct 12 2020 Shreenidhi Shedi <sshedi@vmware.com> 20.3-2 |
| 160 | 162 |
- Fixed subp import in photon.py |
| 161 | 163 |
- Fixed creating `[Route]` entries while creating network files |
| ... | ... |
@@ -1,13 +1,13 @@ |
| 1 | 1 |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
| 2 | 2 |
Summary: C extensions for Python3 |
| 3 | 3 |
Name: cython3 |
| 4 |
-Version: 0.29.21 |
|
| 5 |
-Release: 2%{?dist}
|
|
| 4 |
+Version: 3.0a6 |
|
| 5 |
+Release: 1%{?dist}
|
|
| 6 | 6 |
Group: Development/Libraries |
| 7 | 7 |
License: Apache License |
| 8 | 8 |
URL: http://cython.org/ |
| 9 | 9 |
Source0: https://github.com/cython/cython/archive/Cython-%{version}.tar.gz
|
| 10 |
-%define sha1 Cython=718dcfee83132421e2df4eb6fa0ef7f3917bf7b9 |
|
| 10 |
+%define sha1 Cython=2c902b732ca14d07999fca6aa2c80d5d6ceabb8c |
|
| 11 | 11 |
Patch0: fix_make_check_tests.patch |
| 12 | 12 |
Vendor: VMware, Inc. |
| 13 | 13 |
Distribution: Photon |
| ... | ... |
@@ -25,7 +25,6 @@ It makes writing C extensions for Python as easy as Python itself. |
| 25 | 25 |
%prep |
| 26 | 26 |
%setup -q -n cython-%{version}
|
| 27 | 27 |
%patch0 -p1 |
| 28 |
- |
|
| 29 | 28 |
%build |
| 30 | 29 |
python3 setup.py build |
| 31 | 30 |
|
| ... | ... |
@@ -52,6 +51,8 @@ rm -rf %{buildroot}
|
| 52 | 52 |
%{python3_sitelib}/__pycache__/*
|
| 53 | 53 |
|
| 54 | 54 |
%changelog |
| 55 |
+* Wed Oct 14 2020 Tapas Kundu <tkundu@vmware.com> 3.0a6-1 |
|
| 56 |
+- Update to 3.0a6 |
|
| 55 | 57 |
* Mon Jul 27 2020 Tapas Kundu <tkundu@vmware.com> 0.29.21-2 |
| 56 | 58 |
- Build with python3 |
| 57 | 59 |
* Thu Jul 09 2020 Gerrit Photon <photon-checkins@vmware.com> 0.29.21-1 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Talloc is a hierarchical, reference counted memory pool system |
| 2 | 2 |
Name: libtalloc |
| 3 | 3 |
Version: 2.3.1 |
| 4 |
-Release: 3%{?dist}
|
|
| 4 |
+Release: 4%{?dist}
|
|
| 5 | 5 |
License: LGPLv3+ |
| 6 | 6 |
URL: https://talloc.samba.org |
| 7 | 7 |
Group: System Environment/Libraries |
| ... | ... |
@@ -73,29 +73,31 @@ make check |
| 73 | 73 |
|
| 74 | 74 |
%files -n python3-talloc |
| 75 | 75 |
%defattr(-,root,root) |
| 76 |
-%{_libdir}/python3.8/site-packages/*
|
|
| 76 |
+%{_libdir}/python3.9/site-packages/*
|
|
| 77 | 77 |
%ifarch x86_64 |
| 78 |
-%{_libdir}/libpytalloc-util.cpython-38-x86-64-linux-gnu.so.2
|
|
| 79 |
-%{_libdir}/libpytalloc-util.cpython-38-x86-64-linux-gnu.so.2.3.1
|
|
| 78 |
+%{_libdir}/libpytalloc-util.cpython-39-x86-64-linux-gnu.so.2
|
|
| 79 |
+%{_libdir}/libpytalloc-util.cpython-39-x86-64-linux-gnu.so.2.3.1
|
|
| 80 | 80 |
%endif |
| 81 | 81 |
%ifarch aarch64 |
| 82 |
-%{_libdir}/libpytalloc-util.cpython-38-aarch64-linux-gnu.so.2
|
|
| 83 |
-%{_libdir}/libpytalloc-util.cpython-38-aarch64-linux-gnu.so.2.3.1
|
|
| 82 |
+%{_libdir}/libpytalloc-util.cpython-39-aarch64-linux-gnu.so.2
|
|
| 83 |
+%{_libdir}/libpytalloc-util.cpython-39-aarch64-linux-gnu.so.2.3.1
|
|
| 84 | 84 |
%endif |
| 85 | 85 |
|
| 86 | 86 |
%files -n python3-talloc-devel |
| 87 | 87 |
%defattr(-,root,root) |
| 88 | 88 |
%{_includedir}/pytalloc.h
|
| 89 | 89 |
%ifarch x86_64 |
| 90 |
-%{_libdir}/libpytalloc-util.cpython-38-x86-64-linux-gnu.so
|
|
| 91 |
-%{_libdir}/pkgconfig/pytalloc-util.cpython-38-x86_64-linux-gnu.pc
|
|
| 90 |
+%{_libdir}/libpytalloc-util.cpython-39-x86-64-linux-gnu.so
|
|
| 91 |
+%{_libdir}/pkgconfig/pytalloc-util.cpython-39-x86_64-linux-gnu.pc
|
|
| 92 | 92 |
%endif |
| 93 | 93 |
%ifarch aarch64 |
| 94 |
-%{_libdir}/libpytalloc-util.cpython-38-aarch64-linux-gnu.so
|
|
| 95 |
-%{_libdir}/pkgconfig/pytalloc-util.cpython-38-aarch64-linux-gnu.pc
|
|
| 94 |
+%{_libdir}/libpytalloc-util.cpython-39-aarch64-linux-gnu.so
|
|
| 95 |
+%{_libdir}/pkgconfig/pytalloc-util.cpython-39-aarch64-linux-gnu.pc
|
|
| 96 | 96 |
%endif |
| 97 | 97 |
|
| 98 | 98 |
%changelog |
| 99 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 2.3.1-4 |
|
| 100 |
+- Build with python 3.9 |
|
| 99 | 101 |
* Wed Jul 29 2020 Tapas Kundu <tkundu@vmware.com> 2.3.1-3 |
| 100 | 102 |
- Build with python3 |
| 101 | 103 |
* Fri Jul 24 2020 Tapas Kundu <tkundu@vmware.com> 2.3.1-2 |
| 102 | 104 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,91 @@ |
| 0 |
+From edc7b6abb0c125eeb888748c334897f60aab0854 Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> |
|
| 2 |
+Date: Fri, 28 Feb 2020 12:48:14 +0100 |
|
| 3 |
+Subject: [PATCH] Parenthesize Py<type>_Check() in ifs |
|
| 4 |
+ |
|
| 5 |
+In C, if expressions should be parenthesized. |
|
| 6 |
+PyLong_Check, PyUnicode_Check etc. happened to expand to a parenthesized |
|
| 7 |
+expression before, but that's not API to rely on. |
|
| 8 |
+ |
|
| 9 |
+Since Python 3.9.0a4 it needs to be parenthesized explicitly. |
|
| 10 |
+ |
|
| 11 |
+Fixes https://gitlab.gnome.org/GNOME/libxml2/issues/149 |
|
| 12 |
+--- |
|
| 13 |
+ python/libxml.c | 4 ++-- |
|
| 14 |
+ python/types.c | 12 ++++++------ |
|
| 15 |
+ 2 files changed, 8 insertions(+), 8 deletions(-) |
|
| 16 |
+ |
|
| 17 |
+diff --git a/python/libxml.c b/python/libxml.c |
|
| 18 |
+index bc676c4e0..81e709f34 100644 |
|
| 19 |
+--- a/python/libxml.c |
|
| 20 |
+@@ -294,7 +294,7 @@ xmlPythonFileReadRaw (void * context, char * buffer, int len) {
|
|
| 21 |
+ lenread = PyBytes_Size(ret); |
|
| 22 |
+ data = PyBytes_AsString(ret); |
|
| 23 |
+ #ifdef PyUnicode_Check |
|
| 24 |
+- } else if PyUnicode_Check (ret) {
|
|
| 25 |
++ } else if (PyUnicode_Check (ret)) {
|
|
| 26 |
+ #if PY_VERSION_HEX >= 0x03030000 |
|
| 27 |
+ Py_ssize_t size; |
|
| 28 |
+ const char *tmp; |
|
| 29 |
+@@ -359,7 +359,7 @@ xmlPythonFileRead (void * context, char * buffer, int len) {
|
|
| 30 |
+ lenread = PyBytes_Size(ret); |
|
| 31 |
+ data = PyBytes_AsString(ret); |
|
| 32 |
+ #ifdef PyUnicode_Check |
|
| 33 |
+- } else if PyUnicode_Check (ret) {
|
|
| 34 |
++ } else if (PyUnicode_Check (ret)) {
|
|
| 35 |
+ #if PY_VERSION_HEX >= 0x03030000 |
|
| 36 |
+ Py_ssize_t size; |
|
| 37 |
+ const char *tmp; |
|
| 38 |
+diff --git a/python/types.c b/python/types.c |
|
| 39 |
+index c2bafeb19..ed284ec74 100644 |
|
| 40 |
+--- a/python/types.c |
|
| 41 |
+@@ -602,16 +602,16 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj) |
|
| 42 |
+ if (obj == NULL) {
|
|
| 43 |
+ return (NULL); |
|
| 44 |
+ } |
|
| 45 |
+- if PyFloat_Check (obj) {
|
|
| 46 |
++ if (PyFloat_Check (obj)) {
|
|
| 47 |
+ ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj)); |
|
| 48 |
+- } else if PyLong_Check(obj) {
|
|
| 49 |
++ } else if (PyLong_Check(obj)) {
|
|
| 50 |
+ #ifdef PyLong_AS_LONG |
|
| 51 |
+ ret = xmlXPathNewFloat((double) PyLong_AS_LONG(obj)); |
|
| 52 |
+ #else |
|
| 53 |
+ ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj)); |
|
| 54 |
+ #endif |
|
| 55 |
+ #ifdef PyBool_Check |
|
| 56 |
+- } else if PyBool_Check (obj) {
|
|
| 57 |
++ } else if (PyBool_Check (obj)) {
|
|
| 58 |
+ |
|
| 59 |
+ if (obj == Py_True) {
|
|
| 60 |
+ ret = xmlXPathNewBoolean(1); |
|
| 61 |
+@@ -620,14 +620,14 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj) |
|
| 62 |
+ ret = xmlXPathNewBoolean(0); |
|
| 63 |
+ } |
|
| 64 |
+ #endif |
|
| 65 |
+- } else if PyBytes_Check (obj) {
|
|
| 66 |
++ } else if (PyBytes_Check (obj)) {
|
|
| 67 |
+ xmlChar *str; |
|
| 68 |
+ |
|
| 69 |
+ str = xmlStrndup((const xmlChar *) PyBytes_AS_STRING(obj), |
|
| 70 |
+ PyBytes_GET_SIZE(obj)); |
|
| 71 |
+ ret = xmlXPathWrapString(str); |
|
| 72 |
+ #ifdef PyUnicode_Check |
|
| 73 |
+- } else if PyUnicode_Check (obj) {
|
|
| 74 |
++ } else if (PyUnicode_Check (obj)) {
|
|
| 75 |
+ #if PY_VERSION_HEX >= 0x03030000 |
|
| 76 |
+ xmlChar *str; |
|
| 77 |
+ const char *tmp; |
|
| 78 |
+@@ -650,7 +650,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj) |
|
| 79 |
+ ret = xmlXPathWrapString(str); |
|
| 80 |
+ #endif |
|
| 81 |
+ #endif |
|
| 82 |
+- } else if PyList_Check (obj) {
|
|
| 83 |
++ } else if (PyList_Check (obj)) {
|
|
| 84 |
+ int i; |
|
| 85 |
+ PyObject *node; |
|
| 86 |
+ xmlNodePtr cur; |
|
| 87 |
+-- |
|
| 88 |
+GitLab |
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
Summary: Libxml2 |
| 4 | 4 |
Name: libxml2 |
| 5 | 5 |
Version: 2.9.10 |
| 6 |
-Release: 3%{?dist}
|
|
| 6 |
+Release: 4%{?dist}
|
|
| 7 | 7 |
License: MIT |
| 8 | 8 |
URL: http://xmlsoft.org/ |
| 9 | 9 |
Group: System Environment/General Libraries |
| ... | ... |
@@ -13,6 +13,7 @@ Source0: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
|
| 13 | 13 |
%define sha1 libxml2=db6592ec9ca9708c4e71bf6bfd907bbb5cd40644 |
| 14 | 14 |
Patch0: CVE-2020-7595.patch |
| 15 | 15 |
Patch1: CVE-2020-24977.patch |
| 16 |
+Patch2: fix_build_with_python3.9.patch |
|
| 16 | 17 |
BuildRequires: python3-devel |
| 17 | 18 |
BuildRequires: python3-libs |
| 18 | 19 |
BuildRequires: python3-devel |
| ... | ... |
@@ -41,6 +42,7 @@ Static libraries and header files for the support library for libxml |
| 41 | 41 |
%setup -q |
| 42 | 42 |
%patch0 -p1 |
| 43 | 43 |
%patch1 -p1 |
| 44 |
+%patch2 -p1 |
|
| 44 | 45 |
|
| 45 | 46 |
%build |
| 46 | 47 |
%configure \ |
| ... | ... |
@@ -91,6 +93,8 @@ rm -rf %{buildroot}/*
|
| 91 | 91 |
%{_libdir}/cmake/libxml2/libxml2-config.cmake
|
| 92 | 92 |
|
| 93 | 93 |
%changelog |
| 94 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 2.9.10-4 |
|
| 95 |
+- Fix build with python 3.9 |
|
| 94 | 96 |
* Tue Sep 15 2020 Prashant S Chauhan <psinghchauha@vmware.com> 2.9.10-3 |
| 95 | 97 |
- Fix for CVE-2020-24977(Fix Buffer Overflow vulnerability) |
| 96 | 98 |
* Sat Jun 20 2020 Tapas Kundu <tkundu@vmware.com> 2.9.10-2 |
| 12 | 12 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,75 @@ |
| 0 |
+From d0e7b0c71fbb653de90a7163ef46912a96f0bdaf Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From: Arnaldo Carvalho de Melo <acme@redhat.com> |
|
| 2 |
+Date: Fri, 30 Oct 2020 08:24:38 -0300 |
|
| 3 |
+Subject: [PATCH] perf scripting python: Avoid declaring function pointers with |
|
| 4 |
+ a visibility attribute |
|
| 5 |
+ |
|
| 6 |
+To avoid this: |
|
| 7 |
+ |
|
| 8 |
+ util/scripting-engines/trace-event-python.c: In function 'python_start_script': |
|
| 9 |
+ util/scripting-engines/trace-event-python.c:1595:2: error: 'visibility' attribute ignored [-Werror=attributes] |
|
| 10 |
+ 1595 | PyMODINIT_FUNC (*initfunc)(void); |
|
| 11 |
+ | ^~~~~~~~~~~~~~ |
|
| 12 |
+ |
|
| 13 |
+That started breaking when building with PYTHON=python3 and these gcc |
|
| 14 |
+versions (I haven't checked with the clang ones, maybe it breaks there |
|
| 15 |
+as well): |
|
| 16 |
+ |
|
| 17 |
+ # export PERF_TARBALL=http://192.168.86.5/perf/perf-5.9.0.tar.xz |
|
| 18 |
+ # dm fedora:33 fedora:rawhide |
|
| 19 |
+ 1 107.80 fedora:33 : Ok gcc (GCC) 10.2.1 20201005 (Red Hat 10.2.1-5), clang version 11.0.0 (Fedora 11.0.0-1.fc33) |
|
| 20 |
+ 2 92.47 fedora:rawhide : Ok gcc (GCC) 10.2.1 20201016 (Red Hat 10.2.1-6), clang version 11.0.0 (Fedora 11.0.0-1.fc34) |
|
| 21 |
+ # |
|
| 22 |
+ |
|
| 23 |
+Avoid that by ditching that 'initfunc' function pointer with its: |
|
| 24 |
+ |
|
| 25 |
+ #define Py_EXPORTED_SYMBOL _attribute_ ((visibility ("default")))
|
|
| 26 |
+ #define PyMODINIT_FUNC Py_EXPORTED_SYMBOL PyObject* |
|
| 27 |
+ |
|
| 28 |
+And just call PyImport_AppendInittab() at the end of the ifdef python3 |
|
| 29 |
+block with the functions that were being attributed to that initfunc. |
|
| 30 |
+ |
|
| 31 |
+Cc: Adrian Hunter <adrian.hunter@intel.com> |
|
| 32 |
+Cc: Ian Rogers <irogers@google.com> |
|
| 33 |
+Cc: Jiri Olsa <jolsa@kernel.org> |
|
| 34 |
+Cc: Namhyung Kim <namhyung@kernel.org> |
|
| 35 |
+Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> |
|
| 36 |
+--- |
|
| 37 |
+ tools/perf/util/scripting-engines/trace-event-python.c | 7 ++----- |
|
| 38 |
+ 1 file changed, 2 insertions(+), 5 deletions(-) |
|
| 39 |
+ |
|
| 40 |
+diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c |
|
| 41 |
+index 7cbd024e3e634..c83c2c6564e01 100644 |
|
| 42 |
+--- a/tools/perf/util/scripting-engines/trace-event-python.c |
|
| 43 |
+@@ -1592,7 +1592,6 @@ static void _free_command_line(wchar_t **command_line, int num) |
|
| 44 |
+ static int python_start_script(const char *script, int argc, const char **argv) |
|
| 45 |
+ {
|
|
| 46 |
+ struct tables *tables = &tables_global; |
|
| 47 |
+- PyMODINIT_FUNC (*initfunc)(void); |
|
| 48 |
+ #if PY_MAJOR_VERSION < 3 |
|
| 49 |
+ const char **command_line; |
|
| 50 |
+ #else |
|
| 51 |
+@@ -1607,20 +1606,18 @@ static int python_start_script(const char *script, int argc, const char **argv) |
|
| 52 |
+ FILE *fp; |
|
| 53 |
+ |
|
| 54 |
+ #if PY_MAJOR_VERSION < 3 |
|
| 55 |
+- initfunc = initperf_trace_context; |
|
| 56 |
+ command_line = malloc((argc + 1) * sizeof(const char *)); |
|
| 57 |
+ command_line[0] = script; |
|
| 58 |
+ for (i = 1; i < argc + 1; i++) |
|
| 59 |
+ command_line[i] = argv[i - 1]; |
|
| 60 |
++ PyImport_AppendInittab(name, initperf_trace_context); |
|
| 61 |
+ #else |
|
| 62 |
+- initfunc = PyInit_perf_trace_context; |
|
| 63 |
+ command_line = malloc((argc + 1) * sizeof(wchar_t *)); |
|
| 64 |
+ command_line[0] = Py_DecodeLocale(script, NULL); |
|
| 65 |
+ for (i = 1; i < argc + 1; i++) |
|
| 66 |
+ command_line[i] = Py_DecodeLocale(argv[i - 1], NULL); |
|
| 67 |
++ PyImport_AppendInittab(name, PyInit_perf_trace_context); |
|
| 68 |
+ #endif |
|
| 69 |
+- |
|
| 70 |
+- PyImport_AppendInittab(name, initfunc); |
|
| 71 |
+ Py_Initialize(); |
|
| 72 |
+ |
|
| 73 |
+ #if PY_MAJOR_VERSION < 3 |
| ... | ... |
@@ -13,7 +13,7 @@ |
| 13 | 13 |
Summary: Kernel |
| 14 | 14 |
Name: linux |
| 15 | 15 |
Version: 5.9.0 |
| 16 |
-Release: 5%{?kat_build:.kat}%{?dist}
|
|
| 16 |
+Release: 6%{?kat_build:.kat}%{?dist}
|
|
| 17 | 17 |
License: GPLv2 |
| 18 | 18 |
URL: http://www.kernel.org/ |
| 19 | 19 |
Group: System Environment/Kernel |
| ... | ... |
@@ -53,6 +53,8 @@ Patch4: 9p-trans_fd-extend-port-variable-to-u32.patch |
| 53 | 53 |
Patch5: vsock-delay-detach-of-QP-with-outgoing-data-59.patch |
| 54 | 54 |
# RDRAND-based RNG driver to enhance the kernel's entropy pool: |
| 55 | 55 |
Patch6: hwrng-rdrand-Add-RNG-driver-based-on-x86-rdrand-inst.patch |
| 56 |
+# Fix perf python script with python 3.9 |
|
| 57 |
+Patch7: fix-perf-script-with-python3.9.patch |
|
| 56 | 58 |
|
| 57 | 59 |
# ttyXRUSB support |
| 58 | 60 |
Patch10: usb-acm-exclude-exar-usb-serial-ports-nxt.patch |
| ... | ... |
@@ -288,6 +290,7 @@ Python programming language to use the interface to manipulate perf events. |
| 288 | 288 |
%patch4 -p1 |
| 289 | 289 |
%patch5 -p1 |
| 290 | 290 |
%patch6 -p1 |
| 291 |
+%patch7 -p1 |
|
| 291 | 292 |
|
| 292 | 293 |
%patch10 -p1 |
| 293 | 294 |
%patch11 -p1 |
| ... | ... |
@@ -684,6 +687,8 @@ getent group sgx_prv >/dev/null || groupadd -r sgx_prv |
| 684 | 684 |
%{python3_sitelib}/*
|
| 685 | 685 |
|
| 686 | 686 |
%changelog |
| 687 |
+* Wed Nov 11 2020 Tapas Kundu <tkundu@vmware.com> 5.9.0-6 |
|
| 688 |
+- Fix perf python script for compatibility with python 3.9 |
|
| 687 | 689 |
* Tue Nov 10 2020 Keerthana K <keerthanak@vmware.com> 5.9.0-5 |
| 688 | 690 |
- Fix CVE-2020-8694 |
| 689 | 691 |
* Fri Nov 06 2020 Keerthana K <keerthanak@vmware.com> 5.9.0-4 |
| 690 | 692 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,19 @@ |
| 0 |
+--- a/configure 2020-10-13 11:52:36.322606543 +0530 |
|
| 1 |
+@@ -5,6 +5,7 @@ |
|
| 2 |
+ # as is the fact that the ] goes on a new line. |
|
| 3 |
+ _=[ 'exec' '/bin/sh' '-c' ''' |
|
| 4 |
+ test ${FORCE_PYTHON2} && exec python2 "$0" "$@" # workaround for gclient
|
|
| 5 |
++command -v python3.9 >/dev/null && exec python3.9 "$0" "$@" |
|
| 6 |
+ command -v python3.8 >/dev/null && exec python3.8 "$0" "$@" |
|
| 7 |
+ command -v python3.7 >/dev/null && exec python3.7 "$0" "$@" |
|
| 8 |
+ command -v python3.6 >/dev/null && exec python3.6 "$0" "$@" |
|
| 9 |
+@@ -19,7 +20,7 @@ import sys |
|
| 10 |
+ from distutils.spawn import find_executable |
|
| 11 |
+ |
|
| 12 |
+ print('Node.js configure: Found Python {0}.{1}.{2}...'.format(*sys.version_info))
|
|
| 13 |
+-acceptable_pythons = ((3, 8), (3, 7), (3, 6), (3, 5), (2, 7)) |
|
| 14 |
++acceptable_pythons = ((3, 9), (3, 8), (3, 7), (3, 6), (3, 5), (2, 7)) |
|
| 15 |
+ if sys.version_info[:2] in acceptable_pythons: |
|
| 16 |
+ import configure |
|
| 17 |
+ else: |
| ... | ... |
@@ -1,15 +1,15 @@ |
| 1 | 1 |
Summary: A JavaScript runtime built on Chrome's V8 JavaScript engine. |
| 2 | 2 |
Name: nodejs |
| 3 |
-Version: 14.5.0 |
|
| 3 |
+Version: 14.13.1 |
|
| 4 | 4 |
Release: 1%{?dist}
|
| 5 | 5 |
License: MIT |
| 6 | 6 |
Group: Applications/System |
| 7 | 7 |
Vendor: VMware, Inc. |
| 8 | 8 |
Distribution: Photon |
| 9 | 9 |
URL: https://github.com/nodejs/node |
| 10 |
-Source0: https://nodejs.org/download/release/v%{version}/node-v%{version}.tar.xz
|
|
| 11 |
-%define sha1 node=7a0a77084f5e0475d386be3f8f494d7bce429014 |
|
| 12 |
- |
|
| 10 |
+Source0: https://nodejs.org/download/release/v%{version}/node-v%{version}.tar.gz
|
|
| 11 |
+%define sha1 node=5d3a61a5136e341844ef44b648bab36bde7a6c24 |
|
| 12 |
+Patch0: fix_build_with_python3.9.patch |
|
| 13 | 13 |
BuildRequires: coreutils >= 8.22, zlib |
| 14 | 14 |
BuildRequires: python3 |
| 15 | 15 |
BuildRequires: which |
| ... | ... |
@@ -30,6 +30,7 @@ for developing applications that use nodejs. |
| 30 | 30 |
|
| 31 | 31 |
%prep |
| 32 | 32 |
%setup -q -n node-v%{version}
|
| 33 |
+%patch0 -p1 |
|
| 33 | 34 |
|
| 34 | 35 |
%build |
| 35 | 36 |
sh configure --prefix=%{_prefix}
|
| ... | ... |
@@ -69,6 +70,8 @@ make cctest |
| 69 | 69 |
%{_datadir}/systemtap/tapset/node.stp
|
| 70 | 70 |
|
| 71 | 71 |
%changelog |
| 72 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 14.13.1-1 |
|
| 73 |
+- Update to 14.13.1 to build with python3.9 |
|
| 72 | 74 |
* Mon Jul 06 2020 Tapas Kundu <tkundu@vmware.com> 14.5.0-1 |
| 73 | 75 |
- Update nodejs |
| 74 | 76 |
* Tue Jun 23 2020 Tapas Kundu <tkundu@vmware.com> 10.15.2-2 |
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
Summary: A shared library implementation of IPMI and the basic tools |
| 4 | 4 |
Name: openipmi |
| 5 | 5 |
Version: 2.0.29 |
| 6 |
-Release: 3%{?dist}
|
|
| 6 |
+Release: 4%{?dist}
|
|
| 7 | 7 |
URL: https://sourceforge.net/projects/openipmi/ |
| 8 | 8 |
License: LGPLv2+ and GPLv2+ or BSD |
| 9 | 9 |
Group: System Environment/Base |
| ... | ... |
@@ -84,7 +84,7 @@ This package contains a network IPMI listener. |
| 84 | 84 |
--docdir=%{_docdir}/%{name}-%{version} \
|
| 85 | 85 |
--with-perl=yes \ |
| 86 | 86 |
--with-perlinstall=%{perl_vendorarch} \
|
| 87 |
- --with-python=/usr/bin/python3.8 \ |
|
| 87 |
+ --with-python=/usr/bin/python3.9 \ |
|
| 88 | 88 |
--with-pythoninstall=%{python3_sitelib}
|
| 89 | 89 |
make |
| 90 | 90 |
|
| ... | ... |
@@ -183,6 +183,8 @@ echo "disable ipmi.service" > %{buildroot}%{_libdir}/systemd/system-preset/50-ip
|
| 183 | 183 |
%{_mandir}/man5/ipmi_sim_cmd.5.gz
|
| 184 | 184 |
|
| 185 | 185 |
%changelog |
| 186 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 2.0.29-4 |
|
| 187 |
+- Use python 3.9 |
|
| 186 | 188 |
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 2.0.29-3 |
| 187 | 189 |
- openssl 1.1.1 |
| 188 | 190 |
* Mon Jul 27 2020 Tapas Kundu <tkundu@vmware.com> 2.0.29-2 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Open Source Security Compliance Solution |
| 2 | 2 |
Name: openscap |
| 3 | 3 |
Version: 1.3.4 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: GPL2+ |
| 6 | 6 |
URL: https://www.open-scap.org |
| 7 | 7 |
Source0: https://github.com/OpenSCAP/openscap/releases/download/%{version}/openscap-%{version}.tar.gz
|
| ... | ... |
@@ -99,9 +99,11 @@ find %{buildroot} -name '*.la' -delete
|
| 99 | 99 |
|
| 100 | 100 |
%files python3 |
| 101 | 101 |
%defattr(-,root,root) |
| 102 |
-%{_libdir}/python3.8/*
|
|
| 102 |
+%{_libdir}/python3.9/*
|
|
| 103 | 103 |
|
| 104 | 104 |
%changelog |
| 105 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 1.3.4-2 |
|
| 106 |
+- Build with python3 |
|
| 105 | 107 |
* Thu Oct 01 2020 Gerrit Photon <photon-checkins@vmware.com> 1.3.4-1 |
| 106 | 108 |
- Automatic Version Bump |
| 107 | 109 |
* Mon Jul 27 2020 Vikash Bansal <bvikas@vmware.com> 1.3.3-1 |
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
Summary: Lightweight in-process concurrent programming |
| 4 | 4 |
Name: python3-greenlet |
| 5 | 5 |
Version: 0.4.17 |
| 6 |
-Release: 1%{?dist}
|
|
| 6 |
+Release: 2%{?dist}
|
|
| 7 | 7 |
License: MIT |
| 8 | 8 |
Group: Development/Languages/Python |
| 9 | 9 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -42,9 +42,11 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
| 42 | 42 |
%files |
| 43 | 43 |
%defattr(-,root,root,-) |
| 44 | 44 |
%{python3_sitelib}/*
|
| 45 |
-/usr/include/python3.8/greenlet/greenlet.h |
|
| 45 |
+/usr/include/python3.9/greenlet/greenlet.h |
|
| 46 | 46 |
|
| 47 | 47 |
%changelog |
| 48 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 0.4.17-2 |
|
| 49 |
+- Use python3.9 |
|
| 48 | 50 |
* Tue Sep 22 2020 Gerrit Photon <photon-checkins@vmware.com> 0.4.17-1 |
| 49 | 51 |
- Automatic Version Bump |
| 50 | 52 |
* Sun Jul 26 2020 Tapas Kundu <tkundu@vmware.com> 0.4.16-2 |
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
Summary: Array processing for numbers, strings, records, and objects |
| 4 | 4 |
Name: python3-numpy |
| 5 | 5 |
Version: 1.19.2 |
| 6 |
-Release: 2%{?dist}
|
|
| 6 |
+Release: 3%{?dist}
|
|
| 7 | 7 |
License: BSD |
| 8 | 8 |
Group: Development/Languages/Python |
| 9 | 9 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -53,10 +53,12 @@ rm -rf test |
| 53 | 53 |
%defattr(-,root,root,-) |
| 54 | 54 |
%{_bindir}/f2py3
|
| 55 | 55 |
%{_bindir}/f2py
|
| 56 |
-%{_bindir}/f2py3.8
|
|
| 56 |
+%{_bindir}/f2py3.9
|
|
| 57 | 57 |
%{python3_sitelib}/*
|
| 58 | 58 |
|
| 59 | 59 |
%changelog |
| 60 |
+* Tue Oct 13 2020 Tapas Kundu <tkundu@vmware.com> 1.19.2-3 |
|
| 61 |
+- Build with python 3.9 |
|
| 60 | 62 |
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.19.2-2 |
| 61 | 63 |
- openssl 1.1.1 |
| 62 | 64 |
* Thu Sep 10 2020 Gerrit Photon <photon-checkins@vmware.com> 1.19.2-1 |
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
Summary: A high-level scripting language |
| 2 | 2 |
Name: python3 |
| 3 |
-Version: 3.8.6 |
|
| 3 |
+Version: 3.9.0 |
|
| 4 | 4 |
Release: 1%{?dist}
|
| 5 | 5 |
License: PSF |
| 6 | 6 |
URL: http://www.python.org/ |
| ... | ... |
@@ -8,7 +8,7 @@ Group: System Environment/Programming |
| 8 | 8 |
Vendor: VMware, Inc. |
| 9 | 9 |
Distribution: Photon |
| 10 | 10 |
Source0: https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
|
| 11 |
-%define sha1 Python=6ee446eaacf901a3305565bd6569e2de135168e3 |
|
| 11 |
+%define sha1 Python=ff1fc8c37d5d4b09ec3bf0d84f3e5b97745c6704 |
|
| 12 | 12 |
Source1: macros.python |
| 13 | 13 |
Patch0: cgi3.patch |
| 14 | 14 |
BuildRequires: pkg-config >= 0.28 |
| ... | ... |
@@ -214,57 +214,56 @@ rm -rf %{buildroot}/*
|
| 214 | 214 |
%doc LICENSE README.rst |
| 215 | 215 |
%{_bindir}/pydoc*
|
| 216 | 216 |
%{_bindir}/python3
|
| 217 |
-%{_bindir}/python3.8
|
|
| 217 |
+%{_bindir}/python3.9
|
|
| 218 | 218 |
%{_mandir}/*/*
|
| 219 | 219 |
|
| 220 |
-%dir %{_libdir}/python3.8
|
|
| 221 |
-%{_libdir}/python3.8/site-packages/README.txt
|
|
| 220 |
+%dir %{_libdir}/python3.9
|
|
| 221 |
+%{_libdir}/python3.9/site-packages/README.txt
|
|
| 222 | 222 |
|
| 223 | 223 |
%{_libdir}/libpython3.so
|
| 224 |
-%{_libdir}/libpython3.8.so.1.0
|
|
| 224 |
+%{_libdir}/libpython3.9.so.1.0
|
|
| 225 | 225 |
|
| 226 |
-%exclude %{_libdir}/python3.8/ctypes/test
|
|
| 227 |
-%exclude %{_libdir}/python3.8/distutils/tests
|
|
| 228 |
-%exclude %{_libdir}/python3.8/sqlite3/test
|
|
| 229 |
-%exclude %{_libdir}/python3.8/idlelib/idle_test
|
|
| 230 |
-%exclude %{_libdir}/python3.8/test
|
|
| 231 |
-%exclude %{_libdir}/python3.8/lib-dynload/_ctypes_test.*.so
|
|
| 226 |
+%exclude %{_libdir}/python3.9/ctypes/test
|
|
| 227 |
+%exclude %{_libdir}/python3.9/distutils/tests
|
|
| 228 |
+%exclude %{_libdir}/python3.9/sqlite3/test
|
|
| 229 |
+%exclude %{_libdir}/python3.9/idlelib/idle_test
|
|
| 230 |
+%exclude %{_libdir}/python3.9/test
|
|
| 231 |
+%exclude %{_libdir}/python3.9/lib-dynload/_ctypes_test.*.so
|
|
| 232 | 232 |
|
| 233 | 233 |
%files libs |
| 234 | 234 |
%defattr(-,root,root) |
| 235 | 235 |
%doc LICENSE README.rst |
| 236 |
-%{_libdir}/python3.8
|
|
| 237 |
-%exclude %{_libdir}/python3.8/lib2to3
|
|
| 238 |
-%exclude %{_libdir}/python3.8/site-packages/
|
|
| 239 |
-%exclude %{_libdir}/python3.8/ctypes/test
|
|
| 240 |
-%exclude %{_libdir}/python3.8/distutils/tests
|
|
| 241 |
-%exclude %{_libdir}/python3.8/sqlite3/test
|
|
| 242 |
-%exclude %{_libdir}/python3.8/idlelib/idle_test
|
|
| 243 |
-%exclude %{_libdir}/python3.8/test
|
|
| 244 |
-%exclude %{_libdir}/python3.8/lib-dynload/_ctypes_test.*.so
|
|
| 245 |
-%exclude %{_libdir}/python3.8/xml
|
|
| 246 |
-%exclude %{_libdir}/python3.8/lib-dynload/pyexpat*.so
|
|
| 247 |
-%exclude %{_libdir}/python3.8/curses
|
|
| 248 |
-%exclude %{_libdir}/python3.8/lib-dynload/_curses*.so
|
|
| 249 |
-%exclude %{_libdir}/python3.8/distutils/command/wininst-*.exe
|
|
| 236 |
+%{_libdir}/python3.9
|
|
| 237 |
+%exclude %{_libdir}/python3.9/lib2to3
|
|
| 238 |
+%exclude %{_libdir}/python3.9/site-packages/
|
|
| 239 |
+%exclude %{_libdir}/python3.9/ctypes/test
|
|
| 240 |
+%exclude %{_libdir}/python3.9/distutils/tests
|
|
| 241 |
+%exclude %{_libdir}/python3.9/sqlite3/test
|
|
| 242 |
+%exclude %{_libdir}/python3.9/idlelib/idle_test
|
|
| 243 |
+%exclude %{_libdir}/python3.9/test
|
|
| 244 |
+%exclude %{_libdir}/python3.9/lib-dynload/_ctypes_test.*.so
|
|
| 245 |
+%exclude %{_libdir}/python3.9/xml
|
|
| 246 |
+%exclude %{_libdir}/python3.9/lib-dynload/pyexpat*.so
|
|
| 247 |
+%exclude %{_libdir}/python3.9/curses
|
|
| 248 |
+%exclude %{_libdir}/python3.9/lib-dynload/_curses*.so
|
|
| 250 | 249 |
|
| 251 | 250 |
%files xml |
| 252 |
-%{_libdir}/python3.8/xml/*
|
|
| 253 |
-%{_libdir}/python3.8/lib-dynload/pyexpat*.so
|
|
| 251 |
+%{_libdir}/python3.9/xml/*
|
|
| 252 |
+%{_libdir}/python3.9/lib-dynload/pyexpat*.so
|
|
| 254 | 253 |
|
| 255 | 254 |
%files curses |
| 256 |
-%{_libdir}/python3.8/curses/*
|
|
| 257 |
-%{_libdir}/python3.8/lib-dynload/_curses*.so
|
|
| 255 |
+%{_libdir}/python3.9/curses/*
|
|
| 256 |
+%{_libdir}/python3.9/lib-dynload/_curses*.so
|
|
| 258 | 257 |
|
| 259 | 258 |
%files devel |
| 260 | 259 |
%defattr(-,root,root) |
| 261 | 260 |
%{_includedir}/*
|
| 262 |
-%{_libdir}/libpython3.8.so
|
|
| 263 |
-%{_libdir}/pkgconfig/python-3.8.pc
|
|
| 261 |
+%{_libdir}/libpython3.9.so
|
|
| 262 |
+%{_libdir}/pkgconfig/python-3.9.pc
|
|
| 264 | 263 |
%{_libdir}/pkgconfig/python3.pc
|
| 265 | 264 |
%{_bindir}/python3-config
|
| 266 |
-%{_bindir}/python3.8-config
|
|
| 267 |
-%{_libdir}/pkgconfig/python-3.8-embed.pc
|
|
| 265 |
+%{_bindir}/python3.9-config
|
|
| 266 |
+%{_libdir}/pkgconfig/python-3.9-embed.pc
|
|
| 268 | 267 |
%{_libdir}/pkgconfig/python3-embed.pc
|
| 269 | 268 |
|
| 270 | 269 |
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit |
| ... | ... |
@@ -274,30 +273,31 @@ rm -rf %{buildroot}/*
|
| 274 | 274 |
%files tools |
| 275 | 275 |
%defattr(-,root,root,755) |
| 276 | 276 |
%doc Tools/README |
| 277 |
-%{_libdir}/python3.8/lib2to3
|
|
| 278 |
-%{_bindir}/2to3-3.8
|
|
| 277 |
+%{_libdir}/python3.9/lib2to3
|
|
| 278 |
+%{_bindir}/2to3-3.9
|
|
| 279 | 279 |
%exclude %{_bindir}/idle*
|
| 280 | 280 |
|
| 281 | 281 |
%files pip |
| 282 | 282 |
%defattr(-,root,root,755) |
| 283 |
-%{_libdir}/python3.8/site-packages/pip/*
|
|
| 284 |
-%{_libdir}/python3.8/site-packages/pip-20.2.1.dist-info/*
|
|
| 283 |
+%{_libdir}/python3.9/site-packages/pip/*
|
|
| 285 | 284 |
%{_bindir}/pip*
|
| 286 | 285 |
|
| 287 | 286 |
%files setuptools |
| 288 | 287 |
%defattr(-,root,root,755) |
| 289 |
-%{_libdir}/python3.8/site-packages/pkg_resources/*
|
|
| 290 |
-%{_libdir}/python3.8/site-packages/setuptools/*
|
|
| 291 |
-%{_libdir}/python3.8/site-packages/setuptools-49.2.1.dist-info/*
|
|
| 292 |
-%{_bindir}/easy_install-3.8
|
|
| 288 |
+%{_libdir}/python3.9/site-packages/pkg_resources/*
|
|
| 289 |
+%{_libdir}/python3.9/site-packages/setuptools/*
|
|
| 290 |
+%{_libdir}/python3.9/site-packages/setuptools-49.2.1.dist-info/*
|
|
| 291 |
+%{_bindir}/easy_install-3.9
|
|
| 293 | 292 |
|
| 294 | 293 |
%files test |
| 295 |
-%{_libdir}/python3.8/test/*
|
|
| 294 |
+%{_libdir}/python3.9/test/*
|
|
| 296 | 295 |
|
| 297 | 296 |
%files macros |
| 298 | 297 |
%{_libdir}/rpm/macros.d/macros.python
|
| 299 | 298 |
|
| 300 | 299 |
%changelog |
| 300 |
+* Tue Oct 13 2020 Taoas Kundu <tkundu@vmware.com> 3.9.0-1 |
|
| 301 |
+- Update to 3.9.0 |
|
| 301 | 302 |
* Wed Sep 30 2020 Gerrit Photon <photon-checkins@vmware.com> 3.8.6-1 |
| 302 | 303 |
- Automatic Version Bump |
| 303 | 304 |
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 3.8.5-4 |
| 304 | 305 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,11 @@ |
| 0 |
+--- a/setup.py 2020-11-06 18:00:20.559994152 +0530 |
|
| 1 |
+@@ -106,7 +106,7 @@ ext_py_mods = [Extension('setools.policy
|
|
| 2 |
+ libraries=['selinux', 'sepol'], |
|
| 3 |
+ library_dirs=lib_dirs, |
|
| 4 |
+ define_macros=macros, |
|
| 5 |
+- extra_compile_args=['-Werror', '-Wextra', |
|
| 6 |
++ extra_compile_args=['-Wextra', |
|
| 7 |
+ '-Waggregate-return', |
|
| 8 |
+ '-Wfloat-equal', |
|
| 9 |
+ '-Wformat', '-Wformat=2', |
| ... | ... |
@@ -3,11 +3,12 @@ |
| 3 | 3 |
Summary: Policy analysis tools for SELinux |
| 4 | 4 |
Name: setools |
| 5 | 5 |
Version: 4.3.0 |
| 6 |
-Release: 1%{?dist}
|
|
| 6 |
+Release: 2%{?dist}
|
|
| 7 | 7 |
License: GPLv2, LGPLv2.1 |
| 8 | 8 |
Group: System Environment/Libraries |
| 9 | 9 |
Source0: https://github.com/SELinuxProject/setools/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
| 10 | 10 |
%define sha1 setools=75ffc1724707b8bc4eb90b118cd29161c43fe568 |
| 11 |
+Patch0: fix-build-with-python3.9.patch |
|
| 11 | 12 |
Url: https://github.com/SELinuxProject/selinux/wiki |
| 12 | 13 |
Vendor: VMware, Inc. |
| 13 | 14 |
Distribution: Photon |
| ... | ... |
@@ -27,6 +28,7 @@ Policy analysis tools for SELinux |
| 27 | 27 |
|
| 28 | 28 |
%prep |
| 29 | 29 |
%setup -qn %{name}
|
| 30 |
+%patch0 -p1 |
|
| 30 | 31 |
sed -i "s/, 'networkx>=2.0'//" setup.py |
| 31 | 32 |
|
| 32 | 33 |
%build |
| ... | ... |
@@ -34,7 +36,7 @@ python3 setup.py build_ext |
| 34 | 34 |
python3 setup.py build |
| 35 | 35 |
|
| 36 | 36 |
%install |
| 37 |
-python3 setup.py install --root %{buildroot}
|
|
| 37 |
+python3 setup.py install --root %{buildroot} --skip-build
|
|
| 38 | 38 |
# do not package ru man pages |
| 39 | 39 |
rm -rf %{buildroot}%{_mandir}/ru
|
| 40 | 40 |
|
| ... | ... |
@@ -50,5 +52,7 @@ rm -rf %{buildroot}%{_mandir}/ru
|
| 50 | 50 |
%{_mandir}/man1/*
|
| 51 | 51 |
|
| 52 | 52 |
%changelog |
| 53 |
+* Fri Nov 06 2020 Tapas Kundu <tkundu@vmware.com> 4.3.0-2 |
|
| 54 |
+- Build with python 3.9 |
|
| 53 | 55 |
* Fri May 01 2020 Alexey Makhalov <amakhalov@vmware.com> 4.3.0-1 |
| 54 | 56 |
- Initial build. |