Re: Cairo 1.042 available

Thierry Vignaud wrote:
Torsten Schoenfeld <kaffeetisch gmx de> writes:

Overview of changes in Cairo 1.042

This force packaging Test::Number::Delta ...

Well, unless installing the package necessarily means running the
test suite, no, you don't need to make your Cairo package depend on
a Test::Number::Delta package.  Test::Number::Delta is only needed
to run the test suite.  It's not needed at run-time.


$ perl Makefile.PL INSTALLDIRS=vendor
Writing build/
Checking if your kit is complete...
Looks good
MakeMaker FATAL: prerequisites not found (Test::Number::Delta not installed)

               Please install these modules first and rerun 'perl

The Makefile.PL sets PREREQ_FATAL, because you can't build without some of the
prereqs; this practice appears to be cargo-culted from gtk2-perl. 
Test::Number::Delta is not needed to compile, only to run the unit tests, but
i don't think ExtUtils::MakeMaker allows you to have both non-fatal and fatal
prereqs.  Maybe you can?

So, i think what you meant is that this is causing you to have to package
Test::Number::Delta for *building* the Cairo package.  What Torsten said still
holds true --- you don't need Test::Number::Delta to install the *binary*
package, just like you don't need perl-ExtUtils-Depends to install the binary
perl-Glib or perl-Gtk2 packages.

(If you do need perl-ExtUtils-Depends to install the binary perl-Glib package,
then your spec's requires and build-requires are set up incorrectly.)

Torsten:  how big a deal would it be to test separately for
Test::Number::Delta in Makefile.PL; if not present, emit a warning that the
test suite will be incomplete, and then skip all the tests that require it? 
Worth doing, or not?

muppet <scott at asofyet dot org>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]