aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cad/freecad/Makefile2
-rw-r--r--cad/freecad/files/patch-src_CXX_Python3_Objects.hxx20
2 files changed, 21 insertions, 1 deletions
diff --git a/cad/freecad/Makefile b/cad/freecad/Makefile
index 8832c728cd9d..4f8d87554a63 100644
--- a/cad/freecad/Makefile
+++ b/cad/freecad/Makefile
@@ -1,6 +1,6 @@
PORTNAME= FreeCAD
DISTVERSION= 1.0.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= cad
MAINTAINER= cmt@FreeBSD.org
diff --git a/cad/freecad/files/patch-src_CXX_Python3_Objects.hxx b/cad/freecad/files/patch-src_CXX_Python3_Objects.hxx
new file mode 100644
index 000000000000..1bca4004ca3c
--- /dev/null
+++ b/cad/freecad/files/patch-src_CXX_Python3_Objects.hxx
@@ -0,0 +1,20 @@
+--- src/CXX/Python3/Objects.hxx.orig 2024-11-18 16:48:00 UTC
++++ src/CXX/Python3/Objects.hxx
+@@ -1787,7 +1787,7 @@ namespace Py
+ typedef std::basic_string<Py_UNICODE> unicodestring;
+ extern Py_UNICODE unicode_null_string[1];
+ #endif
+- typedef std::basic_string<Py_UCS4> ucs4string;
++ typedef std::basic_string<char32_t> ucs4string;
+ extern Py_UCS4 ucs4_null_string[1];
+
+ class PYCXX_EXPORT Byte: public Object
+@@ -2237,7 +2237,7 @@ namespace Py
+ {
+ ifPyErrorThrowCxxException();
+ }
+- ucs4string ucs4( buf, size() );
++ ucs4string ucs4( reinterpret_cast<const char32_t*>(buf), size() );
+ delete[] buf;
+
+ return ucs4;