Nevermind. I figured it out.
Probably for someone it would be useful. centos9 aarch64
OS install required packages
dnf -y update
dnf -y install yum-utils
dnf -y install vim-enhanced
dnf -y install wget
dnf -y install curl
yum -y groupinstall "Development Tools"
yum -y install epel-release
yum -y install rpmrebuild
dnf -y install gcc gcc-c++ openssl-devel bzip2-devel libffi-devel
zlib-devel make
dnf -y install cmake
dnf -y config-manager --set-enabled crb
dnf -y --enablerepo=crb install ninja-build
dnf -y install libacl-devel
dnf -y --enablerepo=crb install jansson-devel
yum -y install readline-devel
dnf -y --enablerepo=crb install perl-IPC-Run
dnf -y install gcc rpm-build rpm-devel rpmlint make python bash coreutils
diffutils patch rpmdevtools
yum -y install gperftools gperftools-devel
dnf -y install glusterfs-api
dnf -y install centos-release-gluster9
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-9.repo
dnf --enablerepo=centos-gluster9 -y install glusterfs-api-devel
dnf --enablerepo=centos-gluster9 -y install glusterfs-devel
dnf -y install httpd httpd-devel libcap-devel
dnf -y install libtirpc-devel lzo-devel mtx qt5-qtbase-devel rpcgen
dnf -y install pam-devel postgresql-devel python-rpm-macros python3-devel
dnf -y install libxml2-devel json-c-devel
BAREOS_VERSION="22.0.3"
rm -rf ~/rpmbuild
echo "%_topdir %(echo $HOME)/rpmbuild" > ~/.rpmmacros
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
wget
https://github.com/bareos/bareos/archive/refs/tags/Release/${BAREOS_VERSION}.tar.gz
-O bareos-${BAREOS_VERSION}.tar.gz
tar xf bareos-${BAREOS_VERSION}.tar.gz
mv bareos-Release-${BAREOS_VERSION}/ bareos-${BAREOS_VERSION}
tar zcf bareos-${BAREOS_VERSION}.tar.gz bareos-${BAREOS_VERSION}
mv bareos-${BAREOS_VERSION}/core/platforms/packaging/bareos.spec
~/rpmbuild/SPECS/
In vim ~/rpmbuild/SPECS/bareos.spec change version and release values to:
Version: 22.0.3
Release: 0%{?dist}
Afterward run:
rpmbuild --nocheck -ba ~/rpmbuild/SPECS/bareos.spec –define "centos_version
900"
As result:
[root@test-bareos ~]# ll /root/rpmbuild/RPMS/aarch64/
total 32652
-rw-r--r--. 1 root root 7405 May 22 18:30 bareos-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 136444 May 22 18:30
bareos-bconsole-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 747777 May 22 18:30
bareos-bconsole-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 7584 May 22 18:30
bareos-client-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1000511 May 22 18:30
bareos-common-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 5872823 May 22 18:30
bareos-common-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 10231 May 22 18:30
bareos-contrib-director-python-plugins-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 38900 May 22 18:30
bareos-contrib-filedaemon-python-plugins-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 14157 May 22 18:30
bareos-contrib-tools-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 91081 May 22 18:30
bareos-database-common-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 297056 May 22 18:30
bareos-database-common-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 42660 May 22 18:30
bareos-database-postgresql-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 91264 May 22 18:30
bareos-database-postgresql-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 254755 May 22 18:30
bareos-database-tools-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1833287 May 22 18:30
bareos-database-tools-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1075179 May 22 18:30
bareos-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1655575 May 22 18:30
bareos-debugsource-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 523450 May 22 18:30
bareos-director-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 3061101 May 22 18:30
bareos-director-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 25524 May 22 18:30
bareos-director-python3-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 57096 May 22 18:30
bareos-director-python3-plugin-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 10072 May 22 18:30
bareos-director-python-plugins-common-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 225404 May 22 18:30
bareos-filedaemon-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1358429 May 22 18:30
bareos-filedaemon-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 25841 May 22 18:30
bareos-filedaemon-glusterfs-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 53254 May 22 18:30
bareos-filedaemon-glusterfs-plugin-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 14236 May 22 18:30
bareos-filedaemon-ldap-python-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 18528 May 22 18:30
bareos-filedaemon-libcloud-python-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 13003 May 22 18:30
bareos-filedaemon-mariabackup-python-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 22213 May 22 18:30
bareos-filedaemon-ovirt-python-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 13067 May 22 18:30
bareos-filedaemon-percona-xtrabackup-python-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 14510 May 22 18:30
bareos-filedaemon-postgresql-python-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 41322 May 22 18:30
bareos-filedaemon-python3-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 93979 May 22 18:30
bareos-filedaemon-python3-plugin-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 15252 May 22 18:30
bareos-filedaemon-python-plugins-common-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 213192 May 22 18:30
bareos-storage-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1258815 May 22 18:30
bareos-storage-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 148083 May 22 18:30
bareos-storage-droplet-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 414572 May 22 18:30
bareos-storage-droplet-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 20150 May 22 18:30
bareos-storage-fifo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 55265 May 22 18:30
bareos-storage-fifo-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 20148 May 22 18:30
bareos-storage-glusterfs-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 54880 May 22 18:30
bareos-storage-glusterfs-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 25647 May 22 18:30
bareos-storage-python3-plugin-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 60180 May 22 18:30
bareos-storage-python3-plugin-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 9868 May 22 18:30
bareos-storage-python-plugins-common-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 190673 May 22 18:30
bareos-storage-tape-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1084333 May 22 18:30
bareos-storage-tape-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 383632 May 22 18:30
bareos-tools-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 4442949 May 22 18:30
bareos-tools-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 169191 May 22 18:30
bareos-traymonitor-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 1505085 May 22 18:30
bareos-traymonitor-debuginfo-22.0.3-0.el9.aarch64.rpm
-rw-r--r--. 1 root root 4500371 May 22 18:30
bareos-webui-22.0.3-0.el9.aarch64.rpm
Store them and kill the instance.
I hope the community will add support for aarch64.
On Monday, May 22, 2023 at 7:38:25 PM UTC+2 Denis Yesakov wrote:
> Hello.
> I want to build the project for aarch64. I have already passed all the
> build steps and got all binaries. However, the final build of rpm failed.
> I read that there is a special Docker that builds it. I use an actual
> virtual instance with aarm. Found all dependencies. But it looks like I
> miss some steps for configuration.
>
> Is it possible to see the docker configuration for the community build?
>
> I am doing it for the first time (for this project) and Newby here
>
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/c07ab13c-a2ee-4873-818d-86de34077d09n%40googlegroups.com.