Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177932286
D57713.1795590793.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D57713.1795590793.diff
View Options
diff --git a/net/samba416/Makefile b/net/samba416/Makefile
--- a/net/samba416/Makefile
+++ b/net/samba416/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ${SAMBA4_BASENAME}416
PORTVERSION= ${SAMBA4_VERSION}
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES?= net
MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
DISTNAME= ${SAMBA4_DISTNAME}
@@ -463,10 +463,10 @@
# Python bindings
BUILD_DEPENDS+= ${PY_SETUPTOOLS}
.if ! ${PORT_OPTIONS:MPYTHON3} || defined(NO_PYTHON)
-USES+= python:build,test,3.11-3.12
+USES+= python:build,test,3.11-3.14
CONFIGURE_ARGS+= --disable-python
.else
-USES+= python:3.11-3.12
+USES+= python:3.11-3.14
PLIST+= ${PKGDIR}/pkg-plist.python
# Don't cache Python modules
CONFIGURE_ARGS+= --nopycache
diff --git a/net/samba416/files/patch-source4_param_provision.c b/net/samba416/files/patch-source4_param_provision.c
new file mode 100644
--- /dev/null
+++ b/net/samba416/files/patch-source4_param_provision.c
@@ -0,0 +1,48 @@
+--- source4/param/provision.c.orig 2022-01-24 10:26:59 UTC
++++ source4/param/provision.c
+@@ -101,6 +101,18 @@ static PyObject *PyLdb_FromLdbContext(struct ldb_conte
+ return (PyObject *)ret;
+ }
+
++static PyObject *call_wrapper(PyObject *callable, PyObject *kwargs)
++{
++ /*
++ * Helper for calls with zero non-keyword arguments.
++ */
++ PyObject *empty = PyTuple_New(0), *result = NULL;
++ SMB_ASSERT(empty);
++ result = PyObject_Call(callable, empty, kwargs);
++ Py_XDECREF(empty);
++ return result;
++}
++
+ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
+ struct provision_settings *settings,
+ struct provision_result *result)
+@@ -265,7 +277,7 @@ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct lo
+ goto out;
+ }
+
+- py_result = PyEval_CallObjectWithKeywords(provision_fn, NULL, parameters);
++ py_result = call_wrapper(provision_fn, parameters);
+
+ if (py_result == NULL) {
+ status = NT_STATUS_UNSUCCESSFUL;
+@@ -453,7 +465,7 @@ NTSTATUS provision_store_self_join(TALLOC_CTX *mem_ctx
+ goto out;
+ }
+
+- py_result = PyEval_CallObjectWithKeywords(provision_fn, NULL, parameters);
++ py_result = call_wrapper(provision_fn, parameters);
+
+ if (py_result == NULL) {
+ ldb_transaction_cancel(ldb);
+@@ -538,7 +550,7 @@ struct ldb_context *provision_get_schema(TALLOC_CTX *m
+ }
+ }
+
+- py_result = PyEval_CallObjectWithKeywords(schema_fn, NULL, parameters);
++ py_result = call_wrapper(schema_fn, parameters);
+
+ Py_DECREF(parameters);
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 7:13 AM (13 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41983735
Default Alt Text
D57713.1795590793.diff (2 KB)
Attached To
Mode
D57713: net/samba416: Fix build with newer Python
Attached
Detach File
Event Timeline