diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-20 19:51:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-20 19:51:59 +0000 |
commit | 1fb8608d6f0b1acf0e34361c105533087a09c710 (patch) | |
tree | 5c247db22c44a72ff61ecd68477ed3d7ee357cb8 /dev-db/libdbi-drivers | |
parent | aec6329fe6b56821fd643ccaacb4d5d61f4eaad6 (diff) |
gentoo auto-resync : 20:12:2023 - 19:51:59
Diffstat (limited to 'dev-db/libdbi-drivers')
-rw-r--r-- | dev-db/libdbi-drivers/Manifest | 2 | ||||
-rw-r--r-- | dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-clang16-build-fix.patch | 53 | ||||
-rw-r--r-- | dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r2.ebuild | 87 |
3 files changed, 142 insertions, 0 deletions
diff --git a/dev-db/libdbi-drivers/Manifest b/dev-db/libdbi-drivers/Manifest index 13dd706c8e61..d89000a49ace 100644 --- a/dev-db/libdbi-drivers/Manifest +++ b/dev-db/libdbi-drivers/Manifest @@ -1,5 +1,7 @@ +AUX libdbi-drivers-0.9.0-clang16-build-fix.patch 2363 BLAKE2B a635d3bd7a4b06d95150cbc0590ea64d4d5f28f34b93f4e559e867de6960d11d74e20d6a86b2ce36c47808dce8c7d59c43bb1f2ab4dfcca2738aba64a088bcfb SHA512 8b3094a92943ed02091648e3566ef2715a2e8a831ac6913615f2868949d0cbac7f02e82199b3abe61a946d862c51d8e25f6b5043e9cf827462d97155ebef1d8e AUX libdbi-drivers-0.9.0-doc-build-fix.patch 694 BLAKE2B 95207e6fbd947c01a1c3a99806f09e3f932b6d7b6fe1b55ffeb98ce73a54b7f984ffe9811c834e53e961500ae688b0548599b3f9b47a5d1e083eedf5c7ed650d SHA512 0ff58a08909327db91ebd0dfad7ac88ebb17156bbb7afc8bfc8a3711fee37708a7ad715ed50b5085cdd15d3cdb5c06de3a0779694104fb6332a1e9c2f51f5b0e AUX libdbi-drivers-0.9.0-slibtool-libdir.patch 564 BLAKE2B 7effa5db121872b079af2919b56857fda040f9712a10789ba3e4c4352a0b172127026f1df9c2f93071cf78a14f05431557e23e63b74f52df87710942d9c14711 SHA512 9f4ca8fd4147ed1c619c2d7ac40b4d67e67f3f6f940568647dd1782a705a52cd3d10241b2c4039ad8cca2ecc7186841640ffa44fd56d5fc9d19a7e8f3fc974ba DIST libdbi-drivers-0.9.0.tar.gz 1829864 BLAKE2B 2071c0cc21b1b4eeda926d5ce36f6dde03ede206dac91780aabafcb7c5b399f4b9580910e5ede08c9f0bf026f4af2088d1d0e8c1835b86273a7739b2946ed3c3 SHA512 f4d3aaa71014697c53012a10bf9f0af398bcf5ee5872af165f8f43a682d2fb3045a9172ffea0e068dcbfcad52494878c037d8d90fadfaf176936e42f7f1e85c1 EBUILD libdbi-drivers-0.9.0-r1.ebuild 2230 BLAKE2B eafaba5f6da3ab412488e4ed88a892227a10cda0ed428e88827ecc54a34f31c0030506ccff5ae413ab8a6095b53accd81ccb2eaf5c2974de905c04f6b6e26cc2 SHA512 1d8046934b861646a03d1d33244fab1a2a1fca34e1998566cb5142386c67234b4b9b5894f8afad89f2e9760c12d0dd188be9b307dfc234287835f0ef774d449c +EBUILD libdbi-drivers-0.9.0-r2.ebuild 2152 BLAKE2B 01db9bed2fe1c07e034710e0b836172d0ae29e81c25c43e817f8168e2112903b70e54b390f97ee8721d206a1c487a86fec33c934c0ca77e98b2f598ec7fdee19 SHA512 82924eb7a3324f63b2e0760b15200e2e5c234f89e616fc6afda784653fc54bc6423c6e372d075e9d072809721fbe45e0a82c202dc4d786b7440b3cdc0e722101 MISC metadata.xml 303 BLAKE2B 0157e37665116984034696663a1469b658cbcbd59bb144dc8972f6a1994330835bc6e787dc490c877eff0495004cc10f336b61a77d9057a50a757bed7e2423b5 SHA512 590af573bc7adf876ea969185568ae84dc41b9484d9efa9e89b5b6cde1f7af787e54b5c17f75731db4a42e615c1e1731e784a4dd309e03e7ca9b2850bcc34edf diff --git a/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-clang16-build-fix.patch b/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-clang16-build-fix.patch new file mode 100644 index 000000000000..42fb7cb6eabc --- /dev/null +++ b/dev-db/libdbi-drivers/files/libdbi-drivers-0.9.0-clang16-build-fix.patch @@ -0,0 +1,53 @@ +Bug: https://bugs.gentoo.org/894750 +https://sourceforge.net/p/libdbi-drivers/bugs/28/ + +Fix type errors in the cgreen with constraints facility. + +diff --git a/tests/cgreen/src/constraint.c b/tests/cgreen/src/constraint.c +index c19c0ddd41a7bfa7..95673dd3e222a3cf 100644 +--- a/tests/cgreen/src/constraint.c ++++ b/tests/cgreen/src/constraint.c +@@ -22,8 +22,7 @@ static double unbox_double(intptr_t box); + static double as_double(intptr_t box); + + static int compare_using_matcher(Constraint *constraint, intptr_t actual); +-static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t actual, const char *test_file, int test_line, TestReporter *reporter); +- ++static void test_with_matcher(Constraint *constraint, const char *function, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter); + + void destroy_constraint(void *abstract) { + Constraint *constraint = (Constraint *)abstract; +@@ -164,11 +163,11 @@ static void test_want_double(Constraint *constraint, const char *function, intpt + } + + static int compare_using_matcher(Constraint *constraint, intptr_t actual) { +- int (*matches)(const void*) = constraint->expected; +- return matches(actual); ++ int (*matches)(const void*) = (int (*)(const void*)) constraint->expected; ++ return matches((const void *)actual); + } + +-static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) { ++static void test_with_matcher(Constraint *constraint, const char *function, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) { + (*reporter->assert_true)( + reporter, + test_file, +@@ -176,7 +175,7 @@ static void test_with_matcher(Constraint *constraint, const char *function, cons + (*constraint->compare)(constraint, matcher_function), + "Wanted parameter [%s] to match [%s] in function [%s]", + constraint->parameter, +- matcher_name, ++ constraint->name, + function); + } + +--- a/tests/cgreen/src/unit.c ++++ b/tests/cgreen/src/unit.c +@@ -9,6 +9,7 @@ + #include <stdarg.h> + #include <unistd.h> + #include <signal.h> ++#include <sys/wait.h> + + enum {test_function, test_suite}; + diff --git a/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r2.ebuild b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r2.ebuild new file mode 100644 index 000000000000..243151ab44aa --- /dev/null +++ b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi" +HOMEPAGE="https://libdbi-drivers.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${P}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="doc firebird mysql oci8 postgres +sqlite static-libs" + +REQUIRED_USE="|| ( mysql postgres sqlite firebird oci8 )" +RESTRICT="firebird? ( bindist )" + +RDEPEND=" + >=dev-db/libdbi-0.9.0 + firebird? ( dev-db/firebird ) + mysql? ( dev-db/mysql-connector-c:= ) + postgres? ( dev-db/postgresql:* ) + sqlite? ( dev-db/sqlite:3 ) +" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/openjade )" + +DOCS=( AUTHORS ChangeLog NEWS README README.osx TODO ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.0-doc-build-fix.patch + "${FILESDIR}"/${PN}-0.9.0-slibtool-libdir.patch + "${FILESDIR}"/${PN}-0.9.0-clang16-build-fix.patch +) + +pkg_setup() { + use oci8 && [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!" +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf="" + # WARNING: the configure script does NOT work correctly + # --without-$driver does NOT work + # so do NOT use `use_with...` + # Future additions: + # msql + # freetds + # ingres + # db2 + use mysql && myconf+=" --with-mysql" + use postgres && myconf+=" --with-pgsql" + use sqlite && myconf+=" --with-sqlite3" + use firebird && myconf+=" --with-firebird" + if use oci8; then + [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!" + myconf+=" --with-oracle-dir=${ORACLE_HOME} --with-oracle" + fi + + econf \ + $(use_enable doc docs) \ + $(use_enable static-libs static) \ + --with-dbi-libdir=/usr/$(get_libdir) \ + ${myconf} +} + +src_test() { + if [[ -z "${WANT_INTERACTIVE_TESTS}" ]]; then + ewarn "Tests disabled due to interactivity." + ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them." + return 0 + fi + einfo "Running interactive tests" + emake check +} + +src_install() { + default + + find "${ED}" -name '*.la' -type f -delete || die +} |