summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/mysql/mariadb
Commit message (Collapse)AuthorAgeFilesLines
* mariadb: redefine log-error itemMingli Yu2021-07-301-1/+1
| | | | | | | | | | | | | | | | | | | The log-error item which defined in my.cnf is "/var/log/mysqld.err" previouly and it's not consistent with which created in install_db service file which will call mysql-systemd-start to create the file "/var/log/mysqld.log". And it fails when boot with sysvinit as below: $ service mysqld start Starting MariaDB.210727 04:05:03 mysqld_safe Logging to '/var/log/mysqld.err'. 210727 04:05:03 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql /usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.err' (Errcode: 13 "Permission denied") So make the log-error item consistent to fix the above failure and also remove the related workaround when boot with systemd. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Upgrade to 10.5.11Zoltán Böszörményi2021-07-081-1/+1
| | | | | | | Forward port musl patches Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Use qemu to run cross-compiled binariesZoltán Böszörményi2021-07-082-92/+0
| | | | | | | This way, mariadb does not depend on mariadb-native anymore. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Fix build with clang/muslKhem Raj2021-06-181-0/+11
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Include missing sys/type.h for ssize_tKhem Raj2021-06-011-0/+15
| | | | | | | | | | | | | musl finds this problem in sources where its missing to include needed system header for ssize_t Fixes wsrep-lib/include/wsrep/gtid.hpp:80:5: error: unknown type name 'ssize_t'; did you mean 'size_t'? ssize_t scan_from_c_str(const char* buf, size_t buf_len, ^~~~~~~ size_t Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Upgrade to 10.5.10Khem Raj2021-05-113-52/+7
| | | | | | | | | Drop fix-a-building-failure.patch because upstream has made is narrower to apply to emulator builds and not just any cross compiling builds Add missing dependency on boost Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Fix configureAndreas Müller2021-05-111-0/+35
| | | | | | | Assume recent CMake upgrade made this pop up. Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Fix build on newer 32bit architecturesKhem Raj2021-04-062-0/+65
| | | | | | | | newer 32bit arches e.g. RV32 and ARC do not have __NR_io_getevents syscall and have started of with 64bit time_t so there is no 32bit version Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: upgrade 10.5.8 -> 10.5.9wangmy2021-04-062-46/+8
| | | | | | | | | refresh c11_atomics.patch remove 0001-stacktrace-t.c-make-the-test-conditional.patch since it is included in 10.5.9 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Fix build on musl/ppcKhem Raj2021-03-131-0/+50
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: upgrade to 10.5.8Mingli Yu2021-01-272-7/+45
| | | | | | | | | | | | | | | | Fixes for the following security vulnerabilities: CVE-2020-14812 CVE-2020-14765 CVE-2020-14776 CVE-2020-14789 CVE-2020-28912 (MDEV-24040) Rebase c11_atomics.patch to avoid fuzz warnings and add a patch to fix below build error on musl. /prj/tmp/work/cortexa57-poky-linux-musl/mariadb/10.5.8-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux-musl/../../libexec/aarch64-poky-linux-musl/gcc/aarch64-poky-linux-musl/10.2.0/ld.bfd: /usr/src/debug/mariadb/10.5.8-r0/mariadb-10.5.8/unittest/mysys/stacktrace-t.c:36: undefined reference to `my_safe_print_str' Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Fix build on 32bit arches with 64bit time_tKhem Raj2020-11-151-0/+37
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Upgrade to 10.5.6Mingli Yu2020-10-142-50/+2
| | | | | | | | | | Fixes for the following security vulnerabilities: - CVE-2020-15180 Rebase one patch and remove one backported patch Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: upgrade to 10.5.4Mingli Yu2020-07-284-55/+88
| | | | | | | | | | | | | | | | | * Remove one backported patch * Remove SRC_URI[md5sum] * Rebase two patches to fix fuzz warnings * Add curl depends to fix below error: | ./mariadb-10.5.4/storage/maria/libmarias3/libmarias3/marias3.h:26:10: fatal error: curl/curl.h: No such file or directory * update the pam_user_map.so install logic as below commit introduced in this new mariadb version 236aed3f5f0 MDEV-21656: Wrong directory for pam_user_map.so JIRA:https://jira.mariadb.org/browse/MDEV-17292 * Backport a patch to fix the undefined reference to `crc32c_arm64' on arm64 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Upgrade to 10.4.12Mingli Yu2020-04-091-5/+10
| | | | | | | | | | | | | | | * Fixes for the following security vulnerabilities: CVE-2020-2574 CVE-2020-7221 * Rework fix-arm-atomic.patch to remove fuzz warnings * Fix the warning when pam is enabled in DISTRO_FEATURES: WARNING: mariadb-10.4.12-r0 do_package_qa: QA Issue: mariadb-dbg: found library in wrong location: /lib/security/.debug/pam_user_map.so mariadb-leftovers: found library in wrong location: /lib/security/pam_user_map.so [libdir] Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: fix library LZ4 lookupSumit Garg2020-01-131-0/+30
| | | | | | | | | | While cross-compiling mariadb package it tries to link lz4 library present in the target sysroot and if not found it tries to link host lz4 library which is incorrect leading to linker errors. So fix that via restricting lz4 library lookup to target sysroot only. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Upgrade to 10.4.11Khem Raj2019-12-292-7/+34
| | | | | | | | | Backport a rocksdb patch to fix clang error Refresh existing patches as needed Switch SRC_URI to downloads.mariadb.org since archive.mariadb.org is too slow if no mirrors are used Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: fix atomic support on armMingli Yu2019-03-151-0/+34
| | | | | | | | | | Check to link with libatomic to enable C11 atomics support to fix below build error on arm: | /build/tmp/work/armv5e-wrs-linux-gnueabi/mariadb/10.3.13-r0/recipe-sysroot-native/usr/bin/arm-wrs-linux-gnueabi/../../libexec/arm-wrs-linux-gnueabi/gcc/arm-wrs-linux-gnueabi/8.3.0/ld.bfd: librocksdblib.a(env_posix.cc.o): in function `std::__atomic_base<unsigned long long>::store(unsigned long long, std::memory_order)': | /usr/include/c++/8.3.0/bits/atomic_base.h:374: undefined reference to `__atomic_store_8' Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb: Upgrade to 10.3.13Mingli Yu2019-03-0611-258/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | Per https://mariadb.org/about/maintenance-policy/, mariadb 5.5.x series only supported until next year April 2020, so upgrade it to 10.3.13. Remove some deprecated patches, add some new patches to fix build failure and rework two patches to avoid fuzz warnings. Add -latomic to linker flags for armv5 Use -pthread to link for mussing atomic symbols on arches e.g. riscv Fixes issues like ld.bfd: librocksdblib.a(memtable.cc.o):/usr/include/c++/9.0.1/bits/atomic_base.h:438: more undefined references to `__atomic_compare_exchange_1' follow Fix build with musl add libxml2 to depends Fix build with clang Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mariadb(-native): refresh fix-mysqlclient-r-version.patchAndreas Müller2018-04-081-11/+10
| | | | | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* mysql: move to recipes-dbsArmin Kuster2018-03-0112-0/+480
Signed-off-by: Armin Kuster <akuster808@gmail.com>