+ qemu-img create -o compat=0.10 -b /kvm/vms/vm-rhel9-aarch64-install.qcow2 -f qcow2 -F qcow2 vm-tmp-2235.qcow2
Formatting 'vm-tmp-2235.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=137438953472 compat=0.10 backing_file=/kvm/vms/vm-rhel9-aarch64-install.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
+ /bin/cp -v /kvm/vms/vm-rhel9-aarch64-install.qcow2-flash0.img vm-tmp-2235.qcow2-flash0.img
'/kvm/vms/vm-rhel9-aarch64-install.qcow2-flash0.img' -> 'vm-tmp-2235.qcow2-flash0.img'
+ /bin/cp -v /kvm/vms/vm-rhel9-aarch64-install.qcow2-flash1.img vm-tmp-2235.qcow2-flash1.img
'/kvm/vms/vm-rhel9-aarch64-install.qcow2-flash1.img' -> 'vm-tmp-2235.qcow2-flash1.img'
+ kvm -m 8192 -M virt,gic_version=3 -drive file=vm-tmp-2235.qcow2-flash0.img,if=pflash,format=raw,unit=0,readonly=on -drive file=vm-tmp-2235.qcow2-flash1.img,if=pflash,format=raw,unit=1 -drive id=hd0,file=vm-tmp-2235.qcow2,if=none -device virtio-blk-device,drive=hd0 -netdev 'user,id=net0,hostfwd=tcp:127.0.0.1:2235-:22' -device virtio-net-device,netdev=net0,id=net0 -k en-us -nographic -boot order=c -smp 4 -cpu host -pidfile /var/lib/buildbot/.runvmkvm_2235.pid
+ ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=4 -p 2235 -l buildbot localhost true
+ ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=4 -p 2235 -l buildbot localhost true
+ ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=4 -p 2235 -l buildbot localhost true
+ rm -Rf buildbot && mkdir buildbot
= scp -r -P 2235 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no rpms srpms buildbot@localhost:buildbot/
Warning: Permanently added '[localhost]:2235' (ED25519) to the list of known hosts.
+ 
set -ex
df -kT
cd buildbot
. /etc/os-release

if command -v zypper > /dev/null; then
    rpm -q --requires -p srpms/*.src.rpm | xargs sudo zypper install -y -l rpm-build
elif [ "$ID" == "almalinux" ] && [[ "$VERSION" =~ ^8 ]] ; then
    sudo dnf clean all --refresh -y
    sudo dnf install dnf-plugins-core -y
    sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
    sudo dnf config-manager --enable epel
    sudo dnf config-manager --set-enabled powertools
    sudo dnf module -y enable mariadb-devel || true
    sudo dnf --setopt=install_weak_deps=False install -y rpm-build perl-generators
    sudo dnf --setopt=install_weak_deps=False builddep -y srpms/*.src.rpm
elif command -v dnf > /dev/null; then
    if [ -f /usr/bin/subscription-manager ] ; then
      sudo subscription-manager refresh
      sudo dnf config-manager --enable codeready-builder-for-rhel-8-aarch64-rpms || true
    else
      sudo dnf config-manager --enable PowerTools || true
    fi
    ## See MDEV-27364 (jemalloc discrepancy)
    ## Let's keep it here but commented until the decision is made what to do about it
    # if [[ "10.5" =~ 10.[234] ]] && ! rpm -qa | grep jemalloc ; then
    #   sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm || true
    #   sudo dnf -y install jemalloc jemalloc-devel || true
    # fi
    sudo dnf module -y enable mariadb-devel || true
    sudo dnf --setopt=install_weak_deps=False install -y rpm-build perl-generators
    sudo dnf --setopt=install_weak_deps=False builddep -y srpms/*.src.rpm
else # yum
    sudo yum install -y rpm-build yum-utils
    sudo yum-builddep -y srpms/*.src.rpm
fi

rpmbuild --rebuild srpms/*.src.rpm

### compare rpms
# MariaDB-compat cannot be built from srpm, so remove it and all
# dependencies on it.
rm -fv rpms/*-compat-*rpm

case "kvm-rpm-rhel9-aarch64/10.5" in
  kvm-zyp-sles123-amd64/*|kvm-zyp-sles125-amd64/*)
    # There's no libjudy in sles123 repositories
    rm -fv rpms/*-oqgraph-*rpm
    ;;
esac

# compare requirements to ensure rebuilt rpms got all libraries right
echo rpms/*.rpm           |xargs -n1 rpm -q --requires -p|sed -e 's/>=.*/>=/; s/([A-Z0-9._]*)([0-9]*bit)$//; /MariaDB-compat/d'|sort -u>requires-vendor.txt
echo ~/rpmbuild/RPMS/*.rpm|xargs -n1 rpm -q --requires -p|sed -e 's/>=.*/>=/; s/([A-Z0-9._]*)([0-9]*bit)$//                   '|sort -u>requires-rebuilt.txt
diff -u requires-*.txt

