#2 Add Python 3.8 compatibility
Closed 4 years ago by churchyard. Opened 4 years ago by cstratak.
Unknown source master  into  master

file modified
+9 -1
@@ -4,7 +4,7 @@

  Summary: Statistics collection daemon for filling RRD files

  Name: collectd

  Version: 5.8.1

- Release: 5%{?dist}

+ Release: 6%{?dist}

  License: GPLv2

  URL: https://collectd.org/

  
@@ -25,6 +25,9 @@

  # Picked from upstream 5.8-series maintainance branch.

  Patch2: https://github.com/%{name}/%{name}/commit/d5a3c020d33cc33ee8049f54c7b4dffcd123bf83.patch#/%{name}-5.8.1-sensors_Removed-checks-for-upper-limit-of-SENSORS_API_VERSION.patch

  Patch3: https://github.com/%{name}/%{name}/commit/90e7e99e0da5efb00991ef3c6efa0fdc2cb56701.patch#/%{name}-5.8.1-strjoin-Fix-behavior-if-output-buffer-is-NULL.patch

+ # Add Python 3.8 compatibility

+ # Sent upstream: https://github.com/collectd/collectd/pull/3170

+ Patch4: python38-compat.patch

  

  BuildRequires: perl-devel

  BuildRequires: perl-generators
@@ -614,6 +617,8 @@

  %prep

  %autosetup -v -p1

  

+ autoreconf -fi

+ 

  # recompile generated files

  touch src/pinba.proto

  
@@ -1172,6 +1177,9 @@

  

  

  %changelog

+ * Fri Jun 07 2019 Charalampos Stratakis <cstratak@redhat.com> - 5.8.1-6

+ - Add Python 3.8 compatibility

+ 

  * Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 5.8.1-5

  - Perl 5.30 rebuild

  

@@ -0,0 +1,13 @@

+ diff --git a/configure.ac b/configure.ac

+ index f39096e..c8c76cc 100644

+ --- a/configure.ac

+ +++ b/configure.ac

+ @@ -4645,7 +4645,7 @@ if test "$PYTHON_CONFIG" != ""; then

+    if test $? -ne 0; then

+      with_libpython="no"

+    fi

+ -  LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs`"

+ +  LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs --embed`" || LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs`"

+    if test $? -ne 0; then

+      with_libpython="no"

+    fi