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

CPack suppresses errors and silently omits building packages




      I've set affected versions to 10.3/10.4 because the real buildbot evidence exists only for them, but I suspect it would be all the same for all versions.

      On Rocky Linux / Alma, 10.3-10.4 RocksDB packages don't get created due to a shebang error:

      + /usr/lib/rpm/redhat/brp-ldconfig
      /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.37/_CPack_Packages/Linux/RPM/mariadb-10.3.37-linux-x86_64/rocksdb-engine/etc/ld.so.conf: No such file or directory
      + /usr/lib/rpm/brp-compress
      + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
      + /usr/lib/rpm/brp-python-bytecompile '' 1
      + /usr/lib/rpm/brp-python-hardlink
      + PYTHON3=/usr/libexec/platform-python
      + /usr/lib/rpm/redhat/brp-mangle-shebangs
      *** ERROR: ambiguous python shebang in /usr/bin/myrocks_hotbackup: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
      error: Bad exit status from /var/tmp/rpm-tmp.j02EyN (%install)
          Bad exit status from /var/tmp/rpm-tmp.j02EyN (%install)
      CPackRPM:Debug:    - /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.37/_CPack_Packages/Linux/RPM/rpmbuildMariaDB-rocksdb-engine.out
      CPackRPM:Debug: *** Building target platforms: x86_64
      Building for target x86_64
      Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7G3jJN
      Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.j02EyN
      extracting debug info from /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.37/_CPack_Packages/Linux/RPM/mariadb-10.3.37-linux-x86_64/rocksdb-engine/usr/bin/sst_dump
      extracting debug info from /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.37/_CPack_Packages/Linux/RPM/mariadb-10.3.37-linux-x86_64/rocksdb-engine/usr/bin/mysql_ldb
      extracting debug info from /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.3.37/_CPack_Packages/Linux/RPM/mariadb-10.3.37-linux-x86_64/rocksdb-engine/usr/lib64/mysql/plugin/ha_rocksdb.so
      /usr/lib/rpm/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match.
      RPM build errors:

      It's a minor problem in itself, because we release packages from RHEL anyway, so it only affects testing. The bigger problem is that the build doesn't abort after that, but continues running and eventually builds a bunch of packages, without RocksDB among them. In theory, it can hide any errors this way, so it seems quite dangerous.


        Issue Links



              serg Sergei Golubchik
              elenst Elena Stepanova
              0 Vote for this issue
              2 Start watching this issue



                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.