mariadb.git
3 years ago[PATCH] MDEV-23915 ER_KILL_DENIED_ERROR not passed a thread id
Daniel Black [Tue, 22 Feb 2022 23:10:01 +0000 (10:10 +1100)]
[PATCH] MDEV-23915 ER_KILL_DENIED_ERROR not passed a thread id

The 10.5 test error main.grant_kill showed up a incorrect
thread id on a big endian architecture.

The cause of this is the sql_kill_user function assumed the
error was ER_OUT_OF_RESOURCES, when the the actual error was
ER_KILL_DENIED_ERROR. ER_KILL_DENIED_ERROR as an error message
requires a thread id to be passed as unsigned long, however a
user/host was passed.

ER_OUT_OF_RESOURCES doesn't even take a user/host, despite
the optimistic comment. We remove this being passed as an
argument to the function so that when MDEV-21978 is implemented
one less compiler format warning is generated (which would
have caught this error sooner).

Thanks Otto for reporting and Marko for analysis.

Gbp-Pq: Name 2028-MDEV-23915-fix-test-main.grat_kill.patch

3 years ago[PATCH] MDEV-26645: Fix UB in Item_func_plus and Item_func_minus
Marko Mäkelä [Fri, 18 Feb 2022 14:31:54 +0000 (16:31 +0200)]
[PATCH] MDEV-26645: Fix UB in Item_func_plus and Item_func_minus

An integer overflow in an expression like a+b or a-b is undefined behavior.
The compiler is allowed to assume that no such overflow is possible,
and optimize away some code accordingly.

Item_func_plus::int_op(), Item_func_minus::int_op(): Always check
for overflow.

Depending on the compiler and the compilation options, a test might fail:

CURRENT_TEST: main.func_math
mysqltest: At line 425: query 'SELECT 9223372036854775807 + 9223372036854775807' succeeded - should have failed with errno 1690...

A similar bug had been fixed earlier in
commit 328edf8560dbf1941ce314fa112e0db05d9f97f1.

This commit was backported from MariaDB 10.9 to Debian with MariaDB 10.6.

Gbp-Pq: Name MDEV-26645-fix-test-main.func_math.patch

