On 2016-04-15, Florian Weimer fweimer@redhat.com wrote:
On 04/15/2016 11:34 AM, Jan Kurik wrote:
This change aims to removing Perl from minimal build root.
What's the canonical dependency to add if you run simple Perl scripts during build? Just this?
BuildRequires: perl
Yes. If you only need to run a Perl script that does not use any Perl modules, "perl" is enough.
If the script uses some modules like "use ExtUtils::MakeMaker;" or even "use strict;" you have to specify them also as "perl(ExtUtils::MakeMaker)" or "perl(strict)". There is an excelent "tangerine" tool can help you to find them in the script. It's more advanced (and slower and bigger) then the generarators called from rpmbuduild.
-- Petr