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

cracklib plugin built statically breaks debian builds

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.1.12
    • 10.1.13
    • Packaging
    • None
    • Debian

    Description

      I made this change:

      plugin/cracklib_password_check/CMakeLists.txt
       @@ -8,6 +8,7 @@ CHECK_INCLUDE_FILES (crack.h HAVE_CRACK_H)
        
        IF (HAVE_ALLOCA_H AND HAVE_CRACK_H AND HAVE_LIBCRACK AND HAVE_MEMCPY)
          MYSQL_ADD_PLUGIN(cracklib_password_check cracklib_password_check.c
       -                   LINK_LIBRARIES crack MODULE_ONLY
       -                   COMPONENT cracklib-password-check)
       +                   LINK_LIBRARIES crack
       +                   COMPONENT cracklib-password-check
       +                   DEFAULT)
        ENDIF()
      

      This causes the cracklib plugin to be built statically into the server. This works great for RPMs. This completely breaks Debian packaging.

      dh_movefiles: debian/tmp/usr/lib/mysql/plugin/cracklib_password_check.so not found (supposed to put it in mariadb-cracklib-password-check-10.1)
      	(cd debian/tmp >/dev/null ; tar --create --files-from=/home/buildbot/buildbot/build/mariadb-10.1.12/debian/movelist --file -) | (cd debian/mariadb-cracklib-password-check-10.1 >/dev/null ;tar xpf -)
      tar: /home/buildbot/buildbot/build/mariadb-10.1.12/debian/movelist: Cannot stat: No such file or directory
      tar: Error is not recoverable: exiting now
      tar: This does not look like a tar archive
      tar: Exiting with failure status due to previous errors
      dh_movefiles: (cd debian/tmp >/dev/null ; tar --create --files-from=/home/buildbot/buildbot/build/mariadb-10.1.12/debian/movelist --file -) | (cd debian/mariadb-cracklib-password-check-10.1 >/dev/null ;tar xpf -) returned exit code 2
      debian/rules:119: recipe for target 'install' failed
      make: *** [install] Error 2
      dpkg-buildpackage: error: debian/rules binary gave error exit status 2
      

      Attachments

        Activity

          People

            kolbe Kolbe Kegel (Inactive)
            kolbe Kolbe Kegel (Inactive)
            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.