Browse Source

cleanup sources

main
Nicolas Massé 1 week ago
parent
commit
5fb979149b
  1. 9
      build.sh
  2. 3
      centos-10/SOURCES/libvirt-11.8.0.tar.xz
  3. 3
      centos-10/SOURCES/libvirt-11.9.0.tar.xz
  4. 3
      centos-10/SOURCES/zfs-2.2.8.tar.gz
  5. 3
      centos-10/SOURCES/zfs-2.2.9.tar.gz
  6. 3
      centos-9/SOURCES/libvirt-11.8.0.tar.xz
  7. 3
      centos-9/SOURCES/libvirt-11.9.0.tar.xz
  8. 3
      centos-9/SOURCES/zfs-2.2.8.tar.gz
  9. 3
      centos-9/SOURCES/zfs-2.2.9.tar.gz
  10. 9
      common.sh
  11. 3
      fedora-43/SOURCES/zfs-2.3.5.tar.gz
  12. 3
      fedora-43/SOURCES/zfs-2.4.0.tar.gz
  13. 3
      fedora-43/SOURCES/zfs-2.4.1.tar.gz
  14. 3
      fedora-43/SOURCES/zfs-2.4.2.tar.gz
  15. 36
      update.sh

9
build.sh

@ -2,6 +2,8 @@
set -Eeuo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
if [ ! -f "$HOME/.config/copr" ] && [ -n "$COPR_CONFIG" ]; then
echo "Copr configuration file not found. Injecting from environment variable..."
mkdir -p "$HOME/.config"
@ -13,7 +15,12 @@ GIT_REPOSITORY="https://github.com/nmasse-itix/zfs-aarch64.git"
COPR_PROJECT="zfs-aarch64"
COPR_USERNAME="$(copr-cli whoami)"
for dist in centos-{9,10} fedora-{42,43}; do
dists=(centos-9 centos-10)
for v in $(get_fedora_versions); do
dists+=("fedora-$v")
done
for dist in "${dists[@]}"; do
copr_release="${dist//centos/epel}"
echo "Building packages for $copr_release..."
for spec in $dist/SPECS/*.spec; do

3
centos-10/SOURCES/libvirt-11.8.0.tar.xz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7882fe65302bbcf804b573e0128c4fc6bfc52c9c3f44852a04de2391d858e34
size 10093332

3
centos-10/SOURCES/libvirt-11.9.0.tar.xz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:104f70ee591e72989d4f8c6caa79ed9dacd5dc84efdb0125b848afe544ad0c2d
size 10145112

3
centos-10/SOURCES/zfs-2.2.8.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef669f8ba31b6998a97002d29eb079c8680e59fd2a9202fcb9ca7a9d9522459d
size 33857690

3
centos-10/SOURCES/zfs-2.2.9.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2a2b8ba8dcb1b73f82d416f2399315d7e2cb129711e945922e4688d46f32d9f
size 33879322

3
centos-9/SOURCES/libvirt-11.8.0.tar.xz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7882fe65302bbcf804b573e0128c4fc6bfc52c9c3f44852a04de2391d858e34
size 10093332

3
centos-9/SOURCES/libvirt-11.9.0.tar.xz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:104f70ee591e72989d4f8c6caa79ed9dacd5dc84efdb0125b848afe544ad0c2d
size 10145112

3
centos-9/SOURCES/zfs-2.2.8.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:727ac0e81c5446aae76839a85ea3ea7a966ed4112421db1d0f70c1b2f92dc0c0
size 33851391

3
centos-9/SOURCES/zfs-2.2.9.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e40d697efb8b4d1daf042852a4575a1a168cfdbb68fcd93dde7698e8b513c28c
size 33861997

9
common.sh

@ -0,0 +1,9 @@
# Common code shared between build.sh and update.sh
# Prints the list of currently maintained Fedora versions (e.g. "42 43 44"),
# based on the Bodhi releases API.
get_fedora_versions () {
curl -fsSL "https://bodhi.fedoraproject.org/releases/?exclude_archived=true&state=current" \
| jq -r '.releases[] | select(.id_prefix=="FEDORA") | .version' \
| grep -E '^[0-9]+$' | sort -n
}

3
fedora-43/SOURCES/zfs-2.3.5.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89f9dec9a5c25a08bd11e738bdf75e24f81e99d4419551917593d49f4d483e8e
size 34404729

3
fedora-43/SOURCES/zfs-2.4.0.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:365df77dcc7d371a2c66ed9cce6723f2bd934a57f5743a12416c416c6dbb7624
size 34497904

3
fedora-43/SOURCES/zfs-2.4.1.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d6c3ea2775b87b1d1f7756a811c04c94470ac67665941f062de10ea226d322f
size 34508446

3
fedora-43/SOURCES/zfs-2.4.2.tar.gz

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f21af162dd8f824bc422caa979db8521c26df646954137e3d3b3f65013fa94b3
size 34530534

36
update.sh

@ -2,6 +2,8 @@
set -Eeuo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
find . -name '*.src.rpm' -delete
function install_all_srpm () {
@ -18,28 +20,44 @@ function apply_patches () {
done
}
for v in 42 43 44; do
dist="fedora-$v"
mkdir -p "$dist/SRPMS"
function download_sources_fedora () {
local dist=$1
local v="${dist#*-}"
echo "Downloading libvirt source for Fedora $v..."
dnf download --repofrompath=$dist,https://dl.fedoraproject.org/pub/fedora/linux/releases/$v/Everything/source/tree/ --repofrompath=$dist-updates,https://dl.fedoraproject.org/pub/fedora/linux/updates/$v/Everything/source/tree/ --repo="$dist" --repo="$dist-updates" --source libvirt --destdir $dist/SRPMS/
echo "Downloading zfs source for Fedora $v..."
if ! dnf download --repofrompath=zfs-$dist,http://download.zfsonlinux.org/fedora/$v/SRPMS/ --repo=zfs-$dist --source zfs zfs-dkms --destdir $dist/SRPMS/; then
echo "ZFS source RPM not found for Fedora $v, skipping..."
fi
install_all_srpm "$dist"
apply_patches "$dist"
done
}
for v in 9 10; do
dist="centos-$v"
mkdir -p "$dist/SRPMS"
function download_sources_centos_stream () {
local dist=$1
local v="${dist#*-}"
echo "Downloading libvirt source for CentOS Stream $v..."
dnf download --repofrompath=$dist,https://mirror.stream.centos.org/$v-stream/AppStream/source/tree/ --repo="$dist" --source libvirt --destdir $dist/SRPMS/
echo "Downloading zfs source for CentOS Stream $v..."
if ! dnf download --repofrompath=zfs-$dist,http://download.zfsonlinux.org/epel/$v/SRPMS/ --repo=zfs-$dist --source zfs zfs-dkms --destdir $dist/SRPMS/; then
echo "ZFS source RPM not found for CentOS Stream $v, skipping..."
fi
}
dists=(centos-9 centos-10)
for v in $(get_fedora_versions); do
dists+=("fedora-$v")
done
for dist in "${dists[@]}"; do
mkdir -p "$dist/SRPMS"
rm -rf "$PWD/$dist/SOURCES"
if [[ "$dist" == fedora-* ]]; then
download_sources_fedora "$dist"
elif [[ "$dist" == centos-* ]]; then
download_sources_centos_stream "$dist"
else
echo "Unknown distribution: $dist"
exit 1
fi
install_all_srpm "$dist"
apply_patches "$dist"
done

Loading…
Cancel
Save