No dependency check in RPM package for Perl Digest::MD5

Bug #1644018 reported by Sveta Smirnova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Fix Released
Medium
EvgeniyPatlan
2.4
Fix Released
Medium
EvgeniyPatlan

Bug Description

If Perl module Digest::MD5 is not installed innobackupex will generate error:

sveta@Thinkie:~/issues/152604$ ./usr/bin/innobackupex --host=127.0.0.1 --port=13001 --user=root backup
161123 00:45:41 innobackupex: Starting the backup operation

IMPORTANT: Please check that the backup run completes successfully.
           At the end of a successful backup run innobackupex
           prints "completed OK!".

Can't locate Digest/MD5.pm in @INC (you may need to install the Digest::MD5 module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at - line 693.
BEGIN failed--compilation aborted at - line 693.
161123 00:45:41 Connecting to MySQL server host: 127.0.0.1, user: root, password: not set, port: 13001, socket: (null)
Using server version 5.6.32-78.0-debug-log
./usr/bin/innobackupex version 2.3.5 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 45cda89)
xtrabackup: uses posix_fadvise().
...

Thought backup will continue.

But RPM package does not list this dependency:

sveta@Thinkie:~/issues/152604$ rpm -qpR percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm | grep -i md5
warning: percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
sveta@Thinkie:~/issues/152604$ rpm -qpR percona-xtrabackup-2.3.5-1.el7.x86_64.rpm | grep -i md5
warning: percona-xtrabackup-2.3.5-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
sveta@Thinkie:~/issues/152604$

Suggested fix: add dependency into RPM package

Tags: pkg i152604
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

It is needed for varsion_check I suppose. It doesn't affect the backup functionality. If one just want to get rid of error message he can simply add --no-version-check.

Version_check feature added to several Percona tools https://www.percona.com/blog/2012/09/10/introducing-the-version-check-feature-in-percona-toolkit/

tags: added: pkg
Revision history for this message
EvgeniyPatlan (evgeniy-patlan) wrote :

Dependencies has been added.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-777

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.