Package: libpython3.8-dev
Version: 3.8.2-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu groovy ubuntu-patch

Dear Maintainer,

   * parts of our project (gxsm.sf.net) did not compile while shifting from 
python3.7 to python3.8 (Ubuntu 18.04 to Ubuntu 20.04)
   * compiler could not find Py_single_input, Py_eval_input and so on 
   * reason: files had been rearranged in the libpython3.8-dev but a path in an 
include was not correct


*** /tmp/tmpl4ojltae/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

   * correcting the path of the include in /python3.8/cpython/pystate.h
   * it was #include "cpython/initconfig.h"; it is not #include "initconfig.h"


  * debian/patches/99-new-patch.patch: corrected include path for initconfig.h 
in cpython/pystate.h 
  * LP #1877831 


Thanks for considering the patch.


-- System Information:
Debian Release: bullseye/sid
  APT prefers focal-updates
  APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), 
(100, 'focal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-42-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru python3.8-3.8.2/debian/patches/99-new-patch.patch 
python3.8-3.8.2/debian/patches/99-new-patch.patch
--- python3.8-3.8.2/debian/patches/99-new-patch.patch   1970-01-01 
01:00:00.000000000 +0100
+++ python3.8-3.8.2/debian/patches/99-new-patch.patch   2020-08-24 
14:45:36.000000000 +0200
@@ -0,0 +1,16 @@
+## Description: fixing LP #1877831
+## Origin/Author: Thorsten Wagner/The GXSM3-Team
+## Bug: bugs.launchpad.net/ubuntu/+source/python3.8/+bug/1877831
+Index: python3.8-3.8.2/Include/cpython/pystate.h
+===================================================================
+--- python3.8-3.8.2.orig/Include/cpython/pystate.h
++++ python3.8-3.8.2/Include/cpython/pystate.h
+@@ -6,7 +6,7 @@
+ extern "C" {
+ #endif
+ 
+-#include "cpython/initconfig.h"
++#include "initconfig.h"
+ 
+ PyAPI_FUNC(int) _PyInterpreterState_RequiresIDRef(PyInterpreterState *);
+ PyAPI_FUNC(void) _PyInterpreterState_RequireIDRef(PyInterpreterState *, int);
diff -Nru python3.8-3.8.2/debian/patches/series 
python3.8-3.8.2/debian/patches/series
--- python3.8-3.8.2/debian/patches/series       2020-07-16 16:00:01.000000000 
+0200
+++ python3.8-3.8.2/debian/patches/series       2020-08-24 14:43:42.000000000 
+0200
@@ -41,3 +41,4 @@
 CVE-2020-8492.patch
 CVE-2019-20907.patch
 CVE-2020-14422.patch
+99-new-patch.patch

Reply via email to