Add Copr xlibre-xserver repo to mock chroot for build deps

sonic-win.spec requires xlibre-xserver-devel which is only available in
the xlibre Copr repository. Download and inject this alongside the
existing Forgejo package registry repo before mock --rebuild.
This commit is contained in:
Anders da Silva Rytter Hansen 2026-05-27 13:10:25 -03:00
commit b868b75011

View file

@ -53,10 +53,11 @@ jobs:
mock \ mock \
--root alma+epel-10-x86_64 \ --root alma+epel-10-x86_64 \
--init --init
REPO_CONTENT=$(curl -fsSL https://pc-rytteren.dk/forge/api/packages/anders/rpm.repo) FORGEJO_REPO=$(curl -fsSL https://pc-rytteren.dk/forge/api/packages/anders/rpm.repo)
COPR_REPO=$(curl -fsSL "https://copr.fedorainfracloud.org/coprs/g/xlibre/xlibre-xserver/repo/rhel+epel-10/group_xlibre-xlibre-xserver-rhel+epel-10.repo")
mock \ mock \
--root alma+epel-10-x86_64 \ --root alma+epel-10-x86_64 \
--shell "mkdir -p /etc/yum.repos.d && echo '${REPO_CONTENT}' > /etc/yum.repos.d/sonicde.repo" --shell "mkdir -p /etc/yum.repos.d && echo '${FORGEJO_REPO}' > /etc/yum.repos.d/sonicde.repo && echo '${COPR_REPO}' > /etc/yum.repos.d/xlibre-xserver.repo"
mock \ mock \
--root alma+epel-10-x86_64 \ --root alma+epel-10-x86_64 \
--resultdir "${HOME}/mock-results" \ --resultdir "${HOME}/mock-results" \