On Thu, 27 Jun 2024 at 01:28, Panu Matilainen pmatilai@redhat.com wrote:
On 6/26/24 20:03, Stephen Smoogen wrote:
On Wed, 26 Jun 2024 at 10:32, Ron Olson tachoknight@gmail.com wrote:
Hey all-
I’m trying to build Swift 6 on Rawhide and it looks like it gets to the very end, to the %install section, then errors out with:
- /usr/bin/add-determinism --brp -j4 /home/rolson/rpmbuild/BUILD/swift-lang-6.0-build/BUILDROOT
Error: Path "/home/rolson/rpmbuild/BUILD/swift-lang-6.0-build/BUILDROOT" is outside of $RPM_BUILD_ROOT error: Bad exit status from /var/tmp/rpm-tmp.EbjPHr (%install)
Never, ever seen that particular message. I’m assuming the RPM build tools on Rawhide are newer and perhaps there’s something I should be adding to my spec file that I’m not aware of, as often is the case. :\
Does it happen to any spec rebuild or just this one? And if this one what is the spec file? The /home/rolson/rpmbuild/BUILD/swift-lang-6.0-build/BUILDROOT is outside of the buildroot as that should be /home/rolson/rpmbuild/BUILDROOT/ so I could see a bad definition somewhere trying to set up a copy to the wrong destination
/home/rolson/rpmbuild/BUILD/swift-lang-6.0-build/BUILDROOT is the new-style buildroot path in rpm >= 4.20 and so is actually expected in rawhide. It'd only be outside if this was somehow mixed with an older rpm and I don't see how that could happen.
OK thanks. I didn't know about this change and it will need me to change some docs I have written. [I should probably get back on the rpm devel list :)] Also I was confused when he said building on rawhide as I am used to that meaning building in mock but I guess in this case his system is running rawhide and so /home/rolson/rpmbuild/BUILD versus the usual mock path makes sense too.
I fail to see anything out of the ordinary in swift-lang.spec, but then the one in dist-git is version 5.10.1 whereas the error is on 6.0.
- Panu -
-- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue