Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 10.5, 10.6
    • N/A
    • Packaging
    • None

    Description

      bintars depend on dynamic libraries. This is unavoidable, but generally it should have as few dependencies as possible.

      Avoidable dependencies seem to be

      • libaio.so.1
      • libncurses.so.5
      • libtinfo.so.5
      • liblzma.so.5 (new in 10.6!)

      We should try to link them statically if possible. In particular the last one, it's a new dependency that 10.5 doesn't have.

      Also, lz4 could be statically compiled, so that we would have lz4-enabled bintars, to match the feature set of rpm and deb packages.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            Is a static zstd possible for rocksdb (zstd >=1.1.3)?

            current libraries for rocksdb.so

            $ ldd mariadb-10.2.40-linux-systemd-x86_64/lib/plugin/ha_rocksdb.so
            ldd: warning: you do not have execution permission for `mariadb-10.2.40-linux-systemd-x86_64/lib/plugin/ha_rocksdb.so'
            	linux-vdso.so.1 (0x00007ffe33f6a000)
            	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc4a0ee3000)
            	libdl.so.2 => /lib64/libdl.so.2 (0x00007fc4a0edc000)
            	librt.so.1 => /lib64/librt.so.1 (0x00007fc4a0ed1000)
            	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fc4a0cb2000)
            	libm.so.6 => /lib64/libm.so.6 (0x00007fc4a0b6e000)
            	libc.so.6 => /lib64/libc.so.6 (0x00007fc4a099f000)
            	/lib64/ld-linux-x86-64.so.2 (0x00007fc4a1768000)
            	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc4a0982000)
            

            This would resolve MDEV-13281

            danblack Daniel Black added a comment - Is a static zstd possible for rocksdb (zstd >=1.1.3)? current libraries for rocksdb.so $ ldd mariadb-10.2.40-linux-systemd-x86_64/lib/plugin/ha_rocksdb.so ldd: warning: you do not have execution permission for `mariadb-10.2.40-linux-systemd-x86_64/lib/plugin/ha_rocksdb.so' linux-vdso.so.1 (0x00007ffe33f6a000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc4a0ee3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc4a0edc000) librt.so.1 => /lib64/librt.so.1 (0x00007fc4a0ed1000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fc4a0cb2000) libm.so.6 => /lib64/libm.so.6 (0x00007fc4a0b6e000) libc.so.6 => /lib64/libc.so.6 (0x00007fc4a099f000) /lib64/ld-linux-x86-64.so.2 (0x00007fc4a1768000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc4a0982000) This would resolve MDEV-13281

            I'm going to close this as 'done' for now. We can revisit and reopen, or create a new issue, later if necessary.

            dbart Daniel Bartholomew added a comment - I'm going to close this as 'done' for now. We can revisit and reopen, or create a new issue, later if necessary.

            I ran into this in a support ticket regarding Ubuntu. Recent releases do not include libncurses5 and libtinfo5. Solution tested on Ubuntu 20.04.6 LTS (Focal Fossa):

            wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.2-0ubuntu2.1_amd64.deb
            wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.2-0ubuntu2.1_amd64.deb
            md5sum lib*
            dd4899b9818c08b1dc0c30311af49c2a libncurses5_6.2-0ubuntu2.1_amd64.deb
            e5107f48531e7f2ef07e54e7d2c41163 libtinfo5_6.2-0ubuntu2.1_amd64.deb
             
            dpkg -i ./libtinfo5_6.2-0ubuntu2.1_amd64.deb
            dpkg -i ./libncurses5_6.2-0ubuntu2.1_amd64.deb
            

            edward Edward Stoever added a comment - I ran into this in a support ticket regarding Ubuntu. Recent releases do not include libncurses5 and libtinfo5. Solution tested on Ubuntu 20.04.6 LTS (Focal Fossa): wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.2-0ubuntu2.1_amd64.deb wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.2-0ubuntu2.1_amd64.deb md5sum lib* dd4899b9818c08b1dc0c30311af49c2a libncurses5_6.2-0ubuntu2.1_amd64.deb e5107f48531e7f2ef07e54e7d2c41163 libtinfo5_6.2-0ubuntu2.1_amd64.deb   dpkg -i ./libtinfo5_6.2-0ubuntu2.1_amd64.deb dpkg -i ./libncurses5_6.2-0ubuntu2.1_amd64.deb

            Please consider reopening this issue. Ubuntu 23.10 (and, as I understand, Debian newer than "Bookworm") does NOT include libncurses5 any more, so the MariaDB binary distribution becomes uninstallable out of the box on this distribution - and supposedly also on Ubuntu 24.04 LTS.

            You CAN circumvent the problem by installing libncurses5 from an older Ubuntu distribution as described in the comment above, but that's surely not sustainable.

            dh@cantamen.de Dirk Hillbrecht added a comment - Please consider reopening this issue. Ubuntu 23.10 (and, as I understand, Debian newer than "Bookworm") does NOT include libncurses5 any more, so the MariaDB binary distribution becomes uninstallable out of the box on this distribution - and supposedly also on Ubuntu 24.04 LTS. You CAN circumvent the problem by installing libncurses5 from an older Ubuntu distribution as described in the comment above, but that's surely not sustainable.
            danblack Daniel Black added a comment -

            Yes, with MDEV-32111 - in the current release (that is in progress) its changed and will be ncurses(6).

            Or use containers.

            danblack Daniel Black added a comment - Yes, with MDEV-32111 - in the current release (that is in progress) its changed and will be ncurses(6). Or use containers .

            People

              dbart Daniel Bartholomew
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              10 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.