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

Mariabackup is lacking some dependencies declaration

Details

    Description

      Hi

      The Debian Stretch version of mariabackup seems to be lacking some required dependencies, it wouldn't run without libaio1, libjemalloc1 and libssl1.0.2.

      Relevant log:

      docker run --rm -t -i debian:stretch bash
      root@ca1174c03923:/# apt-get update
      Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
      Ign:2 http://deb.debian.org/debian stretch InRelease                                        
      Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]                      
      Get:4 http://deb.debian.org/debian stretch Release [118 kB]      
      Get:5 http://deb.debian.org/debian stretch Release.gpg [2434 B]
      Get:6 http://security.debian.org stretch/updates/main amd64 Packages [463 kB]
      Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [12.1 kB]
      Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [9530 kB]
      Fetched 10.3 MB in 5s (2019 kB/s)   
      Reading package lists... Done
      root@ca1174c03923:/# apt-get install --no-install-recommends -y gpg dirmngr
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      Note, selecting 'gnupg' instead of 'gpg'
      The following additional packages will be installed:
        gnupg-agent libassuan0 libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libksba8 libldap-2.4-2 libldap-common libnettle6 libnpth0 libp11-kit0
        libreadline7 libsasl2-2 libsasl2-modules-db libsqlite3-0 libtasn1-6 pinentry-curses readline-common
      Suggested packages:
        dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage scdaemon gnutls-bin pinentry-doc readline-doc
      Recommended packages:
        gnupg-l10n libsasl2-modules
      The following NEW packages will be installed:
        dirmngr gnupg gnupg-agent libassuan0 libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libksba8 libldap-2.4-2 libldap-common libnettle6 libnpth0
        libp11-kit0 libreadline7 libsasl2-2 libsasl2-modules-db libsqlite3-0 libtasn1-6 pinentry-curses readline-common
      0 upgraded, 22 newly installed, 0 to remove and 4 not upgraded.
      Need to get 5524 kB of archives.
      [...]
      root@ca1174c03923:/# apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
      Executing: /tmp/apt-key-gpghome.fosyWyEaMi/gpg.1.sh --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
      gpg: key F1656F24C74CD1D8: public key "MariaDB Signing Key <signing-key@mariadb.org>" imported
      gpg: Total number processed: 1
      gpg:               imported: 1
      root@ca1174c03923:/# echo "deb [arch=amd64,i386,ppc64el] http://ftp.ddg.lth.se/mariadb/repo/10.1/debian stretch main" > /etc/apt/sources.list.d/mariadb.list
      root@ca1174c03923:/# apt-get update
      Get:1 http://ftp.ddg.lth.se/mariadb/repo/10.1/debian stretch InRelease [3875 B]
      Ign:2 http://deb.debian.org/debian stretch InRelease                                                                                                 
      Hit:3 http://security.debian.org stretch/updates InRelease              
      Hit:4 http://deb.debian.org/debian stretch-updates InRelease
      Hit:5 http://deb.debian.org/debian stretch Release
      Get:6 http://ftp.ddg.lth.se/mariadb/repo/10.1/debian stretch/main i386 Packages [9324 B]
      Get:7 http://ftp.ddg.lth.se/mariadb/repo/10.1/debian stretch/main ppc64el Packages [9364 B]
      Get:8 http://ftp.ddg.lth.se/mariadb/repo/10.1/debian stretch/main amd64 Packages [9393 B]
      Fetched 32.0 kB in 1s (31.5 kB/s)                   
      Reading package lists... Done
      root@ca1174c03923:/# apt-get install -y mariadb-backup-10.1
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following additional packages will be installed:
        libarchive13 libicu57 liblzo2-2 libxml2 sgml-base xml-core
      Suggested packages:
        lrzip sgml-base-doc debhelper
      The following NEW packages will be installed:
        libarchive13 libicu57 liblzo2-2 libxml2 mariadb-backup-10.1 sgml-base xml-core
      0 upgraded, 7 newly installed, 0 to remove and 4 not upgraded.
      Need to get 13.5 MB of archives.
      [...]
      root@ca1174c03923:/# mariabackup --version
      mariabackup: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
      root@ca1174c03923:/# apt-get install -y libaio1
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following NEW packages will be installed:
        libaio1
      0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
      Need to get 9412 B of archives.
      [...]
      root@ca1174c03923:/# mariabackup --version
      mariabackup: error while loading shared libraries: libjemalloc.so.1: cannot open shared object file: No such file or directory
      root@ca1174c03923:/# apt-get install -y libjemalloc1
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following NEW packages will be installed:
        libjemalloc1
      0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
      Need to get 89.8 kB of archives.
      [...]
      root@ca1174c03923:/# mariabackup --version
      mariabackup: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory
      root@ca1174c03923:/# apt-get install -y libssl1.0.2
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following NEW packages will be installed:
        libssl1.0.2
      0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
      Need to get 1294 kB of archives.
      [...]
      root@ca1174c03923:/# mariabackup --version
      mariabackup based on MariaDB server 10.1.32-MariaDB debian-linux-gnu (x86_64) 
      

      • Kristian Klausen

      Attachments

        Activity

          Hi,
          I can confirm this dependencies problem.

          Trying to build/install the package adding these dependencies in the control file:
          https://github.com/fauust/mariadb/tree/10.1-MDEV-15869

          faust Faustin Lammler added a comment - Hi, I can confirm this dependencies problem. Trying to build/install the package adding these dependencies in the control file: https://github.com/fauust/mariadb/tree/10.1-MDEV-15869

          Hi,
          from generated deb, installation is now OK:

          root@318b3658d7af:/data# apt-get install ./mariadb-backup-10.1_10.1.33+maria-1~stretch_amd64.deb
          Reading package lists... Done
          Building dependency tree       
          Reading state information... Done
          Note, selecting 'mariadb-backup-10.1' instead of './mariadb-backup-10.1_10.1.33+maria-1~stretch_amd64.deb'
          The following additional packages will be installed:
            libaio1 libarchive13 libjemalloc1 liblzo2-2 libssl1.0-dev
          Suggested packages:
            lrzip
          The following NEW packages will be installed:
            libaio1 libarchive13 libjemalloc1 liblzo2-2 libssl1.0-dev mariadb-backup-10.1
          0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
          Need to get 2008 kB/6546 kB of archives.
          After this operation, 30.1 MB of additional disk space will be used.
          Do you want to continue? [Y/n]
          Get:1 http://deb.debian.org/debian stretch/main amd64 libaio1 amd64 0.3.110-3 [9412 B]
          Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 libssl1.0-dev amd64 1.0.2l-2+deb9u3 [1560 kB]
          Get:3 /data/mariadb-backup-10.1_10.1.33+maria-1~stretch_amd64.deb mariadb-backup-10.1 amd64 10.1.33+maria-1~stretch [4538 kB]
          Get:4 http://deb.debian.org/debian stretch/main amd64 liblzo2-2 amd64 2.08-1.2+b2 [55.0 kB]           
          Get:5 http://deb.debian.org/debian stretch/main amd64 libarchive13 amd64 3.2.2-2 [294 kB]
          Get:6 http://deb.debian.org/debian stretch/main amd64 libjemalloc1 amd64 3.6.0-9.1 [89.8 kB]
          Fetched 2008 kB in 0s (16.5 MB/s)       
          Selecting previously unselected package libaio1:amd64.
          (Reading database ... 20317 files and directories currently installed.)
          Preparing to unpack .../0-libaio1_0.3.110-3_amd64.deb ...
          Unpacking libaio1:amd64 (0.3.110-3) ...
          Selecting previously unselected package liblzo2-2:amd64.
          Preparing to unpack .../1-liblzo2-2_2.08-1.2+b2_amd64.deb ...
          Unpacking liblzo2-2:amd64 (2.08-1.2+b2) ...
          Selecting previously unselected package libarchive13:amd64.
          Preparing to unpack .../2-libarchive13_3.2.2-2_amd64.deb ...
          Unpacking libarchive13:amd64 (3.2.2-2) ...
          Selecting previously unselected package libssl1.0-dev:amd64.
          Preparing to unpack .../3-libssl1.0-dev_1.0.2l-2+deb9u3_amd64.deb ...
          Unpacking libssl1.0-dev:amd64 (1.0.2l-2+deb9u3) ...
          Selecting previously unselected package libjemalloc1.
          Preparing to unpack .../4-libjemalloc1_3.6.0-9.1_amd64.deb ...
          Unpacking libjemalloc1 (3.6.0-9.1) ...
          Selecting previously unselected package mariadb-backup-10.1.
          Preparing to unpack .../5-mariadb-backup-10.1_10.1.33+maria-1~stretch_amd64.deb ...
          Unpacking mariadb-backup-10.1 (10.1.33+maria-1~stretch) ...
          Setting up libjemalloc1 (3.6.0-9.1) ...
          Setting up libssl1.0-dev:amd64 (1.0.2l-2+deb9u3) ...
          Processing triggers for libc-bin (2.24-11+deb9u3) ...
          Setting up libaio1:amd64 (0.3.110-3) ...
          Setting up liblzo2-2:amd64 (2.08-1.2+b2) ...
          Setting up libarchive13:amd64 (3.2.2-2) ...
          Setting up mariadb-backup-10.1 (10.1.33+maria-1~stretch) ...
          Processing triggers for libc-bin (2.24-11+deb9u3) ...
          root@318b3658d7af:/data# mariabackup --version
          mariabackup based on MariaDB server 10.1.33-MariaDB debian-linux-gnu (x86_64)
          

          I will PR my modifications:
          https://github.com/fauust/mariadb/tree/10.1-MDEV-15869

          faust Faustin Lammler added a comment - Hi, from generated deb, installation is now OK: root@318b3658d7af: /data # apt-get install ./mariadb-backup-10.1_10.1.33+maria-1~stretch_amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'mariadb-backup-10.1' instead of './mariadb-backup-10.1_10.1.33+maria-1~stretch_amd64.deb' The following additional packages will be installed: libaio1 libarchive13 libjemalloc1 liblzo2-2 libssl1.0-dev Suggested packages: lrzip The following NEW packages will be installed: libaio1 libarchive13 libjemalloc1 liblzo2-2 libssl1.0-dev mariadb-backup-10.1 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 2008 kB /6546 kB of archives. After this operation, 30.1 MB of additional disk space will be used. Do you want to continue ? [Y /n ] Get:1 http: //deb .debian.org /debian stretch /main amd64 libaio1 amd64 0.3.110-3 [9412 B] Get:2 http: //security .debian.org /debian-security stretch /updates/main amd64 libssl1.0-dev amd64 1.0.2l-2+deb9u3 [1560 kB] Get:3 /data/mariadb-backup-10 .1_10.1.33+maria-1~stretch_amd64.deb mariadb-backup-10.1 amd64 10.1.33+maria-1~stretch [4538 kB] Get:4 http: //deb .debian.org /debian stretch /main amd64 liblzo2-2 amd64 2.08-1.2+b2 [55.0 kB] Get:5 http: //deb .debian.org /debian stretch /main amd64 libarchive13 amd64 3.2.2-2 [294 kB] Get:6 http: //deb .debian.org /debian stretch /main amd64 libjemalloc1 amd64 3.6.0-9.1 [89.8 kB] Fetched 2008 kB in 0s (16.5 MB /s ) Selecting previously unselected package libaio1:amd64. (Reading database ... 20317 files and directories currently installed.) Preparing to unpack ... /0-libaio1_0 .3.110-3_amd64.deb ... Unpacking libaio1:amd64 (0.3.110-3) ... Selecting previously unselected package liblzo2-2:amd64. Preparing to unpack ... /1-liblzo2-2_2 .08-1.2+b2_amd64.deb ... Unpacking liblzo2-2:amd64 (2.08-1.2+b2) ... Selecting previously unselected package libarchive13:amd64. Preparing to unpack ... /2-libarchive13_3 .2.2-2_amd64.deb ... Unpacking libarchive13:amd64 (3.2.2-2) ... Selecting previously unselected package libssl1.0-dev:amd64. Preparing to unpack ... /3-libssl1 .0-dev_1.0.2l-2+deb9u3_amd64.deb ... Unpacking libssl1.0-dev:amd64 (1.0.2l-2+deb9u3) ... Selecting previously unselected package libjemalloc1. Preparing to unpack ... /4-libjemalloc1_3 .6.0-9.1_amd64.deb ... Unpacking libjemalloc1 (3.6.0-9.1) ... Selecting previously unselected package mariadb-backup-10.1. Preparing to unpack ... /5-mariadb-backup-10 .1_10.1.33+maria-1~stretch_amd64.deb ... Unpacking mariadb-backup-10.1 (10.1.33+maria-1~stretch) ... Setting up libjemalloc1 (3.6.0-9.1) ... Setting up libssl1.0-dev:amd64 (1.0.2l-2+deb9u3) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Setting up libaio1:amd64 (0.3.110-3) ... Setting up liblzo2-2:amd64 (2.08-1.2+b2) ... Setting up libarchive13:amd64 (3.2.2-2) ... Setting up mariadb-backup-10.1 (10.1.33+maria-1~stretch) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... root@318b3658d7af: /data # mariabackup --version mariabackup based on MariaDB server 10.1.33-MariaDB debian-linux-gnu (x86_64) I will PR my modifications: https://github.com/fauust/mariadb/tree/10.1-MDEV-15869

          As discussed with otto,
          the best approach is to try to backport from 10.3 branch the minimal set of changes needed, working on it.

          faust Faustin Lammler added a comment - As discussed with otto , the best approach is to try to backport from 10.3 branch the minimal set of changes needed, working on it.

          This dependence problem was resolved with this PR:
          https://github.com/MariaDB/server/pull/771

          faust Faustin Lammler added a comment - This dependence problem was resolved with this PR: https://github.com/MariaDB/server/pull/771

          People

            faust Faustin Lammler
            klausenbusk Kristian Klausen
            Votes:
            1 Vote for this issue
            Watchers:
            6 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.