Re: Strange error building on Rawhide
Whoops, sorry, pasted the wrong thing; I’ll send an update with the mock-based error as soon as I can get access to my machine again (network problems :\ ). On 27 Jun 2024, at 9:27, Ron Olson wrote: Yep, same error: + /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) On 26 Jun 2024, at 12:50, Michael J Gruber wrote: So you're runnning rpmbuild in a toolbox, right? Can you reproduce this with mock? [ I think we bottom post here in general, but I kept with your choice. Feel free to reorder ... ] Ron Olson venit, vidit, dixit 2024-06-26 17:35:11: Dunno if it should matter, but this is: Fedora Linux 41 (Toolbx Container Image Prerelease), running on a Sway Atomic machine (Fedora Linux 40.20240613.0 (Sway Atomic)). On 26 Jun 2024, at 10:31, Ron Olson 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. :\ Thanks for any help, Ron-- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
Yep, same error: + /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) On 26 Jun 2024, at 12:50, Michael J Gruber wrote: So you're runnning rpmbuild in a toolbox, right? Can you reproduce this with mock? [ I think we bottom post here in general, but I kept with your choice. Feel free to reorder ... ] Ron Olson venit, vidit, dixit 2024-06-26 17:35:11: Dunno if it should matter, but this is: Fedora Linux 41 (Toolbx Container Image Prerelease), running on a Sway Atomic machine (Fedora Linux 40.20240613.0 (Sway Atomic)). On 26 Jun 2024, at 10:31, Ron Olson 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. :\ Thanks for any help, Ron-- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
On Thu, 27 Jun 2024 at 01:28, Panu Matilainen wrote: > > On 6/26/24 20:03, Stephen Smoogen wrote: > > On Wed, 26 Jun 2024 at 10:32, Ron Olson 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-le...@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 -- Stephen Smoogen, Red Hat Automotive Let us be kind to one another, for most of us are fighting a hard battle. -- Ian MacClaren -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
On Thu, Jun 27, 2024 at 08:27:00AM +0300, Panu Matilainen wrote: > On 6/26/24 20:03, Stephen Smoogen wrote: > > On Wed, 26 Jun 2024 at 10:32, Ron Olson 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. add-determinism has a check that when called via the rpm macros, it requires that $RPM_BUILD_ROOT is defined, not empty, and all the path arguments are below it. I thought it prudent to add such a check in case I mess something up in the definitions ;) I also remember considering whether to print out the value of $RPM_BUILD_ROOT in that error message and thinking "oh, this should never trigger, no need". I added the printing of RPM_BUILD_ROOT now [1], but I can't push it to rawhide because dist-git is broken [2]. In the meantime, can you post the full build log somewhere? (As a work-around, you can do '%undefine __brp_add_determinism' in the spec file or '--undefine __brp_add_determinism' on the commnand line to skip that step.) [1] https://github.com/keszybz/add-determinism/commit/36401dbb22bf1034b2791bd7d56172b0a6ee4db7 [2] https://pagure.io/releng/issue/12181 Zbyszek -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
On 6/26/24 20:03, Stephen Smoogen wrote: On Wed, 26 Jun 2024 at 10:32, Ron Olson 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 - -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
On Wed, 26 Jun 2024 at 10:32, Ron Olson 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 > Thanks for any help, > > Ron > > -- > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@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 -- Stephen Smoogen, Red Hat Automotive Let us be kind to one another, for most of us are fighting a hard battle. -- Ian MacClaren -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
So you're runnning rpmbuild in a toolbox, right? Can you reproduce this with mock? [ I think we bottom post here in general, but I kept with your choice. Feel free to reorder ... ] Ron Olson venit, vidit, dixit 2024-06-26 17:35:11: > Dunno if it should matter, but this is: Fedora Linux 41 (Toolbx > Container Image Prerelease), running on a Sway Atomic machine (Fedora > Linux 40.20240613.0 (Sway Atomic)). > > On 26 Jun 2024, at 10:31, Ron Olson 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. > > :\ > > > > Thanks for any help, > > > > Ron -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Re: Strange error building on Rawhide
Dunno if it should matter, but this is: Fedora Linux 41 (Toolbx Container Image Prerelease), running on a Sway Atomic machine (Fedora Linux 40.20240613.0 (Sway Atomic)). On 26 Jun 2024, at 10:31, Ron Olson 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. :\ Thanks for any help, Ron-- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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
Strange error building on Rawhide
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. :\ Thanks for any help, Ron-- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@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