Re: Test suites after build and Build-Depends.
Charles Plessy wrote:
> I felt a bit afraid that in some
> situations where some packages are temporarly mutually incompatible, we can end
> up in a situation where the source package that depends on it is not rebuidable
> unless the tests are disabled.
I found this kind of situation when packaging some perl modules:
* libfile-find-rule-perl-perl needs libtest-minimumversion-perl to run all its tests
and libtest-minimumversion-perl depends on libfile-find-rule-perl-perl.
To avoid this circular dependency, libfile-find-rule-perl-perl build-depends on
"libtest-minimumversion-perl (>= 0.007) | perl" and some tests are skipped if
libtest-minimumversion-perl is not installed.
* I did the same for the libparse-cpan-meta-perl package:
libparse-cpan-meta-perl build depends on:
...
libtest-cpan-meta-perl (>= 0.07) | perl,
libperl-minimumversion-perl (>= 0.007) | perl,
because
libtest-cpan-meta-perl depends AND build-depends on libparse-cpan-meta-perl
and
libperl-minimumversion-perl build-depends on libtest-cpan-meta-perl
I found that using "libXXX-perl | perl" still allows the package to be build if
the libXXX-perl is not available (with less tests in these cases).
I do not know if there are some better solutions.
Regards,
Vincent
--
Vincent Danjean GPG key ID 0x9D025E87 vdanjean@debian.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87
Unofficial pacakges: http://www-id.imag.fr/~danjean/deb.html#package
APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main
Reply to: