Hi guys.
I'm trying to rpm rebuild Python with python3.9.spec from default repos. I've done only a few re/builds in my time and this is new to me - I've sroogled but have failed to get better grip of what's (not)happing here. ... 2 re-run tests: test_mmap test_os
Total duration: 3 min 40 sec Tests result: FAILURE then FAILURE error: Bad exit status from /var/tmp/rpm-tmp.QX5emT (%check)
RPM build errors: line 495: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.9 Bad exit status from /var/tmp/rpm-tmp.QX5emT (%check) Finish: rpmbuild python3.9-3.9.23-2.el9.src.rpm Finish: build phase for python3.9-3.9.23-2.el9.src.rpm ERROR: Exception(/00-REPOs/dnf.repo/repo/el9/x86_64/packages/python3.9-3.9.23-2.el9.src.rpm) Config(centos-stream+epel-9-x86_64) 12 minutes 9 seconds INFO: Results and/or logs in: /00-REPOs/dnf.repo/repo/el9/x86_64/packages INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed:
Would this be .spec file or something not good with build evn? btw. Is there a doc perhaps, explaining "Obsoletes" with regards to rpm build?
many thanks, L.
On 11. 11. 25 10:56, lejeczek via devel wrote:
Hi guys.
Hi.
I'm trying to rpm rebuild Python with python3.9.spec from default repos. I've done only a few re/builds in my time and this is new to me - I've sroogled but have failed to get better grip of what's (not)happing here. ... 2 re-run tests: test_mmap test_os
Total duration: 3 min 40 sec Tests result: FAILURE then FAILURE error: Bad exit status from /var/tmp/rpm-tmp.QX5emT (%check)
Any chance this is mock 6.4? Does it sitll happen with mock 6.5?
See https://rpm-software-management.github.io/mock/Release-Notes-6.5
If not, please paste the relevant part sof the test failures with failed asserts and/or tracebacks. Better yet, linka full log.
RPM build errors: line 495: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.9
This is harmless and explained ina comment in the specfile near the relevant Obsoletes line.
Would this be .spec file or something not good with build evn?
I don't really understand this question, but I hope I answered it anyway.
btw. Is there a doc perhaps, explaining "Obsoletes" with regards to rpm build?
I don't know, sorry.
6.5.1 does succeeds where 6.4.1 fails - meaning it works a ok all the way - at least here for my with this python rebuild - is that why c10/e10 have even earlier version, btw.? I thought that the terminal error, in the snippet I showed, was the `obsoletes` issue and not the "test" - thus asked about .spec VS my environment. Yes I read the comment in .spec but the fact that there was "RPM build errors" next to "obsoletes", made it difficult to make sense of, to me. Also given the fact that with new mock it shows: ... warning: line 495: It's not recommended to have unversioned Obsoletes: Obsoletes: python3.9 ...
thanks! L.