Hello community,

here is the log from the commit of package lxc for openSUSE:Factory checked in 
at 2019-02-08 12:15:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lxc (Old)
 and      /work/SRC/openSUSE:Factory/.lxc.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lxc"

Fri Feb  8 12:15:33 2019 rev:82 rq:672560 version:2.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/lxc/lxc.changes  2018-09-26 14:24:35.273810535 
+0200
+++ /work/SRC/openSUSE:Factory/.lxc.new.28833/lxc.changes       2019-02-08 
12:15:38.869418841 +0100
@@ -1,0 +2,7 @@
+Mon Feb  4 20:16:17 UTC 2019 - Bjoern Voigt <bjoe...@arcor.de>
+
+- compilation fixed for Python 3.7
+  (PyOS_AfterFork() replaced with PyOS_AfterFork_Child())
+  added patch 0001-PyOS_AfterFork-python3.7.patch
+
+-------------------------------------------------------------------

New:
----
  0001-PyOS_AfterFork-python3.7.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lxc.spec ++++++
--- /var/tmp/diff_new_pack.vKZrM3/_old  2019-02-08 12:15:39.813418487 +0100
+++ /var/tmp/diff_new_pack.vKZrM3/_new  2019-02-08 12:15:39.817418486 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lxc
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -22,7 +22,7 @@
 Release:        0
 Url:            http://linuxcontainers.org/
 Summary:        Userspace tools for Linux kernel containers
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          System/Management
 Source:         http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
 Source1:        
http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz.asc#/%{name}-%{version}.tar.gz.asc
@@ -35,6 +35,7 @@
 Patch1:         0001-utils-add-LXC_PROC_PID_FD_LEN.patch
 Patch2:         0001-lxc-user-nic-verify-file-descriptor-stable-2.0.patch
 Patch3:         0001-Backport-autodev-fix-from-lxc-master.patch
+Patch4:         0001-PyOS_AfterFork-python3.7.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 BuildRequires:  docbook-utils
@@ -53,15 +54,16 @@
 BuildRequires:  python3-devel
 
 %if 0%{?suse_version} >= 1320
-BuildRequires:  automake libtool
+BuildRequires:  automake
+BuildRequires:  libtool
 %endif
 
 %if 0%{?suse_version} >= 1210
 BuildRequires:  systemd
 %endif
 
-Requires:       libcap-progs
 Requires:       apparmor-abstractions
+Requires:       libcap-progs
 Requires:       lxcfs
 Requires:       rsync
 
@@ -87,7 +89,7 @@
 %package -n liblxc%{shlib_version}
 PreReq:         permissions
 Summary:        LXC container runtime library
-License:        LGPL-2.1
+License:        LGPL-2.1-only
 Group:          System/Libraries
 
 %description -n liblxc%{shlib_version}
@@ -95,7 +97,7 @@
 
 %package -n liblxc-devel
 Summary:        LXC container runtime library development files
-License:        LGPL-2.1
+License:        LGPL-2.1-only
 Group:          Development/Libraries/C and C++
 Requires:       liblxc%{shlib_version} = %version
 
@@ -108,6 +110,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 chmod 755 configure

++++++ 0001-PyOS_AfterFork-python3.7.patch ++++++
--- lxc-2.0.9/src/python-lxc/lxc.c.orig 2017-10-19 19:13:25.000000000 +0200
+++ lxc-2.0.9/src/python-lxc/lxc.c      2019-02-04 21:14:54.021905235 +0100
@@ -121,7 +121,11 @@
      * container. As lxc_attach() calls fork() PyOS_AfterFork should be called
      * in the new process if the Python interpreter will continue to be used.
      */
+#if PY_VERSION_HEX < 0x03070000
     PyOS_AfterFork();
+#else
+    PyOS_AfterFork_Child();
+#endif
 
     struct lxc_attach_python_payload *payload =
         (struct lxc_attach_python_payload *)_payload;


Reply via email to