Revision undefined in --version in some platforms

Reported by Ignacio Nin on 2013-04-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Low
Ignacio Nin
2.0
Low
Ignacio Nin
2.1
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 Edit Tag help
tags: added: pkg
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers