Commit 70be5991 authored by Otto Kekäläinen's avatar Otto Kekäläinen Committed by Daniel Black

Deb: Misc fixes for 10.11 series

- Prefer Breaks+Replaces over Conflicts+Replaces in debian/control.

- Clean away conflict/break/replace with self as it either has no
  effect or harmfully prevents upgrades to self (packages from this
  source version).

- Remove references to mariadb-server-10.11 as the package names no
  longer have versions and thus such references are unnecessary cruft.

- Apply 'wrap-and-sort -av' and minor typo fixing.

- Extend Salsa-CI to test for upgrades from 10.9 and 10.10 to 10.11.

- Add minimal required new Lintian overrides so Salsa-CI would not
  fail on Lintian.
parent cfaf47a4
...@@ -70,7 +70,7 @@ disable_pmem() ...@@ -70,7 +70,7 @@ disable_pmem()
disable_libfmt() disable_libfmt()
{ {
# 0.7+ required # 7.0+ required
sed '/libfmt-dev/d' -i debian/control sed '/libfmt-dev/d' -i debian/control
} }
......
...@@ -271,8 +271,7 @@ Depends: libmariadb3 (>= 10.5.4), ...@@ -271,8 +271,7 @@ Depends: libmariadb3 (>= 10.5.4),
mariadb-common (>= ${source:Version}), mariadb-common (>= ${source:Version}),
${misc:Depends}, ${misc:Depends},
${shlibs:Depends} ${shlibs:Depends}
Conflicts: mariadb-client (<< ${source:Version}), Conflicts: mariadb-client-10.0,
mariadb-client-10.0,
mariadb-client-10.1, mariadb-client-10.1,
mariadb-client-10.2, mariadb-client-10.2,
mariadb-client-10.3, mariadb-client-10.3,
...@@ -308,7 +307,8 @@ Conflicts: mariadb-client (<< ${source:Version}), ...@@ -308,7 +307,8 @@ Conflicts: mariadb-client (<< ${source:Version}),
mysql-client-core-5.7, mysql-client-core-5.7,
mysql-client-core-8.0, mysql-client-core-8.0,
virtual-mysql-client-core virtual-mysql-client-core
Breaks: mariadb-server-10.0, Breaks: mariadb-client (<< ${source:Version}),
mariadb-server-10.0,
mariadb-server-10.1, mariadb-server-10.1,
mariadb-server-core (<< ${source:Version}), mariadb-server-core (<< ${source:Version}),
mariadb-server-core-10.0, mariadb-server-core-10.0,
...@@ -384,7 +384,6 @@ Replaces: mariadb-client (<< ${source:Version}), ...@@ -384,7 +384,6 @@ Replaces: mariadb-client (<< ${source:Version}),
percona-xtradb-cluster-server-5.7, percona-xtradb-cluster-server-5.7,
virtual-mysql-client-core virtual-mysql-client-core
Provides: default-mysql-client-core, Provides: default-mysql-client-core,
mariadb-client-core-10.11,
virtual-mysql-client-core virtual-mysql-client-core
Description: MariaDB database core client binaries Description: MariaDB database core client binaries
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
...@@ -403,8 +402,7 @@ Depends: debianutils (>=1.6), ...@@ -403,8 +402,7 @@ Depends: debianutils (>=1.6),
${misc:Depends}, ${misc:Depends},
${perl:Depends}, ${perl:Depends},
${shlibs:Depends} ${shlibs:Depends}
Conflicts: mariadb-client (<< ${source:Version}), Conflicts: mariadb-client-10.0,
mariadb-client-10.0,
mariadb-client-10.1, mariadb-client-10.1,
mariadb-client-10.2, mariadb-client-10.2,
mariadb-client-10.3, mariadb-client-10.3,
...@@ -473,8 +471,7 @@ Breaks: mariadb-client-core (<< ${source:Version}), ...@@ -473,8 +471,7 @@ Breaks: mariadb-client-core (<< ${source:Version}),
percona-server-server-5.6, percona-server-server-5.6,
percona-xtradb-cluster-server-5.6, percona-xtradb-cluster-server-5.6,
percona-xtradb-cluster-server-5.7 percona-xtradb-cluster-server-5.7
Replaces: mariadb-client (<< ${source:Version}), Replaces: mariadb-client-10.0,
mariadb-client-10.0,
mariadb-client-10.1, mariadb-client-10.1,
mariadb-client-10.2, mariadb-client-10.2,
mariadb-client-10.3, mariadb-client-10.3,
...@@ -544,7 +541,6 @@ Replaces: mariadb-client (<< ${source:Version}), ...@@ -544,7 +541,6 @@ Replaces: mariadb-client (<< ${source:Version}),
percona-xtradb-cluster-server-5.7, percona-xtradb-cluster-server-5.7,
virtual-mysql-client virtual-mysql-client
Provides: default-mysql-client, Provides: default-mysql-client,
mariadb-client-10.11,
virtual-mysql-client virtual-mysql-client
Recommends: libdbd-mariadb-perl | libdbd-mysql-perl, Recommends: libdbd-mariadb-perl | libdbd-mysql-perl,
libdbi-perl, libdbi-perl,
...@@ -563,8 +559,7 @@ Architecture: any ...@@ -563,8 +559,7 @@ Architecture: any
Depends: mariadb-common (>= ${source:Version}), Depends: mariadb-common (>= ${source:Version}),
${misc:Depends}, ${misc:Depends},
${shlibs:Depends} ${shlibs:Depends}
Conflicts: mariadb-server-core (<< ${source:Version}), Conflicts: mariadb-server-core-10.0,
mariadb-server-core-10.0,
mariadb-server-core-10.1, mariadb-server-core-10.1,
mariadb-server-core-10.2, mariadb-server-core-10.2,
mariadb-server-core-10.3, mariadb-server-core-10.3,
...@@ -658,7 +653,6 @@ Replaces: mariadb-client (<< ${source:Version}), ...@@ -658,7 +653,6 @@ Replaces: mariadb-client (<< ${source:Version}),
percona-xtradb-cluster-server-5.7, percona-xtradb-cluster-server-5.7,
virtual-mysql-server-core virtual-mysql-server-core
Provides: default-mysql-server-core, Provides: default-mysql-server-core,
mariadb-server-core-10.11,
virtual-mysql-server-core virtual-mysql-server-core
Description: MariaDB database core server files Description: MariaDB database core server files
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
...@@ -695,8 +689,7 @@ Depends: galera-4 (>= 26.4), ...@@ -695,8 +689,7 @@ Depends: galera-4 (>= 26.4),
${misc:Depends}, ${misc:Depends},
${perl:Depends}, ${perl:Depends},
${shlibs:Depends} ${shlibs:Depends}
Conflicts: mariadb-server (<< ${source:Version}), Conflicts: mariadb-server-10.0,
mariadb-server-10.0,
mariadb-server-10.1, mariadb-server-10.1,
mariadb-server-10.2, mariadb-server-10.2,
mariadb-server-10.3, mariadb-server-10.3,
...@@ -739,7 +732,6 @@ Replaces: handlersocket-mysql-5.5, ...@@ -739,7 +732,6 @@ Replaces: handlersocket-mysql-5.5,
mariadb-client-10.6, mariadb-client-10.6,
mariadb-client-10.7, mariadb-client-10.7,
mariadb-client-10.8, mariadb-client-10.8,
mariadb-server (<< ${source:Version}),
mariadb-server-10.0, mariadb-server-10.0,
mariadb-server-10.1, mariadb-server-10.1,
mariadb-server-10.2, mariadb-server-10.2,
...@@ -771,7 +763,6 @@ Replaces: handlersocket-mysql-5.5, ...@@ -771,7 +763,6 @@ Replaces: handlersocket-mysql-5.5,
percona-xtradb-cluster-server-5.7, percona-xtradb-cluster-server-5.7,
virtual-mysql-server virtual-mysql-server
Provides: default-mysql-server, Provides: default-mysql-server,
mariadb-server-10.11,
virtual-mysql-server virtual-mysql-server
Description: MariaDB database server binaries Description: MariaDB database server binaries
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
......
# It's intentional that bzip2 compression plugin doesn't have symbols from libc # It's intentional that bzip2 compression plugin doesn't have symbols from libc
# More info https://jira.mariadb.org/browse/MDEV-28120 # More info https://jira.mariadb.org/browse/MDEV-28120
library-not-linked-against-libc usr/lib/mysql/plugin/provider_bzip2.so library-not-linked-against-libc [usr/lib/mysql/plugin/provider_bzip2.so]
\ No newline at end of file
# It's intentional that LZ4 compression plugin doesn't have symbols from libc # It's intentional that LZ4 compression plugin doesn't have symbols from libc
# More info https://jira.mariadb.org/browse/MDEV-28120 # More info https://jira.mariadb.org/browse/MDEV-28120
library-not-linked-against-libc usr/lib/mysql/plugin/provider_lz4.so library-not-linked-against-libc [usr/lib/mysql/plugin/provider_lz4.so]
\ No newline at end of file
# It's intentional that LZMA compression plugin doesn't have symbols from libc # It's intentional that LZMA compression plugin doesn't have symbols from libc
# More info https://jira.mariadb.org/browse/MDEV-28120 # More info https://jira.mariadb.org/browse/MDEV-28120
library-not-linked-against-libc usr/lib/mysql/plugin/provider_lzma.so library-not-linked-against-libc [usr/lib/mysql/plugin/provider_lzma.so]
\ No newline at end of file
# It's intentional that LZO compression plugin doesn't have symbols from libc # It's intentional that LZO compression plugin doesn't have symbols from libc
# More info https://jira.mariadb.org/browse/MDEV-28120 # More info https://jira.mariadb.org/browse/MDEV-28120
library-not-linked-against-libc usr/lib/mysql/plugin/provider_lzo.so library-not-linked-against-libc [usr/lib/mysql/plugin/provider_lzo.so]
\ No newline at end of file
# It's intentional that Snappy compression plugin doesn't have symbols from libc # It's intentional that Snappy compression plugin doesn't have symbols from libc
# More info https://jira.mariadb.org/browse/MDEV-28120 # More info https://jira.mariadb.org/browse/MDEV-28120
library-not-linked-against-libc usr/lib/mysql/plugin/provider_snappy.so library-not-linked-against-libc [usr/lib/mysql/plugin/provider_snappy.so]
\ No newline at end of file
...@@ -15,8 +15,8 @@ usr/share/man/man1/resolveip.1 ...@@ -15,8 +15,8 @@ usr/share/man/man1/resolveip.1
usr/share/man/man8/mariadbd.8 usr/share/man/man8/mariadbd.8
usr/share/man/man8/mysqld.8 usr/share/man/man8/mysqld.8
usr/share/mysql/bulgarian usr/share/mysql/bulgarian
usr/share/mysql/chinese
usr/share/mysql/charsets usr/share/mysql/charsets
usr/share/mysql/chinese
usr/share/mysql/czech usr/share/mysql/czech
usr/share/mysql/danish usr/share/mysql/danish
usr/share/mysql/dutch usr/share/mysql/dutch
......
# These should be moved, see https://jira.mariadb.org/browse/MDEV-21654 # These should be moved, see https://jira.mariadb.org/browse/MDEV-21654
arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so
arch-dependent-file-in-usr-share [usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so] arch-dependent-file-in-usr-share [usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so]
arch-independent-package-contains-binary-or-object usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so
arch-independent-package-contains-binary-or-object [usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so] arch-independent-package-contains-binary-or-object [usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so]
# Mainly for support for *BSD family. Not right way to do but this is test package and not for production # Mainly for support for *BSD family. Not right way to do but this is test package and not for production
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/std_data/checkDBI_DBD-MariaDB.pl] incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/std_data/checkDBI_DBD-MariaDB.pl]
......
# These should be moved, see https://jira.mariadb.org/browse/MDEV-21653 # These should be moved, see https://jira.mariadb.org/browse/MDEV-21653
arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/lib/My/SafeProcess/my_safe_process
arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/lib/My/SafeProcess/wsrep_check_version
arch-dependent-file-in-usr-share [usr/share/mysql/mysql-test/lib/My/SafeProcess/my_safe_process] arch-dependent-file-in-usr-share [usr/share/mysql/mysql-test/lib/My/SafeProcess/my_safe_process]
arch-dependent-file-in-usr-share [usr/share/mysql/mysql-test/lib/My/SafeProcess/wsrep_check_version] arch-dependent-file-in-usr-share [usr/share/mysql/mysql-test/lib/My/SafeProcess/wsrep_check_version]
# Mainly for support for *BSD family. Not right way to do but this is test package and not for production # Mainly for support for *BSD family. Not right way to do but this is test package and not for production
......
...@@ -522,6 +522,70 @@ mysql-8.0 Jammy to mariadb upgrade: ...@@ -522,6 +522,70 @@ mysql-8.0 Jammy to mariadb upgrade:
variables: variables:
- $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
mariadb.org 10.11 to mariadb upgrade:
stage: upgrade extras
needs:
- job: build
image: debian:${RELEASE}
artifacts:
when: always
name: "$CI_BUILD_NAME"
paths:
- ${WORKING_DIR}/debug
script:
- *test-prepare-container
- apt install -y curl
- curl -sS https://mariadb.org/mariadb_release_signing_key.asc -o /etc/apt/trusted.gpg.d/mariadb.asc
- echo "deb https://deb.mariadb.org/10.11/debian ${RELEASE} main" > /etc/apt/sources.list.d/mariadb.list
- apt-get update
- apt-get install -y mariadb-server
- *test-verify-initial
# Install MariaDB built in this commit
# Force downgrades so our version installs on top of upstream revision, e.g. 1:10.9.1-1 vs 1:10.9.1+mariadb~sid
- apt-get install -y --allow-downgrades ./*.deb
# Verify installation of MariaDB built in this commit
- dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed
- mariadb --version # Client version
- service mariadb status # There is no init.d/mysql in MariaDB 10.5+
- *test-verify-final
variables:
GIT_STRATEGY: none
except:
variables:
- $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
mariadb.org 10.10 to mariadb upgrade:
stage: upgrade extras
needs:
- job: build
image: debian:${RELEASE}
artifacts:
when: always
name: "$CI_BUILD_NAME"
paths:
- ${WORKING_DIR}/debug
script:
- *test-prepare-container
- apt install -y curl
- curl -sS https://mariadb.org/mariadb_release_signing_key.asc -o /etc/apt/trusted.gpg.d/mariadb.asc
- echo "deb https://deb.mariadb.org/10.10/debian ${RELEASE} main" > /etc/apt/sources.list.d/mariadb.list
- apt-get update
- apt-get install -y mariadb-server
- *test-verify-initial
# Install MariaDB built in this commit
# Force downgrades so our version installs on top of upstream revision, e.g. 1:10.9.1-1 vs 1:10.9.1+mariadb~sid
- apt-get install -y --allow-downgrades ./*.deb
# Verify installation of MariaDB built in this commit
- dpkg -l | grep -iE 'maria|mysql|galera' || true # List installed
- mariadb --version # Client version
- service mariadb status # There is no init.d/mysql in MariaDB 10.5+
- *test-verify-final
variables:
GIT_STRATEGY: none
except:
variables:
- $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
mariadb.org 10.9 to mariadb upgrade: mariadb.org 10.9 to mariadb upgrade:
stage: upgrade extras stage: upgrade extras
needs: needs:
...@@ -538,7 +602,7 @@ mariadb.org 10.9 to mariadb upgrade: ...@@ -538,7 +602,7 @@ mariadb.org 10.9 to mariadb upgrade:
- curl -sS https://mariadb.org/mariadb_release_signing_key.asc -o /etc/apt/trusted.gpg.d/mariadb.asc - curl -sS https://mariadb.org/mariadb_release_signing_key.asc -o /etc/apt/trusted.gpg.d/mariadb.asc
- echo "deb https://deb.mariadb.org/10.9/debian ${RELEASE} main" > /etc/apt/sources.list.d/mariadb.list - echo "deb https://deb.mariadb.org/10.9/debian ${RELEASE} main" > /etc/apt/sources.list.d/mariadb.list
- apt-get update - apt-get update
- apt-get install -y mariadb-server-10.9 - apt-get install -y mariadb-server
- *test-verify-initial - *test-verify-initial
# Install MariaDB built in this commit # Install MariaDB built in this commit
# Force downgrades so our version installs on top of upstream revision, e.g. 1:10.9.1-1 vs 1:10.9.1+mariadb~sid # Force downgrades so our version installs on top of upstream revision, e.g. 1:10.9.1-1 vs 1:10.9.1+mariadb~sid
...@@ -553,7 +617,6 @@ mariadb.org 10.9 to mariadb upgrade: ...@@ -553,7 +617,6 @@ mariadb.org 10.9 to mariadb upgrade:
except: except:
variables: variables:
- $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
allow_failure: true
mariadb.org-10.8 to mariadb upgrade: mariadb.org-10.8 to mariadb upgrade:
stage: upgrade extras stage: upgrade extras
...@@ -586,7 +649,6 @@ mariadb.org-10.8 to mariadb upgrade: ...@@ -586,7 +649,6 @@ mariadb.org-10.8 to mariadb upgrade:
except: except:
variables: variables:
- $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
allow_failure: true
mariadb.org-10.7 to mariadb upgrade: mariadb.org-10.7 to mariadb upgrade:
stage: upgrade extras stage: upgrade extras
...@@ -619,7 +681,6 @@ mariadb.org-10.7 to mariadb upgrade: ...@@ -619,7 +681,6 @@ mariadb.org-10.7 to mariadb upgrade:
except: except:
variables: variables:
- $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
allow_failure: true
mariadb.org-10.6 to mariadb upgrade: mariadb.org-10.6 to mariadb upgrade:
stage: upgrade extras stage: upgrade extras
......
...@@ -4,13 +4,10 @@ version-substvar-for-external-package mariadb-client-core -> mysql-client-5.5 ...@@ -4,13 +4,10 @@ version-substvar-for-external-package mariadb-client-core -> mysql-client-5.5
version-substvar-for-external-package mariadb-server -> mysql-server version-substvar-for-external-package mariadb-server -> mysql-server
version-substvar-for-external-package libmariadb-dev -> libmysqlclient-dev version-substvar-for-external-package libmariadb-dev -> libmysqlclient-dev
version-substvar-for-external-package libmariadb-dev -> libmysqld-dev version-substvar-for-external-package libmariadb-dev -> libmysqld-dev
version-substvar-for-external-package mariadb-server-10.9 -> mysql-client-5.* version-substvar-for-external-package Replaces ${source:Version} libmariadb-dev -> libmysqlclient-dev [debian/control:74]
version-substvar-for-external-package mariadb-server-10.9 -> mysql-client-8.* version-substvar-for-external-package Replaces ${source:Version} libmariadb-dev -> libmysqld-dev [debian/control:74]
version-substvar-for-external-package mariadb-client-10.9 -> mysql-client-core-5.*
version-substvar-for-external-package mariadb-client-10.9 -> mysql-client-core-8.*
version-substvar-for-external-package libmariadbd-dev -> libmariadbclient-dev version-substvar-for-external-package libmariadbd-dev -> libmariadbclient-dev
# Intentional version-substvar-for-external-package as long as mariadb-server version-substvar-for-external-package Replaces ${source:Version} libmariadbd-dev -> libmariadbclient-dev [debian/control:232]
# provides mariadb-server-10.11 and mariadb-client provides mariadb-client-10.11
version-substvar-for-external-package Conflicts (line 408) ${source:Version} mariadb-client -> mariadb-client-10.11 version-substvar-for-external-package Conflicts (line 408) ${source:Version} mariadb-client -> mariadb-client-10.11
version-substvar-for-external-package Conflicts (line 575) ${source:Version} mariadb-server-core -> mariadb-server-core-10.11 version-substvar-for-external-package Conflicts (line 575) ${source:Version} mariadb-server-core -> mariadb-server-core-10.11
version-substvar-for-external-package Conflicts (line 711) ${source:Version} mariadb-server -> mariadb-server-10.11 version-substvar-for-external-package Conflicts (line 711) ${source:Version} mariadb-server -> mariadb-server-10.11
...@@ -106,3 +103,10 @@ source-contains-autogenerated-visual-c++-file storage/columnstore/columnstore/*. ...@@ -106,3 +103,10 @@ source-contains-autogenerated-visual-c++-file storage/columnstore/columnstore/*.
source-contains-autogenerated-visual-c++-file storage/columnstore/columnstore/*.h source-contains-autogenerated-visual-c++-file storage/columnstore/columnstore/*.h
source-contains-autogenerated-visual-c++-file win/upgrade_wizard/resource.h source-contains-autogenerated-visual-c++-file win/upgrade_wizard/resource.h
source-contains-autogenerated-visual-c++-file win/upgrade_wizard/upgrade.rc source-contains-autogenerated-visual-c++-file win/upgrade_wizard/upgrade.rc
# New in 10.11
version-substvar-for-external-package Conflicts ${source:Version} libmariadb-dev-compat -> libmariadbclient-dev [debian/control:95]
version-substvar-for-external-package Replaces ${source:Version} libmariadb-dev-compat -> libmariadbclient-dev [debian/control:109]
missing-build-dependency-for-dh-addon systemd (does not satisfy debhelper:any (>= 9.20160709~) | debhelper-compat:any | dh-sequence-systemd:any | dh-systemd:any) [debian/rules]
source-is-missing [sql/share/charsets/languages.html]
source-is-missing [storage/rocksdb/rocksdb/docs/_includes/footer.html]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment