Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mariadb: 10.2.16 -> 10.2.17 #45199

Closed
wants to merge 2 commits into from
Closed

mariadb: 10.2.16 -> 10.2.17 #45199

wants to merge 2 commits into from

Conversation

andir
Copy link
Member

@andir andir commented Aug 17, 2018

Motivation for this change

mariadb: 10.2.16 -> 10.2.17

Bump to latest stable version of the 10.2.x branch. Besides many bug fixes the
following security related issues have been fixed:

Also includes a test for mariadb based on the existing mysql test.

This should be considered for backporting since the version in 18.03 has even more open issues...

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@andir
Copy link
Member Author

andir commented Aug 17, 2018

@GrahamcOfBorg test mysql

@GrahamcOfBorg
Copy link

Success on x86_64-linux

Attempted: tests.mysql

No partial log is available.

@GrahamcOfBorg
Copy link

Success on aarch64-linux

Attempted: tests.mysql

No partial log is available.

@andir andir added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Aug 17, 2018
@GrahamcOfBorg GrahamcOfBorg added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100 labels Aug 17, 2018
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: mariadb

Partial log (click to expand)

/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/galera_new_cluster: interpreter directive changed from "/bin/sh" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/sh"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/mariadb-service-convert: interpreter directive changed from "/bin/bash" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/bash"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/wsrep_sst_mysqldump: interpreter directive changed from "/bin/bash -ue" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/bash -ue"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/wsrep_sst_xtrabackup-v2: interpreter directive changed from "/bin/bash -ue" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/bash -ue"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/mysql_secure_installation: interpreter directive changed from "/bin/sh" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/sh"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/msql2mysql: interpreter directive changed from "/bin/sh" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/sh"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/wsrep_sst_rsync: interpreter directive changed from "/bin/sh -ue" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/sh -ue"
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17/bin/wsrep_sst_mariabackup: interpreter directive changed from "/bin/bash -ue" to "/nix/store/56nrxy58wbhvs2sy3rir1jqa68p0kkm5-bash-4.4-p23/bin/bash -ue"
checking for references to /build in /nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17...
/nix/store/b2swk93dczz4yi5dxr03r71vig4c90j4-mariadb-10.2.17

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: mariadb

Partial log (click to expand)

/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/bin/mysql_secure_installation: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/bin/mysql_config: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/bin/msql2mysql: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/bin/mysql_install_db: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/share/mysql/mysql.server: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/share/mysql/wsrep_notify: interpreter directive changed from "/bin/sh -eu" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh -eu"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/share/mysql/binary-configure: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17/share/mysql/mysqld_multi.server: interpreter directive changed from "/bin/sh" to "/nix/store/7q3ayirslrcva28wava6zpjcflcz1h3b-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17...
/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: mariadb

Partial log (click to expand)

/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmysqld.19.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmariadb.3.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmysqld.19.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmariadb.3.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmysqld.19.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmariadb.3.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmysqld.19.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmariadb.3.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17/lib/libmysqld.19.dylib: fixing dylib
/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17

{
services.mysql.enable = true;
services.mysql.initialDatabases = [ { name = "testdb"; schema = ./testdb.sql; } ];
services.mysql.package = pkgs.mysql;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this changes for the different tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups, I changed it :)

@vcunat
Copy link
Member

vcunat commented Aug 17, 2018

Staged for 18.03 as 8a804f7.

andir added 2 commits August 17, 2018 17:11
The NixOS module already covers mariadb so the mysql test can easily be
used as a vehicle for mariadb.
Bump to latest stable version of the 10.2.x branch. Besides many bug fixes the
following security related issues have been fixed:
 - CVE-2018-3060
 - CVE-2018-3064
 - CVE-2018-3063
 - CVE-2018-3058
 - CVE-2018-3066

Release notes: https://mariadb.com/kb/en/library/mariadb-10217-release-notes/
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: mariadb

Partial log (click to expand)

/nix/store/7yy2gaw4r74va2jq9k764xfb93k9vxc1-mariadb-10.2.17

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: mariadb

Partial log (click to expand)

/nix/store/bprmjz5liv21c04ki8fdas3q04a7njx6-mariadb-10.2.17

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-linux (full log)

Attempted: mariadb

Partial log (click to expand)

[ 78%] Building CXX object storage/perfschema/CMakeFiles/perfschema_embedded.dir/pfs_column_values.cc.o
[ 78%] Building CXX object storage/perfschema/CMakeFiles/perfschema_embedded.dir/pfs_con_slice.cc.o
[ 78%] Building CXX object storage/perfschema/CMakeFiles/perfschema_embedded.dir/pfs_defaults.cc.o
[ 78%] Building CXX object storage/perfschema/CMakeFiles/perfschema_embedded.dir/pfs_digest.cc.o
[ 78%] Linking CXX static library libpfs_server_stubs.a
[ 78%] Built target pfs_server_stubs
Scanning dependencies of target rocksdb_aux_lib
[ 78%] Building CXX object storage/rocksdb/CMakeFiles/rocksdb_aux_lib.dir/rdb_cf_options.cc.o
building of '/nix/store/f9f5iykgyq5vxjwxwy866h6lxzk3898c-mariadb-10.2.17.drv' timed out after 1800 seconds
error: build of '/nix/store/f9f5iykgyq5vxjwxwy866h6lxzk3898c-mariadb-10.2.17.drv' failed

with import ../lib/testing.nix { inherit system; };
let
packages = {
mysql = pkgs.mysql;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose you don't know:

nix-repl> mysql.name
"mariadb-10.2.16"

vcunat pushed a commit that referenced this pull request Aug 18, 2018

Verified

This commit was signed with the committer’s verified signature.
vcunat Vladimír Čunát
Bump to latest stable version of the 10.2.x branch. Besides many bug fixes the
following security related issues have been fixed:
 - CVE-2018-3060
 - CVE-2018-3064
 - CVE-2018-3063
 - CVE-2018-3058
 - CVE-2018-3066

Release notes: https://mariadb.com/kb/en/library/mariadb-10217-release-notes/
@xeji
Copy link
Contributor

xeji commented Aug 28, 2018

@andir these "2" tests are the same since mysql is an alias for mariadb. If you really want mysql, use pkgs.mysql57.

@andir
Copy link
Member Author

andir commented Aug 28, 2018 via email

@xeji
Copy link
Contributor

xeji commented Aug 28, 2018

Great, sorry for the noise.

@vcunat vcunat added 2.status: work-in-progress This PR isn't done and removed 1.severity: security Issues which raise a security issue, or PRs that fix one labels Aug 28, 2018
@luzpaz
Copy link
Contributor

luzpaz commented Feb 5, 2019

Should probably be closed in favor of #44343

@vcunat
Copy link
Member

vcunat commented Feb 11, 2019

This change had been pushed as 5da1d01.

@vcunat vcunat closed this Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: work-in-progress This PR isn't done 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants