[Bug 1227304] New: open build service raises 'Failed build dependencies' when new BuildRequires tag added during build runtime
https://bugzilla.suse.com/show_bug.cgi?id=1227304 Bug ID: 1227304 Summary: open build service raises 'Failed build dependencies' when new BuildRequires tag added during build runtime Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Major Priority: P5 - None Component: BuildService Assignee: screening-team-bugs@suse.de Reporter: fijik19@gmail.com QA Contact: adrian.schroeter@suse.com Target Milestone: --- Found By: --- Blocker: --- When i added code to _service, which formats .spec file adding BuildRequires tags at buildtime, futher build failes with 'Failed build dependencies', instead of installing these build dependencies -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227304
huakim tylyktar
https://bugzilla.suse.com/show_bug.cgi?id=1227304
https://bugzilla.suse.com/show_bug.cgi?id=1227304#c1
--- Comment #1 from huakim tylyktar
https://bugzilla.suse.com/show_bug.cgi?id=1227304
huakim tylyktar
https://bugzilla.suse.com/show_bug.cgi?id=1227304
huakim tylyktar
https://bugzilla.suse.com/show_bug.cgi?id=1227304
huakim tylyktar
https://bugzilla.suse.com/show_bug.cgi?id=1227304
https://bugzilla.suse.com/show_bug.cgi?id=1227304#c3
--- Comment #3 from huakim tylyktar
yes, it is too late to do that at build time. The VM has no network and the dependencies can not pre-calculated.
Either do that in default mode, so the change gets commited to the source.
Alternative is to use dynamic build dependency implementation where another build job gets started in case dependencies are changing. That is a generic rpm feature, supported by OBS by respawning a new job. https://fedoraproject.org/wiki/Changes/DynamicBuildRequires
closing as works as designed.
But, maybe, we just need to add the feauture to order to respawn a new job before rpmbuild? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227304
https://bugzilla.suse.com/show_bug.cgi?id=1227304#c4
--- Comment #4 from huakim tylyktar
(In reply to Adrian Schröter from comment #2)
yes, it is too late to do that at build time. The VM has no network and the dependencies can not pre-calculated.
Either do that in default mode, so the change gets commited to the source.
Alternative is to use dynamic build dependency implementation where another build job gets started in case dependencies are changing. That is a generic rpm feature, supported by OBS by respawning a new job. https://fedoraproject.org/wiki/Changes/DynamicBuildRequires
closing as works as designed.
But, maybe, we just need to add the feauture to order to respawn a new job before rpmbuild?
And, of course, with keeping generic rpm feauture. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227304
https://bugzilla.suse.com/show_bug.cgi?id=1227304#c6
--- Comment #6 from huakim tylyktar
this is already supported by OBS. It restarts the build when dependencies are changing.
There are also error that prevent from building: unresolvable: nothing provides %{lua_module, nothing provides luarocks}, nothing provides devel} The lua-module macro is provided in lua-rpm-macros package I added lua-rpm-macros to project configuration -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227304
https://bugzilla.suse.com/show_bug.cgi?id=1227304#c7
--- Comment #7 from huakim tylyktar
(In reply to Adrian Schröter from comment #5)
this is already supported by OBS. It restarts the build when dependencies are changing.
There are also error that prevent from building: unresolvable: nothing provides %{lua_module, nothing provides luarocks}, nothing provides devel} The lua-module macro is provided in lua-rpm-macros package I added lua-rpm-macros to project configuration
The .spec file contains line BulidRequires: %{lua_module} -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com