Learn more about these different git repos.
Other Git URLs
Hello,
Since aprox 1 week, the make_srpm type of build is failing with the following error:
[ ERROR] Backend process error: Error while collecting built packages for <build_num>: list index out of range.
Example of a failed build: https://copr.fedorainfracloud.org/coprs/xxmitsu/kernel-amdgpu-next/build/1673979/
Should I modify something? this used to work for more than 1 year without any issues.
Thank you in advance, Mike.
Hello @xxmitsu, thank you for the feedback.
I think it may be caused by https://bugzilla.redhat.com/show_bug.cgi?id=1879471
when I ssh to a builder machine and do
$ mock -r /etc/copr-rpmbuild/make_srpm_mock.cfg --shell bash [root@79ee48b26a8f460c97b603463bb5ba5d /]# dnf -y install git [root@4d2fd81d9fa34adda31ff27a5b72c6a8 /]# git clone https://github.com/vulturm/linux-graphics.git [root@4d2fd81d9fa34adda31ff27a5b72c6a8 /]# cd linux-graphics/ [root@4d2fd81d9fa34adda31ff27a5b72c6a8 linux-graphics]# make -f .copr/Makefile outdir=/tmp spec=.
Then I am able to reproduce the same output, that you got in the linked build. Downgrading python3-rpkg fixes it and the make srpm command then produces an SRPM.
python3-rpkg
make srpm
[root@4d2fd81d9fa34adda31ff27a5b72c6a8 linux-graphics]# dnf install python3-rpkg-1.60 [root@4d2fd81d9fa34adda31ff27a5b72c6a8 linux-graphics]# make -f .copr/Makefile outdir=/tmp spec=. ... Wrote: /tmp/kernel-5.9.0-20200928.f4a3360.amdgpu.drmnext.fc32.src.rpm
So I am trying to modify /etc/copr-rpmbuild/make_srpm_mock.cfg and set
/etc/copr-rpmbuild/make_srpm_mock.cfg
config_opts['chroot_additional_packages'] = 'make dnf python3-rpkg-1.60'
but it still doesn't fix the following command
copr-rpmbuild --task-url https://copr.fedorainfracloud.org/backend/get-srpm-build-task/1673979/ --srpm
@praiskup am I missing something obvious?
Metadata Update from @praiskup: - Issue assigned to praiskup
I think we aren't responsible for installing python3-rpkg into the mock chroot, it is done by the Makefile https://github.com/vulturm/linux-graphics/blob/master/.copr/Makefile
Hello @frostyx , @praiskup , Thank you very much for the fast response!
I can confirm that by pinning the following packages in the Makefile:
dnf -y install git make rpkg-2.7 python3-rpkg-1.60
it now generates the srpm. So I can assume that there's a bug in newer python3-rpkg versions that will be fixed sometime in future, and for now I should use version 1.60 ?
Also, another question: I'm noticing that the fedora-33 chroot fails with the following errors.
error: Bad file: /builddir/build/SOURCES/<file_from_srpm>: No such file or directory
Other chroots are fine. Is there another issue caused by some newer version of one of the packages that reached fedora-33 ? Should I create a separate issue for this?
So I can assume that there's a bug in newer python3-rpkg versions that will be fixed sometime in > future, and for now I should use version 1.60 ?
IMO yes, there's also update: https://bodhi.fedoraproject.org/updates/FEDORA-2020-44457c00e8 I'm not sure it fixes this particular problem... if no, I'd appreciate if you could fill an issue against https://pagure.io/rpkg-util
error: Bad file: /builddir/build/SOURCES/<file_from_srpm>: No such file or directory Should I create a separate issue for this?
Probably, but I didn't find any such build in the project we talk about in this issue. Please post the link to the build failure.
Metadata Update from @praiskup: - Assignee reset
Please post the link to the build failure.
New rpkg-util landed stable, so the issue should be solved. Please reopen if you experience the same problems. Thank you for the feedback!
Metadata Update from @praiskup: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.