Details

    Description

      Tried to build 10.2 (using 3.16.4) and then install it:

      STDERR: Error: Transaction test error:
        file /usr/share/man/man1 from install of MariaDB-client-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
        file /usr/share/man/man1 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
        file /usr/share/man/man8 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
        file /usr/lib/sysusers.d from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package systemd-239-31.el8_2.2.x86_64
      ---- End output of ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] ----
      Ran ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] returned 1
      

      short investigation showed:

      Attachments

        Activity

          tturenko Timofey Turenko created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Description Tried to build 10.2 (using 3.16.4) and then install it:


          {noformat}
          STDERR: Error: Transaction test error:
            file /usr/share/man/man1 from install of MariaDB-client-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man1 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man8 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/lib/sysusers.d from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package systemd-239-31.el8_2.2.x86_64
          ---- End output of ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] ----
          Ran ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] returned 1
          {noformat}


          short investigation showed:
          - there is fixed bugs https://jira.mariadb.org/browse/MDEV-22813 and MENT-727
          - fix is in all branches of Enterprise (10.2 commit https://github.com/mariadb-corporation/MariaDBEnterprise/commit/e73584a018133766d93d90050a3e564bffdc1fe2)
          - fix is in >= 10.3 community (https://github.com/MariaDB/server/commit/7337abd2f7b0104f2a6c862c1829ac3a034d89a2)
          - if build is done with `sudo make package' instead of just 'make package' everything is ok (cmake bug?)
          - community BB uses cmake







          Tried to build 10.2 (using 3.16.4) and then install it:


          {noformat}
          STDERR: Error: Transaction test error:
            file /usr/share/man/man1 from install of MariaDB-client-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man1 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man8 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/lib/sysusers.d from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package systemd-239-31.el8_2.2.x86_64
          ---- End output of ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] ----
          Ran ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] returned 1
          {noformat}


          short investigation showed:
          - there is fixed bugs MDEV-22813 and MENT-727
          - fix is in all branches of Enterprise (10.2 commit https://github.com/mariadb-corporation/MariaDBEnterprise/commit/e73584a018133766d93d90050a3e564bffdc1fe2)
          - fix is in >= 10.3 community (https://github.com/MariaDB/server/commit/7337abd2f7b0104f2a6c862c1829ac3a034d89a2)
          - if build is done with `sudo make package' instead of just 'make package' everything is ok (cmake bug?)
          - community BB uses cmake







          serg Sergei Golubchik made changes -
          Component/s Packaging [ 14956 ]
          Component/s Packaging [ 10700 ]
          Key MDEV-24013 MENT-978
          Affects Version/s 10.2 [ 23606 ]
          Affects Version/s 10.2 [ 14601 ]
          Project MariaDB Server [ 10000 ] MariaDB Enterprise [ 11500 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.2 [ 23606 ]

          How do I repeat it? Build where? How?

          serg Sergei Golubchik added a comment - How do I repeat it? Build where? How?
          serg Sergei Golubchik made changes -
          Labels need_feedback
          julien.fritsch Julien Fritsch made changes -
          Assignee Sergei Golubchik [ serg ] Timofey Turenko [ tturenko ]
          tturenko Timofey Turenko made changes -
          Fix Version/s 10.2.34-9 [ 24248 ]
          Fix Version/s 10.2 [ 23606 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          julien.fritsch Julien Fritsch made changes -
          Labels need_feedback
          tturenko Timofey Turenko added a comment - - edited

          my build process:

          build source tar

          git submodule init
          git submodule update
          cd build
          cmake ..
          make package_source
           
          
          

          build RPM:

          tar xf *.tar.gz --strip-components=1 -C server
           
          rm -fr /home/timofey_turenko_mariadb_com/server/scripts/../build
          mkdir -p /home/timofey_turenko_mariadb_com/server/scripts/../build /home/timofey_turenko_mariadb_com/server/scripts/../target
          cd /home/timofey_turenko_mariadb_com/server/scripts/../build
          curl -o /home/timofey_turenko_mariadb_com/server/scripts/../../MariaDB-shared-5.3.x.rpm http://yum.mariadb.org/5.3/centos5-amd64/rpms/MariaDB-shared-5.3.12-122.el5.x86_64.rpm
          curl -o /home/timofey_turenko_mariadb_com/server/scripts/../../MariaDB-shared-10.1.x.rpm http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-shared-10.1.41-1.el7.centos.x86_64.rpm
          cmake .. -DSPIDER_WITH_UNIXODBC=ON -DRPM=rhel7 -DCMAKE_BUILD_TYPE=RelWithDebInfo
          make -j8 package VERBOSE=1
          

          cmake version is 3.16.4

          it is not reproducible with >= 10.3 after https://github.com/MariaDB/server/commit/7337abd2f7b0104f2a6c862c1829ac3a034d89a2

          some info also here https://jira.mariadb.org/browse/MDEV-22813

          I do not understand how does it work in http://buildbot.askmonty.org/ (different cmake version?) and why `sudo make package` solves the problem.

          tturenko Timofey Turenko added a comment - - edited my build process: build source tar git submodule init git submodule update cd build cmake .. make package_source   build RPM: tar xf *.tar.gz --strip-components=1 -C server   rm -fr /home/timofey_turenko_mariadb_com/server/scripts/../build mkdir -p /home/timofey_turenko_mariadb_com/server/scripts/../build /home/timofey_turenko_mariadb_com/server/scripts/../target cd /home/timofey_turenko_mariadb_com/server/scripts/../build curl -o /home/timofey_turenko_mariadb_com/server/scripts/../../MariaDB-shared-5.3.x.rpm http://yum.mariadb.org/5.3/centos5-amd64/rpms/MariaDB-shared-5.3.12-122.el5.x86_64.rpm curl -o /home/timofey_turenko_mariadb_com/server/scripts/../../MariaDB-shared-10.1.x.rpm http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-shared-10.1.41-1.el7.centos.x86_64.rpm cmake .. -DSPIDER_WITH_UNIXODBC=ON -DRPM=rhel7 -DCMAKE_BUILD_TYPE=RelWithDebInfo make -j8 package VERBOSE=1 cmake version is 3.16.4 it is not reproducible with >= 10.3 after https://github.com/MariaDB/server/commit/7337abd2f7b0104f2a6c862c1829ac3a034d89a2 some info also here https://jira.mariadb.org/browse/MDEV-22813 I do not understand how does it work in http://buildbot.askmonty.org/ (different cmake version?) and why `sudo make package` solves the problem.
          tturenko Timofey Turenko made changes -
          Component/s Packaging [ 10700 ]
          Component/s Packaging [ 14956 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.2.34-9 [ 24248 ]
          Key MENT-978 MDEV-24996
          Affects Version/s 10.2 [ 14601 ]
          Affects Version/s 10.2 [ 23606 ]
          Project MariaDB Enterprise [ 11500 ] MariaDB Server [ 10000 ]
          tturenko Timofey Turenko made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Stalled [ 10000 ]

          We don't build 10.2 on RHEL/CentOS 8 because they have 10.3 in their repositories. I'm not saying that that is what is causing the issue, just that in general MariaDB 10.2 rpms are going to have issues related to the package manager seeing its own version of MariaDB as a higher version and will constantly want to upgrade it unless you do something to stop it. I can't remember how right now on RHEL/CentOS, on Debian/Ubuntu you 'pin' the package to prevent apt from trying to update it, but anyway, the short answer is that because they already have 10.3 we don't build 10.2 for it.

          dbart Daniel Bartholomew added a comment - We don't build 10.2 on RHEL/CentOS 8 because they have 10.3 in their repositories. I'm not saying that that is what is causing the issue, just that in general MariaDB 10.2 rpms are going to have issues related to the package manager seeing its own version of MariaDB as a higher version and will constantly want to upgrade it unless you do something to stop it. I can't remember how right now on RHEL/CentOS, on Debian/Ubuntu you 'pin' the package to prevent apt from trying to update it, but anyway, the short answer is that because they already have 10.3 we don't build 10.2 for it.

          it is RHEL 7

          tturenko Timofey Turenko added a comment - it is RHEL 7

          it is still reproducible. I can't get proper CS PRM package.

          tturenko Timofey Turenko added a comment - it is still reproducible. I can't get proper CS PRM package.
          julien.fritsch Julien Fritsch made changes -
          Assignee Timofey Turenko [ tturenko ] Daniel Bartholomew [ dbart ]
          julien.fritsch Julien Fritsch made changes -
          Priority Major [ 3 ] Critical [ 2 ]

          Not sure I'm the correct person for this, but I will try to repeat and see if I can get a better understanding of the issue.

          dbart Daniel Bartholomew added a comment - Not sure I'm the correct person for this, but I will try to repeat and see if I can get a better understanding of the issue.

          I was not able to reproduce on our CentOS 7 builder (which uses cmake 3.14.0) building the latest MariaDB 10.2.38.

          The commands I used to build MariaDB were the same as in our buildbot:

          # first download the shared rpms and MariaDB source tarball to the build VM, then:
          cd;rm -Rf buildbot && mkdir -v buildbot && cd buildbot
          mkdir padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX && cd $_
          mkdir -v rpms srpms
          cp -v ~/*shared*rpm .
          tar xf ~/${release_ver}.tar.gz ; cd ${release_ver}
          cmake .  -DBUILD_CONFIG=mysql_release $NO_DEBUGINFO -DCMAKE_COMMAND_DEP=cmake -DRPM=centos74
          umask 022
          if grep -qw CPACK_RPM_SOURCE_PKG_BUILD_PARAMS CPackSourceConfig.cmake; then
            make package_source
            mv -v *.src.rpm ../srpms/
          fi
          make -j4 package VERBOSE=1
          mv -v *.rpm ../rpms
          

          Then to install, I had to first remove CentOS's mariadb-libs package first, which was expected, but there was no conflict seen with the filesystem package. Commands run were:

          sudo yum remove mariadb-libs
          sudo yum -y install ~/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-server-10.2.38-1.el7.centos.x86_64.rpm \
              ~/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-client-10.2.38-1.el7.centos.x86_64.rpm \
              ~/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-common-10.2.38-1.el7.centos.x86_64.rpm \
              ~/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-shared-10.2.38-1.el7.centos.x86_64.rpm
          

          dbart Daniel Bartholomew added a comment - I was not able to reproduce on our CentOS 7 builder (which uses cmake 3.14.0) building the latest MariaDB 10.2.38. The commands I used to build MariaDB were the same as in our buildbot: # first download the shared rpms and MariaDB source tarball to the build VM, then: cd ; rm -Rf buildbot && mkdir - v buildbot && cd buildbot mkdir padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX && cd $_ mkdir - v rpms srpms cp - v ~/*shared*rpm . tar xf ~/${release_ver}. tar .gz ; cd ${release_ver} cmake . -DBUILD_CONFIG=mysql_release $NO_DEBUGINFO -DCMAKE_COMMAND_DEP=cmake -DRPM=centos74 umask 022 if grep -qw CPACK_RPM_SOURCE_PKG_BUILD_PARAMS CPackSourceConfig.cmake; then make package_source mv - v *.src.rpm .. /srpms/ fi make -j4 package VERBOSE=1 mv - v *.rpm .. /rpms Then to install, I had to first remove CentOS's mariadb-libs package first, which was expected, but there was no conflict seen with the filesystem package. Commands run were: sudo yum remove mariadb-libs sudo yum -y install ~ /buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-server-10 .2.38-1.el7.centos.x86_64.rpm \ ~ /buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-client-10 .2.38-1.el7.centos.x86_64.rpm \ ~ /buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-common-10 .2.38-1.el7.centos.x86_64.rpm \ ~ /buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/rpms/MariaDB-shared-10 .2.38-1.el7.centos.x86_64.rpm
          serg Sergei Golubchik made changes -
          Assignee Daniel Bartholomew [ dbart ] Sergei Golubchik [ serg ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.2.39 [ 25731 ]
          Fix Version/s 10.2 [ 14601 ]
          Resolution Fixed [ 1 ]
          Status Stalled [ 10000 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.3.30 [ 25732 ]
          Fix Version/s 10.4.20 [ 25733 ]
          Fix Version/s 10.5.11 [ 25734 ]
          serg Sergei Golubchik made changes -
          Description Tried to build 10.2 (using 3.16.4) and then install it:


          {noformat}
          STDERR: Error: Transaction test error:
            file /usr/share/man/man1 from install of MariaDB-client-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man1 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man8 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/lib/sysusers.d from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package systemd-239-31.el8_2.2.x86_64
          ---- End output of ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] ----
          Ran ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] returned 1
          {noformat}


          short investigation showed:
          - there is fixed bugs MDEV-22813 and MENT-727
          - fix is in all branches of Enterprise (10.2 commit https://github.com/mariadb-corporation/MariaDBEnterprise/commit/e73584a018133766d93d90050a3e564bffdc1fe2)
          - fix is in >= 10.3 community (https://github.com/MariaDB/server/commit/7337abd2f7b0104f2a6c862c1829ac3a034d89a2)
          - if build is done with `sudo make package' instead of just 'make package' everything is ok (cmake bug?)
          - community BB uses cmake







          Tried to build 10.2 (using 3.16.4) and then install it:


          {noformat}
          STDERR: Error: Transaction test error:
            file /usr/share/man/man1 from install of MariaDB-client-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man1 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/share/man/man8 from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64
            file /usr/lib/sysusers.d from install of MariaDB-server-10.2.35-1.el8.x86_64 conflicts with file from package systemd-239-31.el8_2.2.x86_64
          ---- End output of ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] ----
          Ran ["dnf", "-y", "install", "MariaDB-server-0:10.2.35-1.el8.x86_64"] returned 1
          {noformat}


          short investigation showed:
          - there is fixed bugs MDEV-22813 and MENT-727
          - fix is in >= 10.3 (https://github.com/MariaDB/server/commit/7337abd2f7b0104f2a6c862c1829ac3a034d89a2)
          - if build is done with `sudo make package' instead of just 'make package' everything is ok (cmake bug?)
          - community BB uses cmake







          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 114874 ] MariaDB v4 [ 158496 ]

          People

            serg Sergei Golubchik
            tturenko Timofey Turenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.