On 05-11-2023 16:00, Sérgio Basto wrote:
> During review of a package I submitted [1], the reviewer asked me
to
> move running an `ant` script from %prep to %build.
This is correct IMHO ,
if you run `fedpkg prep` on directory where you heave the spec file of
the package (in a git-dist), you wont be able to get "Local test
rpmbuild prep" if you haven't ant installed on the system.
And why is that an issue I should be concerned about?
It's an honest question. When running the full build with `fedpkg
mockbuild`, all BRs from the spec file will be installed first, before
%prep is executed.
for exemplify :
fedpkg clone eclipse-swt
cd eclipse-swt
fedpkg prep
I know plenty of Python packages that need to apply some git foo in
%prep. These would also fail the exercise if git-core were not installed
on the host system.
I'm not sure why `fedpkg prep` just fails, while `fedpkg install` will
happily tell you what dependencies are missing.
-- Sandro