On Tue, 1 Jun 2010, Raphael Hertzog wrote:

> The package name doesn't include "treebuilder" but libhtml-tree-perl
> contains HTML::TreeBuilder.
>
> And it appears in the "Depends" of the Debian/Ubuntu package.

  i asked about this on the ubuntu list but since you're awake :-),
is there no way to have the main builder automatically install the
packages corresponding to the required modules?

  the Build.PL script already contains the list of required modules,
both for building and running:

    my $builder = $class->new(
    module_name       => 'Publican',
    dist_name         => 'Publican',
    license           => 'perl',
    dist_author       => 'Jeff Fearn <jfe...@redhat.com>',
    dist_version_from => 'bin/publican',
    build_requires    => {
        'Devel::Cover'                    => 0,
        'Module::Build'                   => 0,
        'Test::Exception'                 => 0,
        ... etc etc ...

    requires => {
        ... more etc ...


so why can't the builder (or something else) simply map modules to
that OS's corresponding perl packages, present the user with a list of
missing ones and ask whether they should be installed?

  obviously, that kind of operation is massively distro-dependent, but
it would seem that "lsb_release" can tell you everything you need to
know:

$ lsb_release -ds
Ubuntu 10.04 LTS

$ lsb_release -ds
"Fedora release 12 (Constantine)"

  clearly, this is not a vexing problem desperately looking for a
solution, but it would make initial installation and building more
pleasant, rather than going through the cycle of "build, missing perl
package, damn, install package, repeat".

  this seems like such an obvious approach, i have to believe it's
been done before.

rday


-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

_______________________________________________
publican-list mailing list
publican-list@redhat.com
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican

Reply via email to