Bug #89244 Perl JSON module should be added to build/install dependencies of MySQL packages
Submitted: 15 Jan 2018 13:49 Modified: 6 Mar 2018 17:46
Reporter: Alexey Kopytov Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.7, 8.0 OS:Any
Assigned to: Terje Røsten CPU Architecture:Any

[15 Jan 2018 13:49] Alexey Kopytov
Description:
A number of tests in the MTR suite now require the Perl JSON module, for
example:

innodb_explain_json_non_select_all, innodb_explain_json_non_select_none,
innodb_explain_non_select_all, innodb_explain_non_select_none

The module is not installed by default in most Linux distributions, so
it should be a build dependency for mysql-*-test packages.

On top of that, running the MTR suite may also be a part of the
packaging procedure. Which is the case for RPM spec if 'runselftest' is
defined, for example. Which means tests depending on the JSON module
fail, if it is not installed.

This is a request to add libjson-perl (in Debian/Ubuntu packaging files)
and perl-JSON (in RHEL/Fedora packaging files) as a build dependency for
MySQL server packages, and runtime dependency for test packages.

How to repeat:
Try building a DEB/RPM package on a system without Perl JSON
installed. Also try installing mysql-community-test and running the test
suite on the same system.

Suggested fix:
See above.
[16 Jan 2018 8:36] Terje Røsten
Thanks for report!
[6 Mar 2018 17:46] Paul DuBois
Posted by developer:
 
Fixed in 5.7.22, 8.0.5.

        Linux RPM and Debian packages now include dependency information
        for the Perl JSON module required to run the MySQL test suite.