RPM install misses Time::HiRes Perl dependency

Reported by Ernie Souhrada on 2013-02-11
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Medium
Alexey Bychko
2.0
Medium
Alexey Bychko
2.1
Medium
Alexey Bychko

Bug Description

XtraBackup 2.0.5 installs via RPM / Yum repository on a fairly minimal installation of CentOS 6.3 without any problems (minimal / base CentOS 6.3 installation, add Percona Server). However, when attempting to run innobackupex, the following error is produced:

(root@test-02 17:46:47)# innobackupex
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/innobackupex line 22.
BEGIN failed--compilation aborted at /usr/bin/innobackupex line 22.

So there's obviously a dependency here; if I do a "yum install" of perl-Time-HiRes the problem goes away and innobackupex runs without issue - so I would expect that if i do a yum install of the percona-xtrabackup package that it should recognize that I didn't have the perl-Time-HiRes module and automatically add it to the list of installation dependencies.

The fix for this ought to be simple enough - just add perl-Time-HiRes to the Requires: section of the spec file.

tags: added: i29642
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers