develooper Front page | perl.perl5.porters | Postings from March 2003

Re: rfc: a generic solution for dual-life CPAN packages

March 26, 2003 23:20
Re: rfc: a generic solution for dual-life CPAN packages
Message ID:
>>>>> On Thu, 27 Mar 2003 10:47:35 +1100, Stas Bekman <> said:

  > Let's say we have a module Foo::Bar, which has a dual life. It's
  > distributed in the original (master) package Far-Tar-0.01.tar.gz and
  > is also included in an another package Mar-Car-0.06.tar.gz. The module
  > Foo::Bar has the same version in both packages. What I'm asking for is
  > a way to tell the indexer to pick the package Far-Tar-0.01.tar.gz when
  > asked for module Foo::Bar.

By hiding the module Foo::Bar in Mar-Car-0.06.tar.gz. If a
distribution (in this case Mar-Car-0.06.tar.gz) has an inc/ directory,
all modules below inc/ will be ignored by the PAUSE indexer. By the
way, the same is true for modules in the t/ directory.

only-0.26 is the first distribution that comes with the upcoming
Module::Install by Autrijus Tang. Module::Install will be
self-distributed from the view of the user. Only developers will need
access to the sources of Module::Install. In order to make that work,
Module::Install must hide itself from the indexer whenever it embeds
itself into a distribution and it does so by living in the inc/

Maybe Autrijus can comment on the time frame that Module::Install will
need until it will be available for wide public use. I'd expect that
you will like it for mod_perl.

  > My proposal is to introduce a special variable inside the package
  > Foo::Bar which will tell the indexer that its master package is
  > 'Far-Tar'.

There doesn't seem to be a need for another mechanism. 

andreas Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About