Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4977

./mysql-test/mysql-test-run.pl not identifying mariadb version

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 5.5.32
    • 5.5.34
    • None
    • None
    • 5.5.32-MariaDB-1~wheezy for debian-linux-gnu on x86_64

    Description

      I followed the following steps after having an apt sources like for mariadb

      apt-get build-dep mariadb-5.5
      apt-get install cmake libaio1 libaio-dev fakeroot valgrind
      apt-get source mariadb-5.5
      cd mariadb-5.5*

      edited debian/control and debian/rules as per https://kb.askmonty.org/en/how-to-produce-a-full-stack-trace-for-mysqld-the-mariadb-server/#comment_359 (except using 5.5 as version number)
      edit debian/rules added -DCMAKE_BUILD_TYPE=Debug to cmake as per https://kb.askmonty.org/en/compiling-mariadb-for-debugging/

      dpkg-buildpackage -us -uc (http://www.debian.org/doc/manuals/maint-guide/build.en.html)

      resulted in error:
      "mysql-test-run: *** ERROR: Could not find version of MariaDB"

      added "mtr_report("List: ", join("\n", @list));" before the mtr_error in ./mysql-test/mysql-test-run.pl rerunnign with dpkg-buildpackage -nc -us -uc revealed:
      "List: /home/danblack/mariadb-5.5-5.5.32+maria/builddir/sql/mysqld Ver 5.5.32-MariaDB-1~wheezy for debian-linux-gnu on x86_64 (mariadb.org binary distribution)..."

      A quick tests shows the regex not matching:

      perl
      $a="/home/danblack/mariadb-5.5-5.5.32+maria/builddir/sql/mysqld Ver 5.5.32-MariaDB-1~wheezy for debian-linux-gnu on x86_64 (mariadb.org binary distribution)";
      $exe_mysqld="/home/danblack/mariadb-5.5-5.5.32+maria/builddir/sql/mysqld";
      $a =~ /^$exe_mysqld\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/;
      print "0=$0 1=$1 2=$2 ";
      0=- 1= 2=

      Attachments

        Activity

          People

            serg Sergei Golubchik
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.