3 years ago[PATCH] MDEV-25785 Add support for OpenSSL 3.0
Debian MySQL Maintainers [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
[PATCH] MDEV-25785 Add support for OpenSSL 3.0

Summary of changes

- MD_CTX_SIZE is increased

- EVP_CIPHER_CTX_buf_noconst(ctx) does not work anymore, points
  to nobody knows where. The assumption made previously was that
  (since the function does not seem to be documented)
  was that it points to the last partial source block.
  Add own partial block buffer for NOPAD encryption instead

- SECLEVEL in CipherString in openssl.cnf
  had been downgraded to 0, from 1, to make TLSv1.0 and TLSv1.1 possible

- Workaround Ssl_cipher_list issue, it now returns TLSv1.3 ciphers,
  in addition to what was set in --ssl-cipher

- ctx_buf buffer now must be aligned to 16 bytes with openssl(
  previously with WolfSSL only), or crashes will happen

- updated aes-t , to be better debuggable
  using function, rather than a huge multiline macro
  added test that does "nopad" encryption piece-wise, to test
  replacement of EVP_CIPHER_CTX_buf_noconst

Gbp-Pq: Name openssl-3-compatibility.patch

3 years ago[PATCH] Revert "don't build with OpenSSL 3.0, it doesn't work before MDEV-25785"
Oleksandr Byelkin [Fri, 4 Feb 2022 13:52:03 +0000 (14:52 +0100)]
[PATCH] Revert "don't build with OpenSSL 3.0, it doesn't work before MDEV-25785"

This reverts commit c9beef43154a199bfcd9f71049c011a2ed77ca74, because
we have OpenSSL 3.0 support here.

Gbp-Pq: Name openssl-3-enable.patch

3 years ago[PATCH] MDEV-27804 Fails to build - perf schema - thread id of type uintptr_t require...
Samuel Thibault [Tue, 8 Feb 2022 00:18:27 +0000 (00:18 +0000)]
[PATCH] MDEV-27804 Fails to build - perf schema - thread id of type uintptr_t requires header

While building on GNU/Hurd and kfreebsd.

On the C++ standard uintptr_t can be defined in <cstdint>
ref: https://www.cplusplus.com/reference/cstdint/

Fixes: 0d44792a835128a83ff07f14dbbcdd621df9f7da
Gbp-Pq: Name 2006-kfreebsd-amd64.patch

3 years ago[PATCH] cmake: add support for reproducible buildS . We should use relative path...
Sutou Kouhei [Sat, 5 Feb 2022 02:05:39 +0000 (11:05 +0900)]
[PATCH] cmake: add support for reproducible buildS . We should use relative path not absolute path. We can use target without breaking reproducibility.

Gbp-Pq: Name mroonga-mrn-lib-dirs-path-reproducible-build.patch

3 years agofix-reproducible-builds-rocksdb
Debian MySQL Maintainers [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
fix-reproducible-builds-rocksdb

Origin: upstream, https://github.com/facebook/rocksdb/commit/0a9a05ae12943b1529ef1eabbca5ce5a71c986bf

# Merged in RocksDB 6.19.3, but not updated into MariaDB 10.6
Bug: https://github.com/facebook/rocksdb/issues/7035
Author: Otto Kekäläinen <otto@kekalainen.net>
Subject: Make RocksDB build reproducible

The RocksDB binary included a string with the build timestamp:
> rocksdb_build_git_date:@2021-05-23·16:04:38@

As this changes from build to build, it makes the builds unreproducible.
Simply removing it solves the issue.

This temporary fix can be removed when a proper fix already done in upstream
lands in MariaDB when the RocksDB submodule is updated to a newer release.

Gbp-Pq: Name fix-reproducible-builds-rocksdb.patch

3 years ago[PATCH] MDEV-22659: Create one single unified and optimal logrotate config
Otto Kekäläinen [Wed, 30 Sep 2020 17:01:35 +0000 (20:01 +0300)]
[PATCH] MDEV-22659: Create one single unified and optimal logrotate config

Replace mysql-log-rotate.sh and debian/...mysql-server.logrotate with one
new unified and well documented version.

Name is mariadb.logrotate.in as in 10.6 branch we use now the 'mariadb'
name, and use 'logrotate' to match the actual name of the utility, and
use '.in' instead of '.sh' as this is not a shell script but a template
file.

Gbp-Pq: Name 1556.patch

3 years agoFix various spelling errors still found in code
Otto Kekäläinen [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
Fix various spelling errors still found in code

Gbp-Pq: Name fix-spelling-wsrep.patch

3 years agoFix various spelling errors still found in code Two upstream PRs remain that have...
Otto Kekäläinen [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
Fix various spelling errors still found in code  Two upstream PRs remain that have been merged, but not imported on MariaDB 10.6.

Gbp-Pq: Name fix-spelling-rocksdb.patch

3 years agoFix various spelling errors still found in code
Otto Kekäläinen [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
Fix various spelling errors still found in code

Gbp-Pq: Name fix-spelling-mariadb.patch

3 years agoFix perl path in scripts Fix Lintian issue https://lintian.debian.org/tags/incorrect...
Otto Kekäläinen [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
Fix perl path in scripts Fix Lintian issue https://lintian.debian.org/tags/incorrect-path-for-interpreter.html . Upstream will never accept this patch, see https://github.com/MariaDB/server/pull/1718

Gbp-Pq: Name env-perl-usr-bin-perl.patch

3 years agorocksdb-kfreebsd
Debian MySQL Maintainers [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
rocksdb-kfreebsd

Forwarded: https://github.com/facebook/rocksdb/pull/6992

# Merged in RocksDB 6.13.fb, but not updated into MariaDB 10.6
Forwarded: https://jira.mariadb.org/browse/MDEV-19251
Description:
 Upstream has merged this but we still need to wait for it to be included
 in a RocksDB release and imported into MariaDB and then into Debian.

Gbp-Pq: Name rocksdb-kfreebsd.patch

3 years agoChange the default optimization from -O3 to -O2 in mysql_release.cmake BUILD_CONFIG...
Ondřej Surý [Wed, 22 Nov 2017 20:32:51 +0000 (20:32 +0000)]
Change the default optimization from -O3 to -O2 in mysql_release.cmake BUILD_CONFIG profile

Forwarded: https://jira.mariadb.org/browse/MDEV-19734?focusedCommentId=156606&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-156606

Gbp-Pq: Name 0025-Change-the-default-optimization-from-O3-to-O2-in-mys.patch

3 years agomariadb-10.6 (1:10.6.7-3) unstable; urgency=medium
Otto Kekäläinen [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
mariadb-10.6 (1:10.6.7-3) unstable; urgency=medium

  * Fix syntax error in unstable tests lists
  * Forward patches upstream and update metadata for them
  * Bugfix: Include missing sql_parse.cc in ER_KILL_DENIED_ERROR patch
  * Fix mysql_install_db by reverting recent addition (MDEV-27980)
  * Fix htm use on PowerPC to fix build failure (might close #1006527)
  * Revert "Strip path from Mroonga to make the build reproducible"

[dgit import unpatched mariadb-10.6 1:10.6.7-3]

3 years agoImport mariadb-10.6_10.6.7-3.debian.tar.xz
Otto Kekäläinen [Thu, 10 Mar 2022 06:26:32 +0000 (06:26 +0000)]
Import mariadb-10.6_10.6.7-3.debian.tar.xz

[dgit import tarball mariadb-10.6 1:10.6.7-3 mariadb-10.6_10.6.7-3.debian.tar.xz]

3 years agoImport mariadb-10.6_10.6.7.orig.tar.gz
Otto Kekäläinen [Sun, 20 Feb 2022 00:00:00 +0000 (00:00 +0000)]
Import mariadb-10.6_10.6.7.orig.tar.gz

[dgit import orig mariadb-10.6_10.6.7.orig.tar.gz]