https://bugzilla.redhat.com/show_bug.cgi?id=2238751
--- Comment #7 from Marc-Andre Lureau <marcandre.lureau(a)redhat.com> ---
(In reply to Fabio Valentini from comment #6)
> - generate_buildrequires needs to be during %prep, because
sources must be extracted (that's also how rust-ripgrep does)
This is a misunderstanding of how RPM works. You could also write this:
"""
%generate_buildrequires
%cargo_generate_buildrequires -n
%prep
%autosetup -n rutabaga-gfx-%{gitdate} -p1
%cargo_prep
"""
And the %prep scriptlet would still get executed *before* the
%generate_buildrequires scriptlet. Order of definition in the spec file does
not matter to RPM, it will always execute scriptlets in the same order.
ok
> - fixed the -a/-n flags
Why did you keep the "-n" flag? It has zero effect in this project.
You are right, I was confused.
> - %cargo_build ok, however debugsourcefiles.list is still empty (breaking the build
atm). Any idea how to fix find-debuginfo ?
This means that something is wrong during the build process - the binaries
end up without debug information, otherwise find-debuginfo would not
complain.
I don't know how this happens, but the build log should show
"-Cdebuginfo=2"
being passed to rustc. If that doesn't happen, then something is wrong.
fixed now
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2238751
Report this comment as SPAM:
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=rep...