2022-10-27 15:18:17 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
version=$(curl -sf https://download.opensuse.org/history/latest)
|
|
|
|
curl -s -f https://api.opensuse.org/public/source/openSUSE:Factory/_config > _config.factory
|
|
|
|
curl -s -f https://api.opensuse.org/public/source/openSUSE:Factory:Rings:0-Bootstrap/_config > _config.ring0
|
|
|
|
cat > _config.new << EOF
|
|
|
|
%define _project openSUSE:Factory:Rings:0-Bootstrap
|
|
|
|
|
|
|
|
# for glibc
|
|
|
|
%define disable_32bit 1
|
|
|
|
Macros:
|
|
|
|
%disable_32bit 1
|
|
|
|
:Macros
|
|
|
|
|
2022-11-03 13:54:38 +01:00
|
|
|
%if "%_project" == "openSUSE:Factory:Rings:0-Bootstrap" || "%_project" == "openSUSE:Factory:ARM:Rings:0-Bootstrap"
|
|
|
|
BuildFlags: excludebuild:kernel-source
|
2022-11-03 15:33:08 +01:00
|
|
|
BuildFlags: excludebuild:binutils:aarch64
|
|
|
|
BuildFlags: excludebuild:binutils:arm
|
|
|
|
BuildFlags: excludebuild:gcc12:cross-aarch64-gcc12
|
|
|
|
BuildFlags: excludebuild:gcc12:cross-aarch64-gcc12-bootstrap
|
|
|
|
BuildFlags: excludebuild:gcc12:cross-arm-gcc12
|
|
|
|
BuildFlags: excludebuild:gcc12:cross-arm-none-gcc12-bootstrap
|
|
|
|
BuildFlags: excludebuild:glibc:cross-aarch64
|
2023-02-15 10:22:36 +01:00
|
|
|
BuildFlags: excludebuild:glibc:cross-riscv64
|
|
|
|
BuildFlags: excludebuild:gcc12:cross-riscv64-gcc12-bootstrap
|
|
|
|
BuildFlags: excludebuild:gcc12:cross-riscv64-gcc12
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-riscv64-gcc13-bootstrap
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-riscv64-gcc13
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-aarch64-gcc13-bootstrap
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-aarch64-gcc13
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-arm-gcc13
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-arm-none-gcc13-bootstrap
|
|
|
|
BuildFlags: excludebuild:gcc13:cross-ppc64-gcc13
|
2022-11-03 13:54:38 +01:00
|
|
|
%endif
|
|
|
|
|
2022-10-27 15:18:17 +02:00
|
|
|
EOF
|
|
|
|
cat _config.factory _config.ring0 >> _config.new
|
|
|
|
sed -i -e "/^RepoURL:/s,/tumbleweed,/history/$version/tumbleweed," _config.new
|
2022-11-02 16:31:29 +01:00
|
|
|
# boo#1204790
|
|
|
|
sed -i -e 's/glibc-devel-32bit.*/glibc-devel-32bit/' _config.new
|
2022-10-27 15:18:17 +02:00
|
|
|
|
|
|
|
if [ -e _config ] && cmp -s _config.new _config; then
|
|
|
|
rm _config.new
|
|
|
|
else
|
|
|
|
mv _config.new _config
|
|
|
|
fi
|