mariadb/debian
Otto Kekäläinen f4adf35474
Misc Debian/Salsa-CI fixes (#2299)
* Deb: Handle codename 'n/a' from Debian Sid properly and autobake-deb cleanup

This fixes autobake-deb.sh builds on Sid which was visible as 4 failing
build steps on Salsa-CI.

- In Sid the LSBNAME might evaluate to 'n/a', so accept it as 'Sid' to
  fix builds that failed with error:

    Error - unknown release codename n/a

- Refactor list to have Ubuntu versions first, then Debian, and as last
  the special case of Debian Sid

- Fix minor syntax issues detected by Shellcheck

Also remove useless DEB_HOST_ARCH_CPU check from debian/rules:
* It was never in effect as the 'sed' in autobake-deb.sh cleared it anyway
* The variable name was wrong and always empty
* If variable would have been correct, logic was still reversed

- Define 3h timeout as the default 1h timeout on Gitlab.com (and others)
  is usually not enough for initial (uncached) MariaDB builds.

- Replace Buster to Bookworm/Sid upgrade testing with upgrade inside Buster
  testing as direct upgrades from Stretch to Bullseye and Buster to Bookworm
  are no longer possible due to:

    Bug#993755: libcrypt.so.1: cannot open shared object file when
    upgrading from Stretch to Sid (https://bugs.debian.org/993755)

- Stop ignoring MariaDB.org 10.6 to this version upgrade testing failures
  to reveal bug MDEV-28640. Originally this step was failing as the uring
  dependencies in upstream builders lagged behind and there was nothing
  that needed work, only time time to resolve. Now there is an actual bug
  in packaging that should be visible as a CI failure.

- Stop testing for 'service mysql status' on systems that upgraded from
  MySQL 8.0 to MariaDB.org vended 10.6. Due to some unidentified debian/control
  changes in 10.6 on upstream the upgrade is no longer compatible in
  a way that would maintain the init.d script with name 'mysql'.

- Fix typos where mergers had changed occurrences of 10.5 to 10.6 while
  they intentionally need to be exactly 10.5, otherwise the meaning
  changes.

- Align autopkgtest code with downstream official Debian packaging one.
  This is change is safe on a stable branch because is only affects builds
  and testing, not any actual usage of MariaDB 10.6.

- Standardize on using capitalized 'YES' in CMake build options
  (instead of 'yes' or mixed case)

- Add some comments to better document debian/rules

- Fix typo in Lintian overrides

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/mariadb-10.6/+bug/1970634
MariaDB ticket: https://jira.mariadb.org/browse/MDEV-25633

When built with LTO on Ubuntu, MariaDB does not catch an exception when
the uring initialization fails due to a low RLIMIT_MEMLOCK value.

This commit amends the commit 0609b34555
to be identical to the one done downstream in Debian:
8d20ca979c

This way both the inline comments and 'git blame' for this section will
show properly why this is needed, and the fix is one that is fully tested
on Debian and Ubuntu.

Also having this section fully identical in upstream MariaDB and downstream
Debian will make the packaging maintenance easier as 'diff` runs on this
file will not flag this as a difference anymore.

In MDEV-28640 the init script failed to stop/start the MariaDB server
due to missing mysqladmin on the system. This was however very hard to
spot from the console output.

Add an explicit check for the binary the script depends on, and fail
verbosely if the dependency is missing.
2022-11-11 07:51:34 +00:00
..
additions MDEV-28376: Make sure available Perl MariaDB DBI driver is chosen 2022-05-24 10:57:13 +10:00
po Merge 10.5 into 10.6 2021-10-13 13:28:12 +03:00
source Misc Debian/Salsa-CI fixes (#2299) 2022-11-11 07:51:34 +00:00
tests Misc Debian/Salsa-CI fixes (#2299) 2022-11-11 07:51:34 +00:00
apparmor-profile
autobake-deb.sh Misc Debian/Salsa-CI fixes (#2299) 2022-11-11 07:51:34 +00:00
changelog Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
compat
control Merge 10.3 into 10.4 2022-06-27 10:14:37 +03:00
copyright
gbp.conf
libmariadb-dev-compat.install MDEV-6284: Correctly place files in libmariadb-dev, libmariadbd-dev etc packages 2020-04-19 17:15:40 +03:00
libmariadb-dev-compat.links MDEV-6284: Correctly place files in libmariadb-dev, libmariadbd-dev etc packages 2020-04-19 17:15:40 +03:00
libmariadb-dev.examples
libmariadb-dev.install MDEV-6284: Correctly place files in libmariadb-dev, libmariadbd-dev etc packages 2020-04-19 17:15:40 +03:00
libmariadb-dev.links MDEV-21303: Fix man page packaging for new mariadb-* named binaries 2020-04-05 00:24:24 +03:00
libmariadb-dev.lintian-overrides MDEV-21869: Add temporary Lintian overrides 2020-04-19 17:15:40 +03:00
libmariadb-dev.README.Maintainer
libmariadb3-compat.install
libmariadb3.install Merge remote-tracking branch 'origin/10.2' into 10.3 2021-02-25 12:16:13 +11:00
libmariadbclient18.install
libmariadbd-dev.install MDEV-6284: Correctly place files in libmariadb-dev, libmariadbd-dev etc packages 2020-04-19 17:15:40 +03:00
libmariadbd19.install
libmysqlclient18.install
mariadb-backup.install Revert "MDEV-21303 Make executables MariaDB named" 2020-03-24 02:39:32 +01:00
mariadb-backup.links Revert "MDEV-21303 Make executables MariaDB named" 2020-03-24 02:39:32 +01:00
mariadb-client-10.6.docs Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-client-10.6.install Deb: Move client programs to client package from MariaDB server package 2021-04-16 17:19:06 +10:00
mariadb-client-10.6.links Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-client-10.6.manpages Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-client-10.6.menu Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-client-10.6.README.Debian Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-client-core-10.6.install Deb: Move my_print_defaults to MariaDB client core package 2021-04-16 17:19:06 +10:00
mariadb-client-core-10.6.links Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-common.dirs MDEV-19933: Sync mariadb-common and update-alternatives based /etc/mysql/ 2020-06-10 13:24:18 +03:00
mariadb-common.install
mariadb-common.postinst Deb: Fix upgrade from Percona.com by ensuring server uses mariadb.cnf 2021-01-03 21:14:32 +02:00
mariadb-common.postrm MDEV-19933: Sync mariadb-common and update-alternatives based /etc/mysql/ 2020-06-10 13:24:18 +03:00
mariadb-plugin-connect.install Merge 10.4 into 10.5 2021-06-08 16:03:53 +03:00
mariadb-plugin-cracklib-password-check.install Deb: Misc ColumnStore Debian packaging improvements 2020-07-10 21:56:14 +03:00
mariadb-plugin-gssapi-client.install MDEV-22053: Pass INSTALL_LAYOUT "DEB" correctly to CONC (libmariadb) 2020-04-13 14:33:50 +03:00
mariadb-plugin-gssapi-server.install MDEV-28605: Change wrong plugin config installation location (#2160) 2022-09-07 14:05:09 +01:00
mariadb-plugin-mroonga.install
mariadb-plugin-mroonga.postinst
mariadb-plugin-mroonga.prerm Deb: Fix executable bit so dh-exec works (regression in fd2dc9c3fd) 2020-03-18 22:49:55 +02:00
mariadb-plugin-oqgraph.install MDEV-28605: Change wrong plugin config installation location (#2160) 2022-09-07 14:05:09 +01:00
mariadb-plugin-rocksdb.install Merge 10.3 into 10.4 2022-09-13 16:36:38 +03:00
mariadb-plugin-rocksdb.links Revert "MDEV-21303 Make executables MariaDB named" 2020-03-24 02:39:32 +01:00
mariadb-plugin-s3.install Add man page for new command aria_s3_copy 2020-07-08 12:24:55 +03:00
mariadb-plugin-spider.install post-fix for #1504 2020-06-12 01:17:57 +02:00
mariadb-server-10.6.config Deb: Rename mariadb.init 10.5->10.6 on 10.6 branch 2021-03-11 10:21:52 +02:00
mariadb-server-10.6.dirs Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-server-10.6.install Deb: Move client programs to client package from MariaDB server package 2021-04-16 17:19:06 +10:00
mariadb-server-10.6.links Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-server-10.6.logcheck.ignore.paranoid Merge branch '10.5' into 10.6 2020-07-04 11:53:26 +02:00
mariadb-server-10.6.logcheck.ignore.server Merge branch '10.5' into 10.6 2020-07-04 11:53:26 +02:00
mariadb-server-10.6.logcheck.ignore.workstation Merge branch '10.5' into 10.6 2020-07-04 11:53:26 +02:00
mariadb-server-10.6.mariadb.init Misc Debian/Salsa-CI fixes (#2299) 2022-11-11 07:51:34 +00:00
mariadb-server-10.6.mysql-server.logrotate Merge 10.5 into 10.6 2021-12-04 12:42:29 +02:00
mariadb-server-10.6.mysql.default Merge 10.5 into 10.6 2021-06-09 16:50:58 +03:00
mariadb-server-10.6.postinst MDEV-28194: Remove unneeded path from MariaDB server postinst script 2022-04-12 13:28:30 +10:00
mariadb-server-10.6.postrm Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
mariadb-server-10.6.preinst Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
mariadb-server-10.6.prerm Merge branch '10.5' into 10.6 2020-07-04 11:53:26 +02:00
mariadb-server-10.6.README.Debian Merge 10.5 into 10.6 2021-06-09 16:50:58 +03:00
mariadb-server-10.6.templates Merge 10.5 into 10.6 2021-03-18 15:46:28 +02:00
mariadb-server-10.6.triggers Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-server-core-10.6.install Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
mariadb-server-core-10.6.links Deb: Rename relevant occurrences of 10.5 to 10.6 now in 10.6 series 2020-05-14 19:43:26 +03:00
mariadb-test-data.install MDEV-25288 follow-up: Remove traces of unstable-tests 2021-06-11 15:59:02 +03:00
mariadb-test-data.lintian-overrides Merge 10.5 into 10.6 2022-06-14 09:49:47 +03:00
mariadb-test.install Merge 10.5 into 10.6 2021-10-13 13:28:12 +03:00
mariadb-test.links MDEV-22010: use executables MariaDB named in scripts 2021-06-14 15:10:47 +05:30
mariadb-test.lintian-overrides MDEV-28642: Suspend obvious false-positive Lintian warnings 2022-06-13 17:14:50 +10:00
mysql-common.dirs
mysql-common.links post-fix for #1504 2020-06-12 01:17:57 +02:00
mysql-common.postrm MDEV-21869: Make Debian packaging Lintian clean 2020-04-19 17:15:40 +03:00
not-installed MDEV-5536: Debian systemd socket activation 2021-03-28 13:53:55 +11:00
rules Misc Debian/Salsa-CI fixes (#2299) 2022-11-11 07:51:34 +00:00
salsa-ci.yml Misc Debian/Salsa-CI fixes (#2299) 2022-11-11 07:51:34 +00:00