Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 1 | require mariadb.inc |
| 2 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 3 | inherit ptest |
| 4 | SRC_URI += "${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', d)}" |
| 5 | DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'rsync-native', '', d)}" |
| 6 | RDEPENDS:${PN}-ptest += "cmake sed perl-module-test-more" |
| 7 | |
| 8 | do_install_ptest () { |
| 9 | rsync -a ${B}/unittest ${B}/dbug ${D}${PTEST_PATH} \ |
| 10 | --exclude CMakeFiles \ |
| 11 | --exclude cmake_install.cmake \ |
| 12 | --exclude Makefile \ |
| 13 | --exclude=*.a \ |
| 14 | --exclude=*.h \ |
| 15 | --exclude=*.o \ |
| 16 | --exclude=*.so \ |
| 17 | --exclude=*.d \ |
| 18 | --exclude=*.txt |
| 19 | install -m 0755 -d ${D}${PTEST_PATH}/storage |
| 20 | rsync -a ${B}/storage/maria ${B}/storage/perfschema ${B}/storage/innobase ${D}${PTEST_PATH}/storage \ |
| 21 | --exclude CMakeFiles \ |
| 22 | --exclude cmake_install.cmake \ |
| 23 | --exclude Makefile \ |
| 24 | --exclude=*.a \ |
| 25 | --exclude=*.h \ |
| 26 | --exclude=*.o \ |
| 27 | --exclude=*.so \ |
| 28 | --exclude=*.d \ |
| 29 | --exclude=*.txt |
| 30 | cp -r ${B}/CTestTestfile.cmake ${D}${PTEST_PATH} |
| 31 | sed -i -e 's#${WORKDIR}##g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake` |
| 32 | } |
| 33 | |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 34 | DEPENDS += "mariadb-native bison-native boost libpcre2 curl ncurses \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 35 | zlib libaio libedit libevent libxml2 gnutls fmt lzo zstd" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 36 | |
| 37 | PROVIDES += "mysql5 libmysqlclient" |
| 38 | |
| 39 | RPROVIDES:${PN} += "mysql5" |
| 40 | RREPLACES:${PN} += "mysql5" |
| 41 | RCONFLICTS:${PN} += "mysql5" |
| 42 | |
| 43 | RPROVIDES:${PN}-dbg += "mysql5-dbg" |
| 44 | RREPLACES:${PN}-dbg += "mysql5-dbg" |
| 45 | RCONFLICTS:${PN}-dbg += "mysql5-dbg" |
| 46 | |
| 47 | RPROVIDES:${PN}-leftovers += "mysql5-leftovers" |
| 48 | RREPLACES:${PN}-leftovers += "mysql5-leftovers" |
| 49 | RCONFLICTS:${PN}-leftovers += "mysql5-leftovers" |
| 50 | |
| 51 | RPROVIDES:${PN}-client += "mysql5-client" |
| 52 | RREPLACES:${PN}-client += "mysql5-client" |
| 53 | RCONFLICTS:${PN}-client += "mysql5-client" |
| 54 | |
| 55 | RPROVIDES:${PN}-server += "mysql5-server" |
| 56 | RREPLACES:${PN}-server += "mysql5-server" |
| 57 | RCONFLICTS:${PN}-server += "mysql5-server" |