Skip to content

copr debug

Francesco Montorsi edited this page May 28, 2024 · 1 revision

Debugging COPR builds

Using copr-build

On Fedora I had success in using the copr-rpmbuild utility, and launching it with the same arguments provided at the top of the builder-live log page reported by COPR. E.g. the following works pretty well:

sudo dnf install copr-rpmbuild
/usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/7495905-fedora-39-x86_64 --chroot fedora-39-x86_64

Using just rpmbuild

You should be able to replicate what happens in COPR by launching:

export BASE_DIR=/home/fmontorsi/git     (adjust to your case)
cd ${BASEDIR}/cmonitor/collector
make -f ${BASEDIR}/cmonitor/.copr/Makefile srpm outdir=/tmp/cmonitor-collector-rpm

and

cd ${BASEDIR}/cmonitor/tools
make -f ${BASEDIR}/cmonitor/.copr/Makefile srpm outdir=/tmp/cmonitor-tools-rpm
Clone this wiki locally