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.
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 -