summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/libvalkey/Makefile6
-rw-r--r--databases/libvalkey/distinfo6
-rw-r--r--databases/libvalkey/pkg-plist5
-rw-r--r--databases/mongodb60/Makefile2
-rw-r--r--databases/mongodb60/distinfo6
-rw-r--r--databases/mongodb70/Makefile2
-rw-r--r--databases/mongodb70/distinfo6
-rw-r--r--databases/mongodb70/files/patch-src_mongo_platform_waitable__atomic.cpp64
-rw-r--r--databases/mongodb80/files/patch-src_mongo_platform_waitable__atomic.cpp6
-rw-r--r--databases/py-sqlmodel/Makefile46
-rw-r--r--databases/py-sqlmodel/distinfo3
-rw-r--r--databases/py-sqlmodel/pkg-descr19
-rw-r--r--databases/qt6-base_sqldriver/distinfo6
-rw-r--r--databases/unixODBC/Makefile5
15 files changed, 162 insertions, 21 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 4c7bc1198675..ef5d3508bdae 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -861,6 +861,7 @@
SUBDIR += py-sqlite-migrate
SUBDIR += py-sqlite-utils
SUBDIR += py-sqlite3
+ SUBDIR += py-sqlmodel
SUBDIR += py-sqlobject
SUBDIR += py-sqloxide
SUBDIR += py-sqlparse
diff --git a/databases/libvalkey/Makefile b/databases/libvalkey/Makefile
index 5090da866e10..8488049ef93f 100644
--- a/databases/libvalkey/Makefile
+++ b/databases/libvalkey/Makefile
@@ -1,5 +1,5 @@
PORTNAME= libvalkey
-DISTVERSION= 0.2.0
+DISTVERSION= 0.2.1
CATEGORIES= databases
MAINTAINER= dtxdf@FreeBSD.org
@@ -25,9 +25,9 @@ TLS_USES= ssl
TLS_MAKE_ARGS= USE_TLS=1
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libvalkey.so.0.1.0
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libvalkey.so.${DISTVERSION}
post-install-TLS-on:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libvalkey_tls.so.0.1.0
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libvalkey_tls.so.${DISTVERSION}
.include <bsd.port.mk>
diff --git a/databases/libvalkey/distinfo b/databases/libvalkey/distinfo
index 2a5fc91fc739..8bc3097121d6 100644
--- a/databases/libvalkey/distinfo
+++ b/databases/libvalkey/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1755627857
-SHA256 (valkey-io-libvalkey-0.2.0_GH0.tar.gz) = d620d93fc3c39b297babe3d9003901aeddaa600507a1844accdb23539a762029
-SIZE (valkey-io-libvalkey-0.2.0_GH0.tar.gz) = 207972
+TIMESTAMP = 1756498326
+SHA256 (valkey-io-libvalkey-0.2.1_GH0.tar.gz) = bc068b15eeb8f66c3205f55f7bfe1274b79ccced0dd8796e59d62091abeb3645
+SIZE (valkey-io-libvalkey-0.2.1_GH0.tar.gz) = 207895
diff --git a/databases/libvalkey/pkg-plist b/databases/libvalkey/pkg-plist
index 07d3c858e797..b6095444557f 100644
--- a/databases/libvalkey/pkg-plist
+++ b/databases/libvalkey/pkg-plist
@@ -22,11 +22,10 @@ include/valkey/visibility.h
lib/libvalkey.a
lib/libvalkey.so
lib/libvalkey.so.0
-lib/libvalkey.so.0.1.0
+lib/libvalkey.so.0.2.1
lib/libvalkey_tls.a
lib/libvalkey_tls.so
lib/libvalkey_tls.so.0
-lib/libvalkey_tls.so.0.1.0
+lib/libvalkey_tls.so.0.2.1
libdata/pkgconfig/valkey.pc
libdata/pkgconfig/valkey_tls.pc
-
diff --git a/databases/mongodb60/Makefile b/databases/mongodb60/Makefile
index 1a75ba698aae..98525dff3708 100644
--- a/databases/mongodb60/Makefile
+++ b/databases/mongodb60/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mongodb
DISTVERSIONPREFIX= r
-DISTVERSION= 6.0.25
+DISTVERSION= 6.0.26
CATEGORIES= databases net
MASTER_SITES= https://hg.mozilla.org/mozilla-central/raw-rev/:patches
PKGNAMESUFFIX= ${DISTVERSION:R:S/.//}
diff --git a/databases/mongodb60/distinfo b/databases/mongodb60/distinfo
index 4ebe9d833612..4e6a5dc57194 100644
--- a/databases/mongodb60/distinfo
+++ b/databases/mongodb60/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1753788846
+TIMESTAMP = 1755242028
SHA256 (223087fdc29f18678f6174e9807b8780e439acf6) = f234371584e2b2bc9953ae4fd145da19c99a6f04087f53d59616aecf29df039c
SIZE (223087fdc29f18678f6174e9807b8780e439acf6) = 1597
-SHA256 (mongodb-mongo-r6.0.25_GH0.tar.gz) = 9637f83ca74c6faa30853e96e3c897aa61bb74433e1b64084b5e5d70e458f528
-SIZE (mongodb-mongo-r6.0.25_GH0.tar.gz) = 87527607
+SHA256 (mongodb-mongo-r6.0.26_GH0.tar.gz) = 86002ae3f2bfbc31b8f06ad0ecaba44de1dc507fbd2ff812074b31dc1ec895b0
+SIZE (mongodb-mongo-r6.0.26_GH0.tar.gz) = 87528255
SHA256 (mongodb-forks-spidermonkey-82aac6af18abcd5bf188afbc821779ccb0ca0902_GH0.tar.gz) = a365bf54ef4e4fd6a136cf6afa9c620ba0c8982402473b9bfac38928a688a9e0
SIZE (mongodb-forks-spidermonkey-82aac6af18abcd5bf188afbc821779ccb0ca0902_GH0.tar.gz) = 141291901
diff --git a/databases/mongodb70/Makefile b/databases/mongodb70/Makefile
index cae523d04275..44cf0365bf58 100644
--- a/databases/mongodb70/Makefile
+++ b/databases/mongodb70/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mongodb
DISTVERSIONPREFIX= r
-DISTVERSION= 7.0.22
+DISTVERSION= 7.0.23
CATEGORIES= databases net
PKGNAMESUFFIX= ${DISTVERSION:R:S/.//}
diff --git a/databases/mongodb70/distinfo b/databases/mongodb70/distinfo
index cfdc23e0420e..bf5b39db08b1 100644
--- a/databases/mongodb70/distinfo
+++ b/databases/mongodb70/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1752738065
-SHA256 (mongodb-mongo-r7.0.22_GH0.tar.gz) = 031f7e924d1094c001621075f87cb466a84c975702a42796827d1456d4d57857
-SIZE (mongodb-mongo-r7.0.22_GH0.tar.gz) = 87803554
+TIMESTAMP = 1754633156
+SHA256 (mongodb-mongo-r7.0.23_GH0.tar.gz) = 31a59b83ecdf65ba26453eb244682f18aa02204a0017e872dd28008b8d471bde
+SIZE (mongodb-mongo-r7.0.23_GH0.tar.gz) = 87871275
SHA256 (mongodb-forks-spidermonkey-5acd3be6c9563ad3e7ca6182285c69a38de47bab_GH0.tar.gz) = 1420533e23970171ff7a420e3ded1ea493e1976fb8896a5fd6f35e5b2d75733b
SIZE (mongodb-forks-spidermonkey-5acd3be6c9563ad3e7ca6182285c69a38de47bab_GH0.tar.gz) = 280439685
diff --git a/databases/mongodb70/files/patch-src_mongo_platform_waitable__atomic.cpp b/databases/mongodb70/files/patch-src_mongo_platform_waitable__atomic.cpp
new file mode 100644
index 000000000000..6f1b397699a3
--- /dev/null
+++ b/databases/mongodb70/files/patch-src_mongo_platform_waitable__atomic.cpp
@@ -0,0 +1,64 @@
+# Original upstream implementation:
+# https://jira.mongodb.org/browse/SERVER-81797
+# Attempt to upstream this patch:
+# https://github.com/mongodb/mongo/pull/1607
+# https://jira.mongodb.org/browse/SERVER-99225
+#
+--- src/mongo/platform/waitable_atomic.cpp.orig 2024-11-20 23:53:48 UTC
++++ src/mongo/platform/waitable_atomic.cpp
+@@ -34,6 +34,9 @@
+ #ifdef __linux__
+ #include <linux/futex.h>
+ #include <sys/syscall.h>
++#elif defined(__FreeBSD__)
++#include <sys/types.h>
++#include <sys/umtx.h>
+ #elif defined(_WIN32)
+ #include <synchapi.h>
+ #endif
+@@ -233,6 +236,45 @@ bool waitUntil(const void* uaddr,
+ // There isn't a good list of possible errors, so assuming that anything other than a timeout
+ // error is a possible spurious wakeup.
+ return timeoutOverflow || errno != ETIMEDOUT;
++}
++
++#elif defined(__FreeBSD__)
++
++void notifyOne(const void* uaddr) {
++ _umtx_op(const_cast<void*>(uaddr), UMTX_OP_WAKE_PRIVATE, 1, NULL, NULL);
++}
++
++void notifyMany(const void* uaddr, int nToWake) {
++ _umtx_op(const_cast<void*>(uaddr), UMTX_OP_WAKE_PRIVATE, nToWake, NULL, NULL);
++}
++
++void notifyAll(const void* uaddr) {
++ _umtx_op(const_cast<void*>(uaddr), UMTX_OP_WAKE_PRIVATE, INT_MAX, NULL, NULL);
++}
++
++bool waitUntil(const void* uaddr,
++ uint32_t old,
++ boost::optional<system_clock::time_point> deadline) {
++ struct _umtx_time umtx_deadline;
++ void* uaddr2 = nullptr;
++
++ if (deadline) {
++ umtx_deadline._timeout.tv_sec = durationCount<Seconds>(deadline->time_since_epoch());
++ umtx_deadline._timeout.tv_nsec = durationCount<Nanoseconds>(
++ deadline->time_since_epoch() - stdx::chrono::seconds(umtx_deadline._timeout.tv_sec));
++ umtx_deadline._flags = UMTX_ABSTIME;
++ umtx_deadline._clockid = CLOCK_REALTIME_FAST;
++ uaddr2 = &umtx_deadline;
++ }
++
++ int umtxOpRet;
++ if ((umtxOpRet = _umtx_op(const_cast<void*>(uaddr), UMTX_OP_WAIT_UINT_PRIVATE, old, (void*)sizeof(struct _umtx_time), uaddr2)) != 0) {
++ if (errno == ETIMEDOUT) {
++ return false;
++ }
++ invariant(umtxOpRet == 0, errorMessage(lastSystemError()));
++ }
++ return true;
+ }
+
+ #else
diff --git a/databases/mongodb80/files/patch-src_mongo_platform_waitable__atomic.cpp b/databases/mongodb80/files/patch-src_mongo_platform_waitable__atomic.cpp
index e2c815567836..6f1b397699a3 100644
--- a/databases/mongodb80/files/patch-src_mongo_platform_waitable__atomic.cpp
+++ b/databases/mongodb80/files/patch-src_mongo_platform_waitable__atomic.cpp
@@ -1,3 +1,9 @@
+# Original upstream implementation:
+# https://jira.mongodb.org/browse/SERVER-81797
+# Attempt to upstream this patch:
+# https://github.com/mongodb/mongo/pull/1607
+# https://jira.mongodb.org/browse/SERVER-99225
+#
--- src/mongo/platform/waitable_atomic.cpp.orig 2024-11-20 23:53:48 UTC
+++ src/mongo/platform/waitable_atomic.cpp
@@ -34,6 +34,9 @@
diff --git a/databases/py-sqlmodel/Makefile b/databases/py-sqlmodel/Makefile
new file mode 100644
index 000000000000..0bf8f21d1d33
--- /dev/null
+++ b/databases/py-sqlmodel/Makefile
@@ -0,0 +1,46 @@
+PORTNAME= sqlmodel
+DISTVERSION= 0.0.24
+CATEGORIES= databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= tagattie@FreeBSD.org
+COMMENT= SQL databases in Python, designed for simplicity, compatibility, and robustness
+WWW= https://sqlmodel.tiangolo.com/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy20>=2.0.14<2.1.0:databases/py-sqlalchemy20@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pydantic2>=1.10.13<3.0.0:devel/py-pydantic2@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=6.2<8.0:devel/py-coverage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mypy>=1.4.1:devel/py-mypy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ruff>=0.9.6:devel/py-ruff@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}fastapi>=0.103.2:www/py-fastapi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx>=0.24.1:www/py-httpx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dirty-equals>=0.9.0:devel/py-dirty-equals@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.4:devel/py-Jinja2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12.2:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}black>0:devel/py-black@${PY_FLAVOR}
+
+USES= python shebangfix
+USE_PYTHON= autoplist pep517 pytest
+
+SHEBANG_FILES= scripts/test.sh
+bash_CMD= ${SH}
+
+NO_ARCH= yes
+
+PORTDOCS= README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ./scripts/test.sh
+
+.include <bsd.port.mk>
diff --git a/databases/py-sqlmodel/distinfo b/databases/py-sqlmodel/distinfo
new file mode 100644
index 000000000000..606cd3026abd
--- /dev/null
+++ b/databases/py-sqlmodel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756455526
+SHA256 (sqlmodel-0.0.24.tar.gz) = cc5c7613c1a5533c9c7867e1aab2fd489a76c9e8a061984da11b4e613c182423
+SIZE (sqlmodel-0.0.24.tar.gz) = 116780
diff --git a/databases/py-sqlmodel/pkg-descr b/databases/py-sqlmodel/pkg-descr
new file mode 100644
index 000000000000..ea96d894e9fd
--- /dev/null
+++ b/databases/py-sqlmodel/pkg-descr
@@ -0,0 +1,19 @@
+SQLModel is a library for interacting with SQL databases from Python
+code, with Python objects. It is designed to be intuitive, easy to
+use, highly compatible, and robust.
+
+SQLModel is based on Python type annotations, and powered by Pydantic
+and SQLAlchemy.
+
+The key features are:
+- Intuitive to write: Great editor support. Completion
+ everywhere. Less time debugging. Designed to be easy to use and
+ learn. Less time reading docs.
+- Easy to use: It has sensible defaults and does a lot of work
+ underneath to simplify the code you write.
+- Compatible: It is designed to be compatible with FastAPI, Pydantic,
+ and SQLAlchemy.
+- Extensible: You have all the power of SQLAlchemy and Pydantic
+ underneath.
+- Short: Minimize code duplication. A single type annotation does a
+ lot of work. No need to duplicate models in SQLAlchemy and Pydantic.
diff --git a/databases/qt6-base_sqldriver/distinfo b/databases/qt6-base_sqldriver/distinfo
index 546ff5b5438c..d20b26d71b45 100644
--- a/databases/qt6-base_sqldriver/distinfo
+++ b/databases/qt6-base_sqldriver/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1749162799
-SHA256 (KDE/Qt/6.9.1/qtbase-everywhere-src-6.9.1.tar.xz) = 40caedbf83cc9a1959610830563565889878bc95f115868bbf545d1914acf28e
-SIZE (KDE/Qt/6.9.1/qtbase-everywhere-src-6.9.1.tar.xz) = 49755912
+TIMESTAMP = 1756196336
+SHA256 (KDE/Qt/6.9.2/qtbase-everywhere-src-6.9.2.tar.xz) = 44be9c9ecfe04129c4dea0a7e1b36ad476c9cc07c292016ac98e7b41514f2440
+SIZE (KDE/Qt/6.9.2/qtbase-everywhere-src-6.9.2.tar.xz) = 49812824
diff --git a/databases/unixODBC/Makefile b/databases/unixODBC/Makefile
index 7cc274e40626..12a5ba670120 100644
--- a/databases/unixODBC/Makefile
+++ b/databases/unixODBC/Makefile
@@ -1,6 +1,6 @@
PORTNAME= unixODBC
PORTVERSION= 2.3.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.unixodbc.org/ \
ftp://ftp.unixodbc.org/pub/unixODBC/
@@ -28,6 +28,9 @@ PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's|\.ini$$|.ini.sample|' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} \
+ -e 's|/etc|${LOCALBASE}/etc|' \
+ -e 's|/usr/lib|${LOCALBASE}/lib|' ${WRKSRC}/man/*.[1-9]
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}