Update to soci 3.2.2: - Fix uninitialized indicators in conversion_into_type and conversion_use_type specialisations - Fixed placeholder matching for PostgreSQL-style casts with ORM - Fixed memory leaking in use binding in case of bind/unbind sequence - Fixed sscanf formatter for MinGW/MSVC in backends - Fixed partial placeholder name matching for ORM cases - Added test for use of indicators with rowset<row> - Added test for get_affected_rows after bulk operations Add options for selecting MySQL/PostgreSQL/SQLite backends, defaulting to PostgreSQL.diff -r1.3 -r1.4 pkgsrc/databases/soci/Makefile
(joerg)
@@ -1,21 +1,20 @@ | @@ -1,21 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2013/08/30 10:19:37 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2013/09/11 12:22:33 joerg Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= soci-3.2.1 | 4 | DISTNAME= soci-3.2.2 | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= databases | 6 | CATEGORIES= databases | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=soci/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=soci/} | |
8 | 8 | |||
9 | MAINTAINER= joerg@NetBSD.org | 9 | MAINTAINER= joerg@NetBSD.org | |
10 | HOMEPAGE= http://soci.sourceforge.net/ | 10 | HOMEPAGE= http://soci.sourceforge.net/ | |
11 | COMMENT= C++ database access library | 11 | COMMENT= C++ database access library | |
12 | LICENSE= boost-license | 12 | LICENSE= boost-license | |
13 | 13 | |||
14 | USE_CMAKE= yes | 14 | USE_CMAKE= yes | |
15 | USE_LANGUAGES= c c++ | 15 | USE_LANGUAGES= c c++ | |
16 | 16 | |||
17 | CMAKE_ARGS+= -DSOCI_LIBDIR=lib | 17 | CMAKE_ARGS+= -DSOCI_LIBDIR=lib | |
18 | 18 | |||
19 | .include "../../databases/sqlite3/buildlink3.mk" | 19 | .include "options.mk" | |
20 | .include "../../mk/pgsql.buildlink3.mk" | |||
21 | .include "../../mk/bsd.pkg.mk" | 20 | .include "../../mk/bsd.pkg.mk" |
@@ -1,11 +1,6 @@ | @@ -1,11 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2013/08/30 10:19:37 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.4 2013/09/11 12:22:33 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (soci-3.2.1.tar.gz) = 38f602ec8d61c4563df8ea4d4ed318dc378e7096 | 3 | SHA1 (soci-3.2.2.tar.gz) = 0a63cdbe719793c37b328a95778451a550f22c0a | |
4 | RMD160 (soci-3.2.1.tar.gz) = 3e98139aa904c62dbf7cc6a1fae5fc73042a6364 | 4 | RMD160 (soci-3.2.2.tar.gz) = d366c1773d23c551404a8e05791afc3a4b6acfdd | |
5 | Size (soci-3.2.1.tar.gz) = 343358 bytes | 5 | Size (soci-3.2.2.tar.gz) = 354047 bytes | |
6 | SHA1 (patch-CMakeLists.txt) = c66f0b8fd3ca0fedaebedd6943ae0471f7c6ba35 | 6 | SHA1 (patch-CMakeLists.txt) = 589fed2101a09637cb3f052bf7915dd2bccf0385 | |
7 | SHA1 (patch-backends_postgresql_session.cpp) = d816ffc0c4981ef9b2bdcb28e9e4292b519d3e75 | |||
8 | SHA1 (patch-backends_postgresql_soci-postgresql.h) = 1c01ebdad82d4f641024b8e73a4c853f1c83b134 | |||
9 | SHA1 (patch-backends_sqlite3_soci-sqlite3.h) = 688260116f0e35f37f7de8d61366a3397259dc0c | |||
10 | SHA1 (patch-core_once-temp-type.cpp) = 5d19aa72accd8d3883915283c1380df2ec4c7e5c | |||
11 | SHA1 (patch-core_once-temp-type.h) = 5c08a4c0f5bba3729bfec2c6930b6145da5e864d |
@@ -1,64 +1,70 @@ | @@ -1,64 +1,70 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2013/07/05 21:04:45 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2013/09/11 12:22:33 joerg Exp $ | |
2 | include/soci/backend-loader.h | 2 | include/soci/backend-loader.h | |
3 | include/soci/blob-exchange.h | 3 | include/soci/blob-exchange.h | |
4 | include/soci/blob.h | 4 | include/soci/blob.h | |
5 | include/soci/boost-fusion.h | 5 | include/soci/boost-fusion.h | |
6 | include/soci/boost-gregorian-date.h | 6 | include/soci/boost-gregorian-date.h | |
7 | include/soci/boost-optional.h | 7 | include/soci/boost-optional.h | |
8 | include/soci/boost-tuple.h | 8 | include/soci/boost-tuple.h | |
9 | include/soci/connection-parameters.h | 9 | include/soci/connection-parameters.h | |
10 | include/soci/connection-pool.h | 10 | include/soci/connection-pool.h | |
11 | include/soci/empty/soci-empty.h | 11 | include/soci/empty/soci-empty.h | |
12 | include/soci/error.h | 12 | include/soci/error.h | |
13 | include/soci/exchange-traits.h | 13 | include/soci/exchange-traits.h | |
14 | include/soci/into-type.h | 14 | include/soci/into-type.h | |
15 | include/soci/into.h | 15 | include/soci/into.h | |
16 | ${PLIST.mysql}include/soci/mysql/common.h | |||
17 | ${PLIST.mysql}include/soci/mysql/soci-mysql.h | |||
16 | include/soci/once-temp-type.h | 18 | include/soci/once-temp-type.h | |
17 | include/soci/postgresql/common.h | 19 | ${PLIST.pgsql}include/soci/postgresql/common.h | |
18 | include/soci/postgresql/soci-postgresql.h | 20 | ${PLIST.pgsql}include/soci/postgresql/soci-postgresql.h | |
19 | include/soci/prepare-temp-type.h | 21 | include/soci/prepare-temp-type.h | |
20 | include/soci/procedure.h | 22 | include/soci/procedure.h | |
21 | include/soci/query_transformation.h | 23 | include/soci/query_transformation.h | |
22 | include/soci/ref-counted-prepare-info.h | 24 | include/soci/ref-counted-prepare-info.h | |
23 | include/soci/ref-counted-statement.h | 25 | include/soci/ref-counted-statement.h | |
24 | include/soci/row-exchange.h | 26 | include/soci/row-exchange.h | |
25 | include/soci/row.h | 27 | include/soci/row.h | |
26 | include/soci/rowid-exchange.h | 28 | include/soci/rowid-exchange.h | |
27 | include/soci/rowid.h | 29 | include/soci/rowid.h | |
28 | include/soci/rowset.h | 30 | include/soci/rowset.h | |
29 | include/soci/session.h | 31 | include/soci/session.h | |
30 | include/soci/soci-backend.h | 32 | include/soci/soci-backend.h | |
31 | include/soci/soci-config.h | 33 | include/soci/soci-config.h | |
32 | include/soci/soci-platform.h | 34 | include/soci/soci-platform.h | |
33 | include/soci/soci-simple.h | 35 | include/soci/soci-simple.h | |
34 | include/soci/soci.h | 36 | include/soci/soci.h | |
35 | include/soci/sqlite3/common.h | 37 | ${PLIST.sqlite}include/soci/sqlite3/common.h | |
36 | include/soci/sqlite3/soci-sqlite3.h | 38 | ${PLIST.sqlite}include/soci/sqlite3/soci-sqlite3.h | |
37 | include/soci/statement.h | 39 | include/soci/statement.h | |
38 | include/soci/transaction.h | 40 | include/soci/transaction.h | |
39 | include/soci/type-conversion-traits.h | 41 | include/soci/type-conversion-traits.h | |
40 | include/soci/type-conversion.h | 42 | include/soci/type-conversion.h | |
41 | include/soci/type-holder.h | 43 | include/soci/type-holder.h | |
42 | include/soci/type-ptr.h | 44 | include/soci/type-ptr.h | |
43 | include/soci/unsigned-types.h | 45 | include/soci/unsigned-types.h | |
44 | include/soci/use-type.h | 46 | include/soci/use-type.h | |
45 | include/soci/use.h | 47 | include/soci/use.h | |
46 | include/soci/values-exchange.h | 48 | include/soci/values-exchange.h | |
47 | include/soci/values.h | 49 | include/soci/values.h | |
48 | include/soci/version.h | 50 | include/soci/version.h | |
49 | lib/libsoci_core.a | 51 | lib/libsoci_core.a | |
50 | lib/libsoci_core.so | 52 | lib/libsoci_core.so | |
51 | lib/libsoci_core.so.3.2 | 53 | lib/libsoci_core.so.3.2 | |
52 | lib/libsoci_core.so.${PKGVERSION} | 54 | lib/libsoci_core.so.${PKGVERSION} | |
53 | lib/libsoci_empty.a | 55 | lib/libsoci_empty.a | |
54 | lib/libsoci_empty.so | 56 | lib/libsoci_empty.so | |
55 | lib/libsoci_empty.so.3.2 | 57 | lib/libsoci_empty.so.3.2 | |
56 | lib/libsoci_empty.so.${PKGVERSION} | 58 | lib/libsoci_empty.so.${PKGVERSION} | |
57 | lib/libsoci_postgresql.a | 59 | ${PLIST.mysql}lib/libsoci_mysql.a | |
58 | lib/libsoci_postgresql.so | 60 | ${PLIST.mysql}lib/libsoci_mysql.so | |
59 | lib/libsoci_postgresql.so.3.2 | 61 | ${PLIST.mysql}lib/libsoci_mysql.so.3.2 | |
60 | lib/libsoci_postgresql.so.${PKGVERSION} | 62 | ${PLIST.mysql}lib/libsoci_mysql.so.${PKGVERSION} | |
61 | lib/libsoci_sqlite3.a | 63 | ${PLIST.pgsql}lib/libsoci_postgresql.a | |
62 | lib/libsoci_sqlite3.so | 64 | ${PLIST.pgsql}lib/libsoci_postgresql.so | |
63 | lib/libsoci_sqlite3.so.3.2 | 65 | ${PLIST.pgsql}lib/libsoci_postgresql.so.3.2 | |
64 | lib/libsoci_sqlite3.so.${PKGVERSION} | 66 | ${PLIST.pgsql}lib/libsoci_postgresql.so.${PKGVERSION} | |
67 | ${PLIST.sqlite}lib/libsoci_sqlite3.a | |||
68 | ${PLIST.sqlite}lib/libsoci_sqlite3.so | |||
69 | ${PLIST.sqlite}lib/libsoci_sqlite3.so.3.2 | |||
70 | ${PLIST.sqlite}lib/libsoci_sqlite3.so.${PKGVERSION} |
# $NetBSD: options.mk,v 1.1 2013/09/11 12:22:33 joerg Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.soci
PKG_SUPPORTED_OPTIONS= mysql pgsql sqlite
PKG_SUGGESTED_OPTIONS= pgsql
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
CMAKE_ARGS+= -DWITH_ODBC=off -DWITH_ORACLE=off \
-DWITH_FIREBIRD=off -DWITH_DB2=off
PLIST_VARS+= mysql pgsql sqlite
.if !empty(PKG_OPTIONS:Mmysql)
.include "../../mk/mysql.buildlink3.mk"
CMAKE_ARGS+= -DWITH_MYSQL=on
PLIST.mysql= yes
.else
CMAKE_ARGS+= -DWITH_MYSQL=off
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
.include "../../mk/pgsql.buildlink3.mk"
CMAKE_ARGS+= -DWITH_POSTGRESQL=on
PLIST.pgsql= yes
.else
CMAKE_ARGS+= -DWITH_POSTGRESQL=off
.endif
.if !empty(PKG_OPTIONS:Msqlite)
.include "../../databases/sqlite3/buildlink3.mk"
CMAKE_ARGS+= -DWITH_SQLITE3=on
PLIST.sqlite= yes
.else
CMAKE_ARGS+= -DWITH_SQLITE3=off
.endif
@@ -1,19 +1,18 @@ | @@ -1,19 +1,18 @@ | |||
1 | $NetBSD: patch-CMakeLists.txt,v 1.1 2013/07/05 21:04:45 joerg Exp $ | 1 | $NetBSD: patch-CMakeLists.txt,v 1.2 2013/09/11 12:22:33 joerg Exp $ | |
2 | 2 | |||
3 | Use consistent behavior on all platforms. | 3 | --- CMakeLists.txt.orig 2013-09-11 10:45:29.000000000 +0000 | |
4 | ||||
5 | --- CMakeLists.txt.orig 2013-07-05 18:10:32.000000000 +0000 | |||
6 | +++ CMakeLists.txt | 4 | +++ CMakeLists.txt | |
7 | @@ -70,11 +70,7 @@ include(SociDependencies) | 5 | @@ -70,11 +70,13 @@ include(SociDependencies) | |
8 | # Installation | 6 | # Installation | |
9 | ############################################################################### | 7 | ############################################################################### | |
10 | 8 | |||
11 | -if(APPLE OR CMAKE_SIZEOF_VOID_P EQUAL 4) | 9 | +if(NOT DEFINED SOCI_LIBDIR) | |
12 | - set(SOCI_LIBDIR "lib") | 10 | if(APPLE OR CMAKE_SIZEOF_VOID_P EQUAL 4) | |
13 | -else() | 11 | set(SOCI_LIBDIR "lib") | |
14 | - set(SOCI_LIBDIR "lib64") | 12 | else() | |
15 | -endif() | 13 | set(SOCI_LIBDIR "lib64") | |
16 | +set(SOCI_LIBDIR "lib") | 14 | endif() | |
15 | +endif() | |||
17 | 16 | |||
18 | set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") | 17 | set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") | |
19 | set(LIBDIR ${SOCI_LIBDIR} CACHE PATH "The directory to install libraries into.") | 18 | set(LIBDIR ${SOCI_LIBDIR} CACHE PATH "The directory to install libraries into.") |