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

No systemd files present in generic Linux tarballs

Details

    Description

      There are currently no systemd files present in the generic Linux tarballs.

      The RPM for CentOS 7 has:

      [ec2-user@ip-172-31-19-192 ~]$ rpm -ql MariaDB-server | grep "systemd"
      /usr/lib/systemd
      /usr/lib/systemd/system
      /usr/lib/systemd/system/mariadb.service
      /usr/share/mysql/systemd
      /usr/share/mysql/systemd/mariadb.service
      /usr/share/mysql/systemd/use_galera_new_cluster.conf
      [ec2-user@ip-172-31-19-192 ~]$ rpm -ql MariaDB-server | grep "galera_new_cluster"
      /usr/bin/galera_new_cluster
      /usr/share/mysql/systemd/use_galera_new_cluster.conf
      

      But the generic Linux tarballs have none of those files:

      [ec2-user@ip-172-31-19-192 ~]$ tar -tzvf mariadb-10.1.12-linux-x86_64.tar.gz | grep "systemd"
      -rw-r--r-- dbart/my       1126 2016-02-24 09:25 mariadb-10.1.12-linux-x86_64/include/mysql/private/my_systemd.h
      [ec2-user@ip-172-31-19-192 ~]$ tar -tzvf mariadb-10.1.12-linux-x86_64.tar.gz | grep "galera_new_cluster"
      

      Attachments

        Activity

          dbart Daniel Bartholomew added a comment - - edited

          The trusty-bintar builder is in place, but it is currently reporting the following error:

          CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
            Could NOT find GnuTLS: Found unsuitable version "2.12.23", but required is
            at least "3.3.24" (found /usr/lib/x86_64-linux-gnu/libgnutls.so)
          

          Full log: http://buildbot.askmonty.org/buildbot/builders/kvm-bintar-trusty-amd64/builds/29/steps/compile/logs/stdio

          serg: I think you were the one that installed gnutls under /usr/local/ on the quantal-bintar builders, did you do anything special? If not, I can handle installing it on the trusty-build VMs (I'm guessing you just compiled it from source). If there is anything special that needs to be done when installing it, please let me know. Thanks!

          dbart Daniel Bartholomew added a comment - - edited The trusty-bintar builder is in place, but it is currently reporting the following error: CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find GnuTLS: Found unsuitable version "2.12.23", but required is at least "3.3.24" (found /usr/lib/x86_64-linux-gnu/libgnutls.so) Full log: http://buildbot.askmonty.org/buildbot/builders/kvm-bintar-trusty-amd64/builds/29/steps/compile/logs/stdio serg : I think you were the one that installed gnutls under /usr/local/ on the quantal-bintar builders, did you do anything special? If not, I can handle installing it on the trusty-build VMs (I'm guessing you just compiled it from source). If there is anything special that needs to be done when installing it, please let me know. Thanks!

          I've built static gnutls and installed it to the trusty builders and triggered rebuilds. Now monitoring to see if they will successfully build.

          dbart Daniel Bartholomew added a comment - I've built static gnutls and installed it to the trusty builders and triggered rebuilds. Now monitoring to see if they will successfully build.

          The trusty-amd64-bintar and trusty-x86-bintar builders are now successfully building MariaDB 10.2, and both the 10.1 and 10.2 tarballs now being produced by buildbot have systemd files:

          $ tar -tzvf mariadb-10.2.4-linux-x86_64.tar.gz | grep "systemd"
          mariadb-10.2.4-linux-x86_64/support-files/systemd/mariadb@.service
          mariadb-10.2.4-linux-x86_64/support-files/systemd/use_galera_new_cluster.conf
          mariadb-10.2.4-linux-x86_64/support-files/systemd/mariadb.service
          mariadb-10.2.4-linux-x86_64/include/mysql/private/my_systemd.h
           
           
          $ tar -tzvf mariadb-10.1.22-linux-x86_64.tar.gz | grep "systemd"
          mariadb-10.1.22-linux-x86_64/support-files/systemd/mariadb@.service
          mariadb-10.1.22-linux-x86_64/support-files/systemd/use_galera_new_cluster.conf
          mariadb-10.1.22-linux-x86_64/support-files/systemd/mariadb.service
          mariadb-10.1.22-linux-x86_64/include/mysql/private/my_systemd.h
          

          These new bintars with systemd will appear in the next 10.1 and 10.2 releases.

          If there's nothing else for this task I'll close it.

          dbart Daniel Bartholomew added a comment - The trusty-amd64-bintar and trusty-x86-bintar builders are now successfully building MariaDB 10.2, and both the 10.1 and 10.2 tarballs now being produced by buildbot have systemd files: $ tar -tzvf mariadb-10.2.4-linux-x86_64.tar.gz | grep "systemd" mariadb-10.2.4-linux-x86_64/support-files/systemd/mariadb@.service mariadb-10.2.4-linux-x86_64/support-files/systemd/use_galera_new_cluster.conf mariadb-10.2.4-linux-x86_64/support-files/systemd/mariadb.service mariadb-10.2.4-linux-x86_64/include/mysql/private/my_systemd.h     $ tar -tzvf mariadb-10.1.22-linux-x86_64.tar.gz | grep "systemd" mariadb-10.1.22-linux-x86_64/support-files/systemd/mariadb@.service mariadb-10.1.22-linux-x86_64/support-files/systemd/use_galera_new_cluster.conf mariadb-10.1.22-linux-x86_64/support-files/systemd/mariadb.service mariadb-10.1.22-linux-x86_64/include/mysql/private/my_systemd.h These new bintars with systemd will appear in the next 10.1 and 10.2 releases. If there's nothing else for this task I'll close it.
          dbart Daniel Bartholomew added a comment - - edited

          Fix will be in the next releases of 10.2 and 10.1. Bintars with systemd will be named after the following pattern:

          mariadb-<version>-systemd-<arch>.tar.gz
          

          dbart Daniel Bartholomew added a comment - - edited Fix will be in the next releases of 10.2 and 10.1. Bintars with systemd will be named after the following pattern: mariadb-<version>-systemd-<arch>.tar.gz

          I missed the file ./support-files/systemd/mariadb.service file also in version 10.3.14.
          In version 10.3.11 it was still there. Therefore I plan to use the one from the tarball mariadb-10.3.11-linux-systemd-x86_64.tar.gz and just changed the version in the description. Is there anything else that have to be considered ?

          dfraedr Dietmar Fraedrich added a comment - I missed the file ./support-files/systemd/mariadb.service file also in version 10.3.14. In version 10.3.11 it was still there. Therefore I plan to use the one from the tarball mariadb-10.3.11-linux-systemd-x86_64.tar.gz and just changed the version in the description. Is there anything else that have to be considered ?

          People

            dbart Daniel Bartholomew
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 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.