diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/mariadb-server-10.7.postinst | 2 | ||||
-rw-r--r-- | debian/mariadb-test.install | 1 | ||||
-rw-r--r-- | debian/po/de.po | 2 | ||||
-rw-r--r-- | debian/po/es.po | 2 | ||||
-rw-r--r-- | debian/po/it.po | 2 | ||||
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/salsa-ci.yml | 107 | ||||
-rw-r--r-- | debian/tests/control | 2 | ||||
-rw-r--r-- | debian/tests/upstream | 6 |
10 files changed, 85 insertions, 45 deletions
diff --git a/debian/control b/debian/control index 22f0bea2b7b..683198ab9e0 100644 --- a/debian/control +++ b/debian/control @@ -629,7 +629,7 @@ Recommends: libhtml-template-perl Pre-Depends: adduser (>= 3.40), debconf, mariadb-common (>= ${source:Version}) -Depends: galera-4 (>=26.4), +Depends: galera-4 (>= 26.4), gawk, iproute2 [linux-any], libdbi-perl, diff --git a/debian/mariadb-server-10.7.postinst b/debian/mariadb-server-10.7.postinst index 23fa348693b..13800b7bce2 100644 --- a/debian/mariadb-server-10.7.postinst +++ b/debian/mariadb-server-10.7.postinst @@ -161,7 +161,7 @@ EOF # Clean up old flags before setting new one rm -f $mysql_datadir/debian-*.flag # Flag data dir to avoid downgrades - touch $mysql_datadir/debian-10.7.flag + touch "$mysql_datadir/debian-$MAJOR_VER.flag" # initiate databases. Output is not allowed by debconf :-( # This will fail if we are upgrading an existing database; in this case diff --git a/debian/mariadb-test.install b/debian/mariadb-test.install index 97384bd7ef1..36b49bdab97 100644 --- a/debian/mariadb-test.install +++ b/debian/mariadb-test.install @@ -5,6 +5,7 @@ usr/bin/mariadb-test-embedded usr/lib/*/libmariadb3/plugin/auth_test_plugin.so usr/lib/*/libmariadb3/plugin/qa_auth_client.so usr/lib/*/libmariadb3/plugin/qa_auth_interface.so +usr/lib/*/libmariadb3/plugin/test_sql_service.so usr/lib/mysql/plugin/adt_null.so usr/lib/mysql/plugin/auth_0x0100.so usr/lib/mysql/plugin/auth_test_plugin.so diff --git a/debian/po/de.po b/debian/po/de.po index a8f8cad1787..fdbd3f2986a 100644 --- a/debian/po/de.po +++ b/debian/po/de.po @@ -10,7 +10,7 @@ msgstr "" "POT-Creation-Date: 2019-07-23 19:16-0300\n" "PO-Revision-Date: 2016-05-12 22:39+0100\n" "Last-Translator: Chris Leick <c.leick@vollbio.de>\n" -"Language-Team: german <debian-l10n-german@lists.debian.org>\n" +"Language-Team: German <debian-l10n-german@lists.debian.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff --git a/debian/po/es.po b/debian/po/es.po index 043ab9a2ab6..82f1a8ed576 100644 --- a/debian/po/es.po +++ b/debian/po/es.po @@ -1,4 +1,4 @@ -# mariadb translation to spanish +# MariaDB translation to Spanish # Copyright (C) 2005-2016 Software in the Public Interest, SPI Inc. # This file is distributed under the same license as the mariadb package. # diff --git a/debian/po/it.po b/debian/po/it.po index 1adfc8bbf24..eeef6960313 100644 --- a/debian/po/it.po +++ b/debian/po/it.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: mariadb-10.7 10.0.13 italian debconf templates\n" +"Project-Id-Version: mariadb-10.7 10.0.13 Italian debconf templates\n" "Report-Msgid-Bugs-To: mariadb-10.7@packages.debian.org\n" "POT-Creation-Date: 2019-07-23 19:16-0300\n" "PO-Revision-Date: 2017-083-20 20:29+0100\n" diff --git a/debian/rules b/debian/rules index 2f6938b04a4..1f26f8ce6e7 100755 --- a/debian/rules +++ b/debian/rules @@ -34,8 +34,8 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) else - # NUMJOBS cannot be empty as it is used as a parameter to mtr, default to 1. - NUMJOBS = 1 + # NUMJOBS cannot be empty as it is used as a parameter to mtr, default to 'auto'. + NUMJOBS = auto endif # RocksDB cannot build on 32-bit platforms diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml index 0039e1be393..6d829021b40 100644 --- a/debian/salsa-ci.yml +++ b/debian/salsa-ci.yml @@ -21,7 +21,7 @@ stages: - build - test - upgrade in Sid - - upgrade from Buster/Stretch + - upgrade from Bullseye/Buster/Stretch - upgrade extras - test extras - publish # Stage referenced by Salsa-CI template aptly stanza, so must exist even though not used @@ -46,6 +46,11 @@ build: - ccache -s # Show ccache stats to validate it worked - mv ${CCACHE_TMP_DIR} ${CCACHE_WORK_DIR} || true +build bullseye-backports: + extends: .build-package + variables: + RELEASE: bullseye-backports + build buster-backports: extends: .build-package script: @@ -114,7 +119,6 @@ blhc: stage: test extras needs: - job: build native deb - artifacts: true # In addition to Salsa-CI, also run these fully MariaDB specific build jobs @@ -135,9 +139,10 @@ blhc: dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed service mysql status || service mariadb status # Early MariaDB 10.5 only had 'mariadb' mysql --skip-column-names -e "select @@version, @@version_comment" # Show version - echo 'SHOW DATABASES;' | mysql # List databases before upgrade - mysql -e "SELECT Host, User, plugin,authentication_string FROM user;" mysql - mysql -e "SELECT * FROM plugin;" mysql + mysql --table -e 'SHOW DATABASES;' # List databases before upgrade + mysql --table -e "SELECT host,user,plugin,authentication_string FROM user;" mysql + mysql --table -e "SELECT * FROM plugin;" mysql + mysql --table -e "SHOW PLUGINS;" mysql .test-enable-sid-repos: &test-enable-sid-repos | # Replace any old repos with just Sid @@ -159,10 +164,12 @@ blhc: cp -ra /etc/mysql debug/etc-mysql cp -ra /var/log/mysql debug/var-log-mysql mariadb --skip-column-names -e "select @@version, @@version_comment" # Show version - echo 'SHOW DATABASES;' | mariadb # List databases - mariadb -e "create database test; use test; create table t(a int primary key) engine=innodb; insert into t values (1); select * from t; drop table t; drop database test;" # Test that InnoDB works - mariadb -e "SELECT Host, User, plugin,authentication_string FROM user;" mysql - mariadb -e "SELECT * FROM plugin;" mysql + mariadb --table -e 'SHOW DATABASES;' # List databases + mariadb --table -e "SELECT host,user,plugin,authentication_string FROM user;" mysql + mariadb --table -e "SELECT * FROM plugin;" mysql + mariadb --table -e "SHOW PLUGINS;" mysql + # Test that InnoDB works and that command 'mysql' is also still usable + mysql -e "CREATE DATABASE test; USE test; CREATE TABLE t(a INT PRIMARY KEY) ENGINE=INNODB; INSERT INTO t VALUEs (1); SELECT * FROM t; DROP TABLE t; DROP DATABASE test;" .test-verify-libs: &test-verify-libs # Don't use a collapsed command as Gitlab-CI would hide each command from the output @@ -214,7 +221,6 @@ fresh install: stage: test needs: - job: build - artifacts: true image: debian:${RELEASE} artifacts: when: always @@ -236,7 +242,6 @@ mariadb-10.7 Sid upgrade: stage: upgrade in Sid needs: - job: build - artifacts: true image: debian:${RELEASE} artifacts: when: always @@ -254,11 +259,36 @@ mariadb-10.7 Sid upgrade: variables: - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ +mariadb-10.5 Bullseye to mariadb-10.7 upgrade: + stage: upgrade from Bullseye/Buster/Stretch + needs: + - job: build + image: debian:bullseye + artifacts: + when: always + name: "$CI_BUILD_NAME" + paths: + - ${WORKING_DIR}/debug + script: + - *test-prepare-container + # Install everything MariaDB currently in Debian Bullseye + - apt-get install -y 'default-mysql*' 'mariadb-*' 'libmariadb*' + # Verify installation of MariaDB from Bullseye + - *test-verify-initial + - *test-enable-sid-repos + - *test-install + - service mariadb status + - *test-verify-final + variables: + GIT_STRATEGY: none + except: + variables: + - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ + mariadb-10.3 Buster to mariadb-10.7 upgrade: - stage: upgrade from Buster/Stretch + stage: upgrade from Bullseye/Buster/Stretch needs: - job: build - artifacts: true image: debian:buster artifacts: when: always @@ -282,10 +312,9 @@ mariadb-10.3 Buster to mariadb-10.7 upgrade: - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ mariadb-10.1 Stretch to mariadb-10.7 upgrade: - stage: upgrade from Buster/Stretch + stage: upgrade from Bullseye/Buster/Stretch needs: - job: build - artifacts: true image: debian:stretch artifacts: when: always @@ -299,8 +328,7 @@ mariadb-10.1 Stretch to mariadb-10.7 upgrade: - apt-get install -y 'default-mysql*' 'mariadb-*' 'libmariadbd*' 'libmariadbclient*' # Verify installation of MariaDB from Stretch - *test-verify-initial - # Remove manpages 4.10 that conflicts with manpages-dev 5.10 on console_ioctl.4.gz - - apt-get remove -y manpages + - apt-get remove -y manpages # Workaround for Bug#99375 - *test-enable-sid-repos - *test-install - service mysql status @@ -315,7 +343,6 @@ test basic features: stage: test needs: - job: build - artifacts: true image: debian:${RELEASE} artifacts: when: always @@ -399,7 +426,6 @@ build mariadbclient consumer Python-MySQLdb: stage: test needs: - job: build - artifacts: true image: debian:${RELEASE} script: - *test-prepare-container @@ -421,7 +447,6 @@ libmysql* to libmariadb* upgrade: stage: upgrade in Sid needs: - job: build - artifacts: true image: debian:${RELEASE} artifacts: when: always @@ -455,7 +480,6 @@ default-libmysqlclient-dev Sid upgrade: stage: upgrade in Sid needs: - job: build - artifacts: true image: debian:${RELEASE} artifacts: when: always @@ -473,10 +497,9 @@ default-libmysqlclient-dev Sid upgrade: - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ default-libmysqlclient-dev Buster upgrade: - stage: upgrade from Buster/Stretch + stage: upgrade from Bullseye/Buster/Stretch needs: - job: build - artifacts: true image: debian:buster artifacts: when: always @@ -495,10 +518,9 @@ default-libmysqlclient-dev Buster upgrade: - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ default-libmysqlclient-dev Stretch upgrade: - stage: upgrade from Buster/Stretch + stage: upgrade from Bullseye/Buster/Stretch needs: - job: build - artifacts: true image: debian:stretch artifacts: when: always @@ -509,14 +531,37 @@ default-libmysqlclient-dev Stretch upgrade: - *test-prepare-container - apt-get install -y pkg-config default-libmysqlclient-dev - pkg-config --list-all - # Remove manpages 4.10 that conflicts with manpages-dev 5.10 on console_ioctl.4.gz - - apt-get remove -y manpages + - apt-get remove -y manpages # Workaround for Bug#99375 + - *test-enable-sid-repos + - *test-install-all-libs + - *test-verify-libs + except: + variables: + - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ + +mariadb-connector-c Stretch upgrade: + stage: upgrade from Bullseye/Buster/Stretch + needs: + - job: build + image: debian:stretch + artifacts: + when: always + name: "$CI_BUILD_NAME" + paths: + - ${WORKING_DIR}/debug + script: + - *test-prepare-container + - apt-get install -y pkg-config libmariadb2 libmariadb-dev libmariadb-dev-compat + - pkg-config --list-all + - apt-get remove -y manpages # Workaround for Bug#99375 - *test-enable-sid-repos - *test-install-all-libs - *test-verify-libs except: variables: - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ + allow_failure: true + # Upgrading libc from Stretch to Bookworm is not possible due to Bug#993755 # Upgrading from MySQL 8.0 with datadir in place is not possible. Users need to do a data dump. # The Debian maintainer scripts detect this situation and simply moves old datadir aside and start fresh. @@ -524,7 +569,6 @@ mysql-8.0 Sid to mariadb-10.7 upgrade: stage: upgrade in Sid needs: - job: build - artifacts: true image: debian:sid artifacts: when: always @@ -552,7 +596,6 @@ mysql-8.0 Focal to mariadb-10.7 upgrade: stage: upgrade extras needs: - job: build buster-backports - artifacts: true image: debian:buster artifacts: when: always @@ -587,7 +630,6 @@ mariadb.org-10.5 to mariadb-10.7 upgrade: stage: upgrade extras needs: - job: build - artifacts: true image: debian:sid artifacts: when: always @@ -626,7 +668,6 @@ mariadb.org-10.4 to mariadb-10.7 upgrade: stage: upgrade extras needs: - job: build - artifacts: true image: debian:sid artifacts: when: always @@ -659,7 +700,6 @@ mariadb.org-10.3 to mariadb-10.7 upgrade: stage: upgrade extras needs: - job: build - artifacts: true image: debian:sid artifacts: when: always @@ -695,7 +735,6 @@ mariadb.org-10.2 to mariadb-10.7 upgrade: stage: upgrade extras needs: - job: build - artifacts: true image: debian:sid artifacts: when: always @@ -731,7 +770,6 @@ mysql.com-5.7 to mariadb-10.7 upgrade: stage: upgrade extras needs: - job: build buster-backports - artifacts: true image: debian:buster artifacts: when: always @@ -763,7 +801,6 @@ percona-xtradb-5.7 to mariadb-10.7 upgrade (MDEV-22679): stage: upgrade extras needs: - job: build buster-backports - artifacts: true image: debian:buster artifacts: when: always diff --git a/debian/tests/control b/debian/tests/control index b596e57c816..1d5ff57bbfb 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -7,5 +7,5 @@ Depends: mariadb-plugin-rocksdb | mariadb-server-10.7 Restrictions: allow-stderr needs-root isolation-container Tests: upstream -Depends: mariadb-test +Depends: mariadb-test, eatmydata Restrictions: allow-stderr breaks-testbed diff --git a/debian/tests/upstream b/debian/tests/upstream index 51b0a60a0ac..f216df24371 100644 --- a/debian/tests/upstream +++ b/debian/tests/upstream @@ -59,7 +59,9 @@ fi cd /usr/share/mysql/mysql-test echo "starting mysql-test-tun.pl..." -perl -I. ./mysql-test-run.pl --suite=main --vardir="$WORKDIR/var" --tmpdir="$WORKDIR/tmp" \ +eatmydata perl -I. ./mysql-test-run.pl --suite=main \ + --vardir="$WORKDIR/var" --tmpdir="$WORKDIR/tmp" \ --parallel=auto --skip-rpl \ - --force --skip-test-list=$SKIP_TEST_LST $@ 2>&1 + --force --skip-test-list=$SKIP_TEST_LST \ + --xml-report=$AUTOPKGTEST_ARTIFACTS/mysql-test-run-junit.xml $@ 2>&1 echo "run: OK" |