From 9d04d8b335798ccd02a605613e40da229edd0072 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 12 Apr 2024 20:03:18 -0700 Subject: unixodbc: Upgrade to 2.3.12 Brings Fix iconv handle leak with pooling Add windows encoding patch Avoid failed build if clock_gettime() is not available Allow passing in a entire connection string into iusql Allow isql to handle SQL_SUCCESS_WITH_INFO from SQLPrepare Add extra logging for ODBCINST connect settings Allow allocated copy (instead of fixed length) for the connection string with pooling to allow any length Export __clear_ini_cache() from odbcinst to allow explicitly clearing the ini cache Fix seg fault when used with SQLAPI Add --enable-utf8ini flag to add utf8 to WCHAR conversions in SQLGetPrivateProfileStringW Allow longer error messages via GetDiag functions Add --enable-singleenv to enable single shared env handle when using pooling Signed-off-by: Khem Raj --- .../recipes-support/unixodbc/unixodbc_2.3.11.bb | 48 ---------------------- .../recipes-support/unixodbc/unixodbc_2.3.12.bb | 48 ++++++++++++++++++++++ 2 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 meta-oe/recipes-support/unixodbc/unixodbc_2.3.11.bb create mode 100644 meta-oe/recipes-support/unixodbc/unixodbc_2.3.12.bb (limited to 'meta-oe/recipes-support') diff --git a/meta-oe/recipes-support/unixodbc/unixodbc_2.3.11.bb b/meta-oe/recipes-support/unixodbc/unixodbc_2.3.11.bb deleted file mode 100644 index 0ab4f8864d..0000000000 --- a/meta-oe/recipes-support/unixodbc/unixodbc_2.3.11.bb +++ /dev/null @@ -1,48 +0,0 @@ -SUMMARY = "An Open Source ODBC sub-system" -DESCRIPTION = "unixODBC is an Open Source ODBC sub-system and an ODBC SDK \ -for Linux, Mac OSX, and UNIX." - -HOMEPAGE = "http://www.unixodbc.org/" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=d7b37bf80a3df5a65b355433ae36d206" - -DEPENDS = "libtool readline" - -SRC_URI = "https://www.unixodbc.org/unixODBC-${PV}.tar.gz \ - file://do-not-use-libltdl-source-directory.patch \ - file://0001-exe-Makefile.am-add-CROSS_LAUNCHER-to-run-odbc_confi.patch \ -" -SRC_URI[sha256sum] = "d9e55c8e7118347e3c66c87338856dad1516b490fb7c756c1562a2c267c73b5c" - -UPSTREAM_CHECK_REGEX = "unixODBC-(?P\d+(\.\d+)+)\.tar" - -inherit autotools-brokensep multilib_header qemu - -S = "${WORKDIR}/unixODBC-${PV}" - -EXTRA_OEMAKE += "LIBS=-lltdl" - -DEPENDS:append:class-target = "${@' qemu-native' if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) else ''}" -QEMU_WRAPPER = "${@qemu_wrapper_cmdline(d, '${STAGING_DIR_HOST}', ['${STAGING_DIR_HOST}/${libdir}','${STAGING_DIR_HOST}/${base_libdir}'])}" - -do_configure:prepend() { - # old m4 files will cause libtool version don't match - rm -rf m4/* - rm -fr libltdl -} - -do_compile:prepend() { - if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true', 'false', d)}; then - export CROSS_LAUNCHER="${QEMU_WRAPPER} " - fi -} - -do_install:prepend() { - if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true', 'false', d)}; then - export CROSS_LAUNCHER="${QEMU_WRAPPER} " - fi -} - -do_install:append() { - oe_multilib_header unixodbc.h unixODBC/config.h unixODBC/unixodbc_conf.h -} diff --git a/meta-oe/recipes-support/unixodbc/unixodbc_2.3.12.bb b/meta-oe/recipes-support/unixodbc/unixodbc_2.3.12.bb new file mode 100644 index 0000000000..ccdd666408 --- /dev/null +++ b/meta-oe/recipes-support/unixodbc/unixodbc_2.3.12.bb @@ -0,0 +1,48 @@ +SUMMARY = "An Open Source ODBC sub-system" +DESCRIPTION = "unixODBC is an Open Source ODBC sub-system and an ODBC SDK \ +for Linux, Mac OSX, and UNIX." + +HOMEPAGE = "http://www.unixodbc.org/" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7b37bf80a3df5a65b355433ae36d206" + +DEPENDS = "libtool readline" + +SRC_URI = "https://www.unixodbc.org/unixODBC-${PV}.tar.gz \ + file://do-not-use-libltdl-source-directory.patch \ + file://0001-exe-Makefile.am-add-CROSS_LAUNCHER-to-run-odbc_confi.patch \ +" +SRC_URI[sha256sum] = "f210501445ce21bf607ba51ef8c125e10e22dffdffec377646462df5f01915ec" + +UPSTREAM_CHECK_REGEX = "unixODBC-(?P\d+(\.\d+)+)\.tar" + +inherit autotools-brokensep multilib_header qemu + +S = "${WORKDIR}/unixODBC-${PV}" + +EXTRA_OEMAKE += "LIBS=-lltdl" + +DEPENDS:append:class-target = "${@' qemu-native' if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) else ''}" +QEMU_WRAPPER = "${@qemu_wrapper_cmdline(d, '${STAGING_DIR_HOST}', ['${STAGING_DIR_HOST}/${libdir}','${STAGING_DIR_HOST}/${base_libdir}'])}" + +do_configure:prepend() { + # old m4 files will cause libtool version don't match + rm -rf m4/* + rm -fr libltdl +} + +do_compile:prepend() { + if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true', 'false', d)}; then + export CROSS_LAUNCHER="${QEMU_WRAPPER} " + fi +} + +do_install:prepend() { + if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true', 'false', d)}; then + export CROSS_LAUNCHER="${QEMU_WRAPPER} " + fi +} + +do_install:append() { + oe_multilib_header unixodbc.h unixODBC/unixodbc_conf.h +} -- cgit 1.2.3-korg