AlmaLinux changes

This commit is contained in:
eabdullin 2022-02-21 13:36:48 +03:00
parent 02b4ec6b53
commit d5614811d5

View File

@ -3,6 +3,7 @@
# In theory the above, in practice golang is so often broken that
# I now disable it:
%global golang_arches NONE
%global dist %{?dist}.alma
# Architectures that we run the basic sanity-check test.
#
@ -762,7 +763,10 @@ sed 's/@VERSION@/%{version}/g' < %{SOURCE4} > README
ip addr list ||:
ip route list ||:
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
extra=
# AlmaLinux: avoid permission denied for yum/dnf cache
mkdir cachedir
sed -e "s|/var/cache/yum|$(pwd)/cachedir|" -e "s|/var/cache/dnf|$(pwd)/cachedir|" /etc/dnf/dnf.conf > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
else
mkdir cachedir repo
# -n 1 because of RHBZ#980502.
@ -1146,6 +1150,10 @@ rm ocaml/html/.gitignore
%changelog
* Mon Feb 21 2022 Edaurd Abdullin <eabdullin@almalinux.org> - 1:1.46.1-2.alma
- Fix build for AlmaLinux
- Avoid permission denied for yum/dnf cache
* Thu Dec 23 2021 Laszlo Ersek <lersek@redhat.com> - 1:1.46.1-2
- Add detection support for Rocky Linux
resolves: rhbz#2030709