#1296 copr-rpmbuild doesn't work out of the box
Closed: MIGRATED a year ago by nikromen. Opened 4 years ago by iucar.

Steps to reproduce for Fedora 31:

$ podman run --rm -it fedora:31
$ dnf install copr-rpmbuild -y
$ copr-rpmbuild --build-id 1276121 --chroot fedora-31-x86_64
...
mockbuild.exception.ConfigError: Could not find included config file: /var/lib/copr-rpmbuild/results/configs/templates/fedora-31.tpl

ERROR: Error in configuration

And even if you copy the template:

$ mkdir /var/lib/copr-rpmbuild/results/configs/templates
$ cp /etc/mock/templates/fedora-31.tpl /var/lib/copr-rpmbuild/results/configs/templates
$ copr-rpmbuild --build-id 1276121 --chroot fedora-31-x86_64
...
KeyError: 'yum.conf'

ERROR: Error in configuration

I get different errors in Fedora 32 and rawhide. First, a missing dependency:

$ podman run --rm -it fedora:32
$ dnf install copr-rpmbuild -y
$ copr-rpmbuild --build-id 1276121 --chroot fedora-31-x86_64
...
FileNotFoundError: [Errno 2] No such file or directory: 'rsync'

But even if you install the missing dependency:

$ dnf install rsync -y
$ copr-rpmbuild --build-id 1276121 --chroot fedora-31-x86_64
...
ERROR: [Errno 1] Operation not permitted

ERROR: The most common cause for this error is trying to run /usr/libexec/mock/mock as an unprivileged user.
ERROR: You should not run /usr/libexec/mock/mock directly.

Unfortunately, we still do some downstream patching of mock-core-configs; so
we can not guarantee 100% functionality ... but the issues you describe here should
be fixed.

Metadata Update from @praiskup:
- Issue tagged with: bug

4 years ago

Metadata Update from @nikromen:
- Issue close_status updated to: MIGRATED
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata