public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gcc] rhel-f41-base: CI tests: Setup task for Fedora CI system
@ 2026-06-29 12:30 Martin Cermak
0 siblings, 0 replies; only message in thread
From: Martin Cermak @ 2026-06-29 12:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gcc
Branch : rhel-f41-base
Commit : 863c72823c45380073947d0e0d46d76dc8e90eac
Author : Martin Cermak <mcermak@redhat.com>
Date : 2023-02-23T18:57:40+01:00
Stats : +60/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/gcc/c/863c72823c45380073947d0e0d46d76dc8e90eac?branch=rhel-f41-base
Log:
CI tests: Setup task for Fedora CI system
---
diff --git a/plans/ci/prepare/prepare.fmf b/plans/ci/prepare/prepare.fmf
new file mode 100755
index 0000000..0b8da9f
--- /dev/null
+++ b/plans/ci/prepare/prepare.fmf
@@ -0,0 +1,6 @@
+summary: Setup task
+prepare:
+ script: ./plans/ci/prepare/prepare.sh
+require:
+- koji
+- dnf-utils
diff --git a/plans/ci/prepare/prepare.sh b/plans/ci/prepare/prepare.sh
new file mode 100755
index 0000000..8ffb6ef
--- /dev/null
+++ b/plans/ci/prepare/prepare.sh
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+#
+# Setup task for Fedora CI system. Install the x86_64 GCC build under test
+# along with its respective i686 (compat arch) bits needed for the testing.
+# KOJI_TASK_ID per https://github.com/fedora-ci/dist-git-pipeline/pull/50 .
+#
+
+set -x
+
+true "V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V"
+
+echo "KOJI_TASK_ID=$KOJI_TASK_ID"
+
+. /etc/os-release
+
+if [ "$ID" == "fedora" ] && [ "$(arch)" == "x86_64" ]; then
+
+ if [ -z "${KOJI_TASK_ID}" ]; then
+ echo "Missing koji task ID, skipping ..."
+ exit 0
+ fi
+
+ tmpd=`mktemp -d`
+ pushd $tmpd
+ koji download-task $KOJI_TASK_ID --noprogress --arch=src
+ ls
+ VR=$(rpm -qp gcc* --queryformat='%{version}-%{release}')
+ popd
+ rm -rf $tmpd
+
+ tmpd=`mktemp -d`
+ pushd $tmpd
+ koji download-task $KOJI_TASK_ID --noprogress --arch=x86_64 --arch=noarch
+ rm -f *debuginfo*
+ ls
+ dnf -y install *.rpm
+ popd
+ rm -rf $tmpd
+
+ tmpd=`mktemp -d`
+ pushd $tmpd
+ koji download-task $KOJI_TASK_ID --noprogress --arch=i686
+ rm -f *debuginfo*
+ ls
+ yum -y install libgcc-$VR* libgfortran-$VR* libgomp-$VR* libitm-$VR* \
+ libstdc++-devel-$VR* libstdc++-$VR* libstdc++-static-$VR*
+ popd
+ rm -rf $tmpd
+else
+ echo "Not Fedora x86_64, skipping..."
+fi
+
+true "^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-29 12:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 12:30 [rpms/gcc] rhel-f41-base: CI tests: Setup task for Fedora CI system Martin Cermak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox