Revision undefined in --version in some platforms

Bug #1171721 reported by Ignacio Nin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Low
Ignacio Nin
2.0
Fix Released
Low
Ignacio Nin
2.1
Fix Released
Low
Ignacio Nin

Bug Description

For the debian binaries and the linux binaries, the --version message which should include the revision shows "undefined" instead:

(dpkg)
$ xtrabackup --version
xtrabackup version 2.0.6 for Percona Server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ xtrabackup_51 --version
xtrabackup_51 version 2.0.6 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ xtrabackup_55 --version
xtrabackup_55 version 2.0.6 for Percona Server 5.5.16 Linux (x86_64) (revision id: undefined)
$ xtrabackup_56 --version
xtrabackup_56 version 2.0.6 for MySQL server 5.6.10 Linux (x86_64) (revision id: undefined)

(binary .tar.gz)
$ bin/xtrabackup --version
bin/xtrabackup version 2.0.6 for Percona Server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ bin/xtrabackup_51 --version
bin/xtrabackup_51 version 2.0.6 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
$ bin/xtrabackup_55 --version
bin/xtrabackup_55 version 2.0.6 for Percona Server 5.5.16 Linux (x86_64) (revision id: undefined)

For RPM, it shows the revision id correctly:

$ xtrabackup --version
xtrabackup version 2.0.6 for Percona Server 5.1.59 unknown-linux-gnu (x86_64) (revision id: 521)
$ xtrabackup_51 --version
xtrabackup_51 version 2.0.6 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: 521)
$ xtrabackup_55 --version
xtrabackup_55 version 2.0.6 for Percona Server 5.5.16 Linux (x86_64) (revision id: 521)
$ xtrabackup_56 --version
xtrabackup_56 version 2.0.6 for MySQL server 5.6.10 Linux (x86_64) (revision id: 521)

In order to fix this, XTRABACKUP_REVISION needs to be exported from the binary and dpkg builders, as correctly done in the RPM builder.

Tags: pkg

Related branches

tags: added: pkg
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-877

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.