New upstream version 1.41.4.
This commit is contained in:
parent
128db1e9aa
commit
48bb17705f
@ -1,54 +0,0 @@
|
|||||||
From c4638739d684609471cfa94c08e7b90c70ea3e83 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
||||||
Date: Fri, 31 May 2019 13:07:25 +0100
|
|
||||||
Subject: [PATCH] python: PYTHON_LIBS is not set in Python 3.8 (RHBZ#1705482).
|
|
||||||
|
|
||||||
Python 3.8 no longer links C extensions to -lpython, instead relying
|
|
||||||
on the fact that the python binary itself already contains those
|
|
||||||
symbols. This means $PYTHON_LIBS is empty and so the Python bindings
|
|
||||||
are not built.
|
|
||||||
|
|
||||||
Use a different test to see if the python module is available.
|
|
||||||
---
|
|
||||||
m4/guestfs-python.m4 | 6 +++++-
|
|
||||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/m4/guestfs-python.m4 b/m4/guestfs-python.m4
|
|
||||||
index 7d4c991bb..befa9b102 100644
|
|
||||||
--- a/m4/guestfs-python.m4
|
|
||||||
+++ b/m4/guestfs-python.m4
|
|
||||||
@@ -33,14 +33,17 @@ AS_IF([test "x$enable_python" != "xno"],[
|
|
||||||
PYTHON_VERSION_MINOR=`$PYTHON -c "import sys; print (sys.version_info@<:@1@:>@)"`
|
|
||||||
PYTHON_VERSION="$PYTHON_VERSION_MAJOR.$PYTHON_VERSION_MINOR"
|
|
||||||
AC_MSG_RESULT([$PYTHON_VERSION])
|
|
||||||
+
|
|
||||||
# Debian: python-2.7.pc, python-3.2.pc
|
|
||||||
PKG_CHECK_MODULES([PYTHON], [python-"$PYTHON_VERSION"],[
|
|
||||||
+ have_python_module=1
|
|
||||||
AC_SUBST([PYTHON_CFLAGS])
|
|
||||||
AC_SUBST([PYTHON_LIBS])
|
|
||||||
AC_SUBST([PYTHON_VERSION])
|
|
||||||
AC_DEFINE([HAVE_PYTHON],[1],[Python library found at compile time])
|
|
||||||
],[
|
|
||||||
PKG_CHECK_MODULES([PYTHON], [python],[
|
|
||||||
+ have_python_module=1
|
|
||||||
AC_SUBST([PYTHON_CFLAGS])
|
|
||||||
AC_SUBST([PYTHON_LIBS])
|
|
||||||
AC_SUBST([PYTHON_VERSION])
|
|
||||||
@@ -49,6 +52,7 @@ AS_IF([test "x$enable_python" != "xno"],[
|
|
||||||
AC_MSG_WARN([python $PYTHON_VERSION not found])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
+
|
|
||||||
AC_MSG_CHECKING([Python prefix])
|
|
||||||
PYTHON_PREFIX=`$PYTHON -c "import sys; print (sys.prefix)"`
|
|
||||||
AC_MSG_RESULT([$PYTHON_PREFIX])
|
|
||||||
@@ -101,4 +105,4 @@ AS_IF([test "x$enable_python" != "xno"],[
|
|
||||||
AC_SUBST(PYTHON_EXT_SUFFIX)
|
|
||||||
])
|
|
||||||
AM_CONDITIONAL([HAVE_PYTHON],
|
|
||||||
- [test "x$PYTHON" != "xno" && test "x$PYTHON_LIBS" != "x" ])
|
|
||||||
+ [test "x$PYTHON" != "xno" && test "x$have_python_module" = "x1" ])
|
|
||||||
--
|
|
||||||
2.21.0
|
|
||||||
|
|
@ -41,8 +41,8 @@
|
|||||||
Summary: Access and modify virtual machine disk images
|
Summary: Access and modify virtual machine disk images
|
||||||
Name: libguestfs
|
Name: libguestfs
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.40.2
|
Version: 1.41.4
|
||||||
Release: 10%{?dist}
|
Release: 1%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
|
|
||||||
# No kernel https://fedoraproject.org/wiki/Changes/Stop_Building_i686_Kernels
|
# No kernel https://fedoraproject.org/wiki/Changes/Stop_Building_i686_Kernels
|
||||||
@ -69,9 +69,6 @@ Source6: yum.conf.in
|
|||||||
Source7: libguestfs.keyring
|
Source7: libguestfs.keyring
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=1705482
|
|
||||||
Patch0001: 0001-python-PYTHON_LIBS-is-not-set-in-Python-3.8-RHBZ-170.patch
|
|
||||||
|
|
||||||
%if 0%{patches_touch_autotools}
|
%if 0%{patches_touch_autotools}
|
||||||
BuildRequires: autoconf, automake, libtool, gettext-devel
|
BuildRequires: autoconf, automake, libtool, gettext-devel
|
||||||
%endif
|
%endif
|
||||||
@ -1315,6 +1312,9 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 02 2019 Richard W.M. Jones <rjones@redhat.com> - 1:1.41.4-1
|
||||||
|
- New upstream version 1.41.4.
|
||||||
|
|
||||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.40.2-10
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.40.2-10
|
||||||
- Rebuilt for Python 3.8
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
3
sources
3
sources
@ -1,2 +1 @@
|
|||||||
SHA512 (libguestfs-1.40.2.tar.gz) = d288f15d5a70b4b87a4271ea2eb7dc0ec4f48fdb136b8f62003352a069f75573de873e1063763889f410fb1b99951252e9a48dd73bf0233047f21aae43ac6de2
|
SHA512 (libguestfs-1.41.4.tar.gz) = 14486037ddb171113520f97fce152af3b1af9b3a85f2a864d7a74db60239ee8da058020abfebd2353a94e21a4c7b9eb8f1d3518f0714280c3f558a88bcd44342
|
||||||
SHA512 (libguestfs-1.40.2.tar.gz.sig) = 7e7db806c7051010367a82c89fb4ac6af2824c28f54cc7df561010ad6a87562fb3c2d4e3bfc14f7cc7308344b1dfb8532f88969ac59cfd17745717dc305c81b9
|
|
||||||
|
Loading…
Reference in New Issue
Block a user