[packages/PyCXX] - fix Src/ include paths in installed sources (broke every consumer of share/pythonX.Y/CXX); release
arekm
arekm at pld-linux.org
Sat Sep 26 23:32:01 CEST 2026
commit bab208666e56aeb2054c59f677fb22639db1b3a5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Sep 26 23:31:12 2026 +0200
- fix Src/ include paths in installed sources (broke every consumer of share/pythonX.Y/CXX); release 4
PyCXX-include-paths.patch | 26 ++++++++++++++++++++++++++
PyCXX.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/PyCXX.spec b/PyCXX.spec
index 823fc4f..5949b9c 100644
--- a/PyCXX.spec
+++ b/PyCXX.spec
@@ -2,12 +2,13 @@ Summary: Set of classes to help create extensions of Python in the C++ language
Summary(pl.UTF-8): Klasy C++ pomocne przy tworzeniu modułów Pythona
Name: PyCXX
Version: 7.1.7
-Release: 3
+Release: 4
License: BSD
Group: Development/Libraries
# http://prdownloads.sourceforge.net/cxx/pycxx-6.2.3.tar.gz
Source0: http://downloads.sourceforge.net/cxx/pycxx-%{version}.tar.gz
# Source0-md5: b145c3444f66e129fc2fac9924855439
+Patch0: %{name}-include-paths.patch
URL: http://cxx.sourceforge.net/
BuildRequires: python-modules
Requires: libstdc++-devel
@@ -28,6 +29,7 @@ modułów rozszerzeń Pythona.
%prep
%setup -q -n pycxx-%{version}
+%patch -P0 -p1
%build
diff --git a/PyCXX-include-paths.patch b/PyCXX-include-paths.patch
new file mode 100644
index 0000000..a05de8b
--- /dev/null
+++ b/PyCXX-include-paths.patch
@@ -0,0 +1,26 @@
+# sources are installed flat under share/pythonX.Y/CXX, no Src/ dir; cxx_extensions.cxx already includes "PythonN/..."
+# same fix as Fedora python-pycxx: pycxx-7-change-include-paths.patch
+--- pycxx-7.1.7.orig/Src/cxxextensions.c 2026-09-26 23:02:27.192734366 +0200
++++ pycxx-7.1.7/Src/cxxextensions.c 2026-09-26 23:02:27.219975305 +0200
+@@ -37,7 +37,7 @@
+ #include "CXX/WrapPython.h"
+
+ #if PY_MAJOR_VERSION == 2
+-#include "Src/Python2/cxxextensions.c"
++#include "Python2/cxxextensions.c"
+ #else
+-#include "Src/Python3/cxxextensions.c"
++#include "Python3/cxxextensions.c"
+ #endif
+--- pycxx-7.1.7.orig/Src/cxxsupport.cxx 2026-09-26 23:02:27.192734366 +0200
++++ pycxx-7.1.7/Src/cxxsupport.cxx 2026-09-26 23:02:27.220164601 +0200
+@@ -37,7 +37,7 @@
+ #include "CXX/WrapPython.h"
+
+ #if PY_MAJOR_VERSION == 2
+-#include "Src/Python2/cxxsupport.cxx"
++#include "Python2/cxxsupport.cxx"
+ #else
+-#include "Src/Python3/cxxsupport.cxx"
++#include "Python3/cxxsupport.cxx"
+ #endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/PyCXX.git/commitdiff/bab208666e56aeb2054c59f677fb22639db1b3a5
More information about the pld-cvs-commit
mailing list