# check if rpm filenames match (won't be true on centos7)
# and if they do, compare more, e.g. file lists and scriptlets

echo "All done"

+ df -kT
Filesystem     Type     1K-blocks    Used Available Use% Mounted on
devtmpfs       devtmpfs   3809816       0   3809816   0% /dev
tmpfs          tmpfs      3825068       0   3825068   0% /dev/shm
tmpfs          tmpfs      1530028    8788   1521240   1% /run
/dev/vda4      xfs       73364480 2568832  70795648   4% /
/dev/vda5      xfs       50887400  998328  49889072   2% /home
/dev/vda2      xfs        1038336  271480    766856  27% /boot
/dev/vda1      vfat        613160    7136    606024   2% /boot/efi
tmpfs          tmpfs       765012       0    765012   0% /run/user/1001
+ cd buildbot
+ . /etc/os-release
++ NAME='Red Hat Enterprise Linux'
++ VERSION='9.0 (Plow)'
++ ID=rhel
++ ID_LIKE=fedora
++ VERSION_ID=9.0
++ PLATFORM_ID=platform:el9
++ PRETTY_NAME='Red Hat Enterprise Linux 9.0 (Plow)'
++ ANSI_COLOR='0;31'
++ LOGO=fedora-logo-icon
++ CPE_NAME=cpe:/o:redhat:enterprise_linux:9::baseos
++ HOME_URL=https://www.redhat.com/
++ DOCUMENTATION_URL=https://access.redhat.com/documentation/red_hat_enterprise_linux/9/
++ BUG_REPORT_URL=https://bugzilla.redhat.com/
++ REDHAT_BUGZILLA_PRODUCT='Red Hat Enterprise Linux 9'
++ REDHAT_BUGZILLA_PRODUCT_VERSION=9.0
++ REDHAT_SUPPORT_PRODUCT='Red Hat Enterprise Linux'
++ REDHAT_SUPPORT_PRODUCT_VERSION=9.0
+ command -v zypper
+ '[' rhel == almalinux ']'
+ command -v dnf
+ '[' -f /usr/bin/subscription-manager ']'
+ sudo subscription-manager refresh
All local data refreshed
+ sudo dnf config-manager --enable codeready-builder-for-rhel-8-aarch64-rpms
Updating Subscription Management repositories.
Error: No matching repo to modify: codeready-builder-for-rhel-8-aarch64-rpms.
+ true
+ sudo dnf module -y enable mariadb-devel
Updating Subscription Management repositories.
Red Hat Enterprise L     [===                 ] ---  B/s |   0  B     --:-- ETARed Hat Enterprise L100% [====================] 8.8 kB/s | 4.1 kB     00:00 ETARed Hat Enterprise Linux 9 for ARM 64 - AppStre 8.8 kB/s | 4.1 kB     00:00    
Red Hat Enterprise L     [===                 ] ---  B/s |   0  B     --:-- ETARed Hat Enterprise L     [   ===              ] ---  B/s |   0  B     --:-- ETARed Hat Enterprise L     [      ===           ] ---  B/s |   0  B     --:-- ETARed Hat Enterprise L  5% [=                   ] 1.1 MB/s | 352 kB     00:05 ETARed Hat Enterprise L  0% [                    ] 1.1 MB/s |   0  B     00:05 ETARed Hat Enterprise Linux 9 for ARM 64 - AppStre 4.5 MB/s | 7.1 MB     00:01    
Red Hat Enterprise L     [         ===        ] ---  B/s |   0  B     --:-- ETARed Hat Enterprise L100% [====================] 9.7 kB/s | 4.1 kB     00:00 ETARed Hat Enterprise Linux 9 for ARM 64 - BaseOS  9.6 kB/s | 4.1 kB     00:00    
Error: Problems in request:
missing groups or modules: mariadb-devel
+ true
+ sudo dnf --setopt=install_weak_deps=False install -y rpm-build perl-generators
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:01 ago on Wed 27 Jul 2022 04:57:05 PM UTC.
Dependencies resolved.
======================================================================================
 Package           Arch     Version           Repository                          Size
======================================================================================
Installing:
 perl-generators   noarch   1.11-12.el9       rhel-9-for-aarch64-appstream-rpms   18 k
 rpm-build         aarch64  4.16.1.3-12.el9_0 rhel-9-for-aarch64-appstream-rpms  107 k
Installing dependencies:
 elfutils          aarch64  0.186-1.el9       rhel-9-for-aarch64-baseos-rpms     528 k
 perl-Fedora-VSP   noarch   0.001-23.el9      rhel-9-for-aarch64-appstream-rpms   25 k

Transaction Summary
======================================================================================
Install  4 Packages

Total download size: 678 k
Installed size: 3.7 M
Downloading Packages:
(1/4): rpm-build-4.1  0% [                    ] ---  B/s |   0  B     --:-- ETA(1-3/4): rpm-build-4  0% [                    ] ---  B/s |   0  B     --:-- ETA(1/4): perl-Fedora-VSP-0.001-23.el9.noarch.rpm   53 kB/s |  25 kB     00:00    
(2-3/4): perl-genera  3% [-                   ] 154 kB/s |  25 kB     00:04 ETA(2/4): rpm-build-4.16.1.3-12.el9_0.aarch64.rpm  177 kB/s | 107 kB     00:00    
(3-4/4): elfutils-0. 19% [===-                ] 171 kB/s | 132 kB     00:03 ETA(3/4): perl-generators-1.11-12.el9.noarch.rpm    20 kB/s |  18 kB     00:00    
(4/4): elfutils-0.18 29% [=====-              ] 175 kB/s | 199 kB     00:02 ETA(4/4): elfutils-0.18 76% [===============     ] 228 kB/s | 521 kB     00:00 ETA(4/4): elfutils-0.186-1.el9.aarch64.rpm         611 kB/s | 528 kB     00:00    
--------------------------------------------------------------------------------
Total                                           503 kB/s | 678 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :  [============                                       ] 1/1  Preparing        :  [=========================                          ] 1/1  Preparing        :  [======================================             ] 1/1  Preparing        :                                                        1/1 
  Installing       : elfutils-0.186-1.el9.aarc [                          ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=                         ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [==                        ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [===                       ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [====                      ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=====                     ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [======                    ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=======                   ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [========                  ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=========                 ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [==========                ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [===========               ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [============              ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=============             ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [==============            ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [===============           ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [================          ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=================         ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [==================        ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [===================       ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [====================      ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=====================     ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [======================    ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [=======================   ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [========================  ] 1/4  Installing       : elfutils-0.186-1.el9.aarc [========================= ] 1/4  Installing       : elfutils-0.186-1.el9.aarch64                           1/4 
  Installing       : perl-Fedora-VSP-0.001-23. [                          ] 2/4  Installing       : perl-Fedora-VSP-0.001-23. [====================      ] 2/4  Installing       : perl-Fedora-VSP-0.001-23. [=====================     ] 2/4  Installing       : perl-Fedora-VSP-0.001-23. [=======================   ] 2/4  Installing       : perl-Fedora-VSP-0.001-23. [========================= ] 2/4  Installing       : perl-Fedora-VSP-0.001-23.el9.noarch                    2/4 
  Installing       : perl-generators-1.11-12.e [                          ] 3/4  Installing       : perl-generators-1.11-12.e [========                  ] 3/4  Installing       : perl-generators-1.11-12.e [======================    ] 3/4  Installing       : perl-generators-1.11-12.e [========================  ] 3/4  Installing       : perl-generators-1.11-12.e [========================= ] 3/4  Installing       : perl-generators-1.11-12.el9.noarch                     3/4 
  Installing       : rpm-build-4.16.1.3-12.el9 [                          ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=                         ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [===                       ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=====                     ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=======                   ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [========                  ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [==========                ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [===========               ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [============              ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=============             ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [===============           ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [================          ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=================         ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [==================        ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [====================      ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=====================     ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [=======================   ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9 [========================= ] 4/4  Installing       : rpm-build-4.16.1.3-12.el9_0.aarch64                    4/4 
  Running scriptlet: rpm-build-4.16.1.3-12.el9_0.aarch64                    4/4 
  Verifying        : rpm-build-4.16.1.3-12.el9_0.aarch64                    1/4 
  Verifying        : perl-generators-1.11-12.el9.noarch                     2/4 
  Verifying        : perl-Fedora-VSP-0.001-23.el9.noarch                    3/4 
  Verifying        : elfutils-0.186-1.el9.aarch64                           4/4 
Installed products updated.

Installed:
  elfutils-0.186-1.el9.aarch64           perl-Fedora-VSP-0.001-23.el9.noarch    
  perl-generators-1.11-12.el9.noarch     rpm-build-4.16.1.3-12.el9_0.aarch64    

Complete!
+ sudo dnf --setopt=install_weak_deps=False builddep -y srpms/MariaDB-10.5.17-1.el9.src.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:04 ago on Wed 27 Jul 2022 04:57:05 PM UTC.
No matching package to install: 'Judy-devel'
Package binutils-2.35.2-17.el9.aarch64 is already installed.
Package checkpolicy-3.3-1.el9.aarch64 is already installed.
Package coreutils-8.32-31.el9.aarch64 is already installed.
No matching package to install: 'cracklib-devel'
Package gcc-11.2.1-9.4.el9.aarch64 is already installed.
Package gcc-c++-11.2.1-9.4.el9.aarch64 is already installed.
Package glibc-devel-2.34-28.el9_0.aarch64 is already installed.
Package libxcrypt-devel-4.4.18-3.el9.aarch64 is already installed.
Package libxml2-2.9.13-1.el9_0.1.aarch64 is already installed.
Package make-1:4.3-7.el9.aarch64 is already installed.
Package pkgconf-pkg-config-1.7.3-9.el9.aarch64 is already installed.
Package policycoreutils-3.3-6.el9_0.aarch64 is already installed.
No matching package to install: 'snappy-devel'
Package systemtap-sdt-devel-4.6-13.el9_0.aarch64 is already installed.
No matching package to install: 'unixODBC-devel'
Not all dependencies satisfied
Error: Some packages could not be found.
Command exit 1
+ ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=4 -p 2235 -l buildbot localhost sudo /sbin/shutdown -h now
Connection to localhost closed by remote host.
+ ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=4 -p 2235 -l buildbot localhost sudo /sbin/shutdown -h now
kex_exchange_identification: Connection closed by remote host
+ ssh -t -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ConnectTimeout=4 -p 2235 -l buildbot localhost sudo /sbin/shutdown -h now
ssh: connect to host localhost port 2235: Connection refused
