ver 3.0.05 determine tar executable on --help output error

Bug #487864 reported by TrueType
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Sandbox
Fix Committed
High
Giuseppe Maxia

Bug Description

$ make_file -- of
dies with message "this version of tar is not supported\n"

The Perl script tries to read a
$ tar --help
output with a regular expression /(?:bsdtar|gnu\s+tar)/i - which fails as the term "GNU" comes on a second line - and I expect this regular expression to be single line?? Why use "tar --help" but "tar --version"?

For me stupid I firstly guessed a March 2009 version of mysql_sandbox may restrict to support a later tar version 1.22 of Mai 2009. I then purged my tar package despite all Debian/Ubuntu warnings and tried to install an older version of it. Don't do this. The tar non-tar packages are in bad condition ;)

I am using a German version of Debian/Ubuntu
Linux version 2.6.18-6-xen-amd64 (Debian 2.6.18.dfsg.1-18etch5) (<email address hidden>) (gcc version 4.1.2 20061115

Revision history for this message
TrueType (henri-nathanson) wrote :

sorry, the command is
$ make_sandbox

and if fails in line 127:

 if ($tar_version =~ /(?:bsdtar|gnu\s+tar)/i) {
                die "this version of tar is not supported\n";
            }

should it not be:

 if ($tar_version !~ /(?:bsdtar|gnu\s+tar)/i) {
                die "this version of tar is not supported\n";
            }

Revision history for this message
TrueType (henri-nathanson) wrote :

sorry, I drunk my stupip pills... the script runs with:
(change --help to --version)

        if ($which_tar) {
            chomp $which_tar;
            $tar_executable = $which_tar;
            my $tar_version = qx($tar_executable --version)
                or die "can't find tar program\n";
            unless ($tar_version =~ /(?:bsdtar|gnu\s+tar)/i) {
                die "this version of tar is not supported\n";
            }
        }

Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

fixed in version 3.0.12 (actually, it was fixed long ago, but I forgot to update this bug)

Changed in mysql-sandbox:
status: New → Fix Committed
importance: Undecided → Low
importance: Low → High
assignee: nobody → Giuseppe Maxia (giuseppe-maxia)
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.