Am Freitag, 3. Dezember 2010 schrieb Christian Boltz:
Hello,
I just stumbled over CPAN::FindDependencies [1]. IMHO this could be a good addition to cpanspec or the RPM perl macros (maybe %perl_requires?) to automatically add all the module dependencies (like "perl:(Foo:Bar)") of a perl module. At the moment it seems I have to add the dependencies manually.
However, my perl knownledge is limited and I therefore can't tell if or how good this would work. What do the perl experts think?
BTW: If I get the description of CPAN:FindDependencies right, it can check the requirements recursively. The RPMs should of course only include direct requires (maxdepth 1).
cpanspec already adds the requires from META.yml, but having automated dependencies is unfortunately very risky, because code like our $HAS_ZLIB; BEGIN { $HAS_ZLIB = eval 'use Compress::Zlib (); 1;'; } does not really _require_ Compress::Zlib. But I agree, we could add those automatic requires as comments from cpanspec. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org