Hi, ports@:

    Here is a patch for databases/libzdb to update to 3.2.2.
It build well and pass all tests on amd64-6.8 system.
    No other ports depends on it.

wen
Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/libzdb/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile    12 Jul 2019 20:43:53 -0000      1.10
+++ Makefile    30 Dec 2020 07:47:38 -0000
@@ -2,10 +2,9 @@
 
 COMMENT =              easy to use database connection pool Library
 
-DISTNAME =             libzdb-3.1
-REVISION =             2
+DISTNAME =             libzdb-3.2.2
 
-SHARED_LIBS +=                 zdb 1.0 # 11.0
+SHARED_LIBS +=                 zdb 1.0 # 13.0
 
 CATEGORIES =           databases
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/databases/libzdb/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo    11 Sep 2015 19:28:37 -0000      1.2
+++ distinfo    30 Dec 2020 07:47:38 -0000
@@ -1,2 +1,2 @@
-SHA256 (libzdb-3.1.tar.gz) = DwGrsbAdGh9KubVa07pEXSA/w7R1er31Ph2F4re0JpU=
-SIZE (libzdb-3.1.tar.gz) = 720162
+SHA256 (libzdb-3.2.2.tar.gz) = 1R5OIe4e6ErIdj3pG/SFNgzXaGC5UcqZjokYJMTxla4=
+SIZE (libzdb-3.2.2.tar.gz) = 752292
Index: patches/patch-src_zdbpp_h
===================================================================
RCS file: patches/patch-src_zdbpp_h
diff -N patches/patch-src_zdbpp_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_zdbpp_h   30 Dec 2020 07:47:38 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Index: src/zdbpp.h
+--- src/zdbpp.h.orig
++++ src/zdbpp.h
+@@ -319,10 +319,6 @@ namespace zdb {
+             this->setDouble(parameterIndex, x);
+         }
+         
+-        void bind(int parameterIndex, time_t x) {
+-            this->setTimestamp(parameterIndex, x);
+-        }
+-        
+         //blob
+         void bind(int parameterIndex, std::tuple<const void *, int> x) {
+             auto [blob, size] = x;
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/databases/libzdb/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   4 Oct 2014 19:17:06 -0000       1.2
+++ pkg/PLIST   30 Dec 2020 07:47:38 -0000
@@ -8,7 +8,8 @@ include/zdb/ResultSet.h
 include/zdb/SQLException.h
 include/zdb/URL.h
 include/zdb/zdb.h
-lib/libzdb.a
+include/zdb/zdbpp.h
+@static-lib lib/libzdb.a
 lib/libzdb.la
 @lib lib/libzdb.so.${LIBzdb_VERSION}
 lib/pkgconfig/zdb.pc

Reply via email to