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

cpack rpm with multiple archs of libsepol installed detects verison incorrectly

    XMLWordPrintable

Details

    Description

      On a system its quite easy to have x86 and x86_64 package installed.

      $ dnf info libsepol
      Last metadata expiration check: 3:52:47 ago on Thu 30 Dec 2021 12:38:03.
      Installed Packages
      Name         : libsepol
      Version      : 3.3
      Release      : 2.fc35
      Architecture : i686
      Size         : 802 k
      ...
       
      Name         : libsepol
      Version      : 3.3
      Release      : 2.fc35
      Architecture : x86_64
      Size         : 738 k
      Source       : libsepol-3.3-2.fc35.src.rpm
      Repository   : @
      

      RPM -qf used to determine the installed version dillegenly appends the two:

      $ rpm -q --qf "%{VERSION}" libsepol
      3.33.3
      

      Resulting in a rather unobtainable version number.

      A more accurate representation is:

      $ rpm -q --qf "%{VERSION}" libsepol.x86_64
      3.3
      

      Attachments

        Activity

          People

            danblack Daniel Black
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.