how to avoid cpan indexing ?

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default how to avoid cpan indexing ?

    I have a package that is supposed to go to cpan which contains a module
    that is only needed at build/install time, so it isn't intended for
    re-use and also it will never conflict with anything because it is
    loaded in one special situation only. Previous experiences have learnt
    me that cpan will index each and every .pm file and put it in the
    database, thus my module will be indexed and cause pollution of the
    database.

    Now my question is, is there a way to avoid indexing, is there a way to
    mark files as not to be indexed ? I see some examples use a "My::"
    namespace, is this namespace perhaps special in some way ?

    ( please note that it isn't an option to simply give the file another
    extension )

    --
    ) ( Jaap Karssenberg || Pardus [Larus] | |0| |
    : : [url]http://pardus-larus.student.utwente.nl/~pardus[/url] | | |0|
    ) \ / ( |0|0|0|
    ",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :) wannabe
    Jaap Karssenberg Guest

  2. Similar Questions and Discussions

    1. Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails
      FYI Have problem Upgrading perl packages from CPAN.pm version v1.61 to version v1.76) failed with final error messages: <stuff snipped> CPAN.pm:...
    2. Listed in search.cpan.org but not www.cpan.org
      Dear Y'all - I published the PeopleSoft.pm modules about a year ago and they're available via interactive CPAN and via the engine on...
    3. Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)
      I'm using the CPAN module to build my modules and have hung up just trying install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:...
    4. How to avoid this
      Hi, I have a project where when the user scroll over the buttons a picture or movie display on the screen. All works fine, but moving between...
    5. Indexing PDF's using MS Indexing Service
      Hi, I currently use MS Indexing Service to search my htm and aspx pages. I recently downloaded the IFilter tool from Adobe. When I now do a...
  3. #2

    Default Re: how to avoid cpan indexing ?


    "Jaap Karssenberg" <j.g.karssenberg@student.utwente.nl> wrote in message
    news:20040124151550.2e4ab25b@Captain...
    > I have a package that is supposed to go to cpan which contains a module
    > that is only needed at build/install time, so it isn't intended for
    > re-use and also it will never conflict with anything because it is
    > loaded in one special situation only. Previous experiences have learnt
    > me that cpan will index each and every .pm file and put it in the
    > database, thus my module will be indexed and cause pollution of the
    > database.
    >
    > Now my question is, is there a way to avoid indexing, is there a way to
    > mark files as not to be indexed ? I see some examples use a "My::"
    > namespace, is this namespace perhaps special in some way ?
    >
    By indexing, do you mean [url]http://www.cpan.org/modules/01modules.index.html[/url] ?
    Or do you mean a search engine such as search.cpan.org or
    kobesearch.cpan.org?

    The former simply lists distributions, not the .pm files inside each
    distribution. So I'm going to assume you're talking about one or both of
    the search engines.

    What follows is *a* solution but not necessarily the best solution: Can you
    put it in a t/Test directory? I suggest this because I notice that in each
    of my 2 CPAN distributions, .pm files which I place in t/Test do not get
    displayed on their distributions' respective main pages. They only appear
    in the MANIFEST. On the other hand, sample .pm files which I did *not* put
    in t/Test did get indexed. (Cf.
    [url]http://search.cpan.org/~jkeenan/Data-Presenter-0.64/[/url])

    I can't guarantee that this will work with modules which are needed at
    points in the build/install process *other than* testing. Perhaps others
    can provide a more definitive answer.

    jimk


    Jim Keenan Guest

  4. #3

    Default Re: how to avoid cpan indexing ?

    X-Newsreader: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu)
    Mime-Version: 1.0
    Content-Type: text/plain; charset=US-ASCII
    Content-Transfer-Encoding: 7bit

    On Sat, 24 Jan 2004 17:05:26 GMT Jim Keenan wrote:
    : By indexing, do you mean
    : [url]http://www.cpan.org/modules/01modules.index.html[/url] ? Or do you mean a
    : search engine such as search.cpan.org or kobesearch.cpan.org?
    :
    : The former simply lists distributions, not the .pm files inside each
    : distribution. So I'm going to assume you're talking about one or both
    : of the search engines.

    I was talking about the PAUSE namespace indexer which I mistook for a
    CPAN feature.

    --
    ) ( Jaap Karssenberg || Pardus [Larus] | |0| |
    : : [url]http://pardus-larus.student.utwente.nl/~pardus[/url] | | |0|
    ) \ / ( |0|0|0|
    ",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :) wannabe
    Jaap Karssenberg Guest

  5. #4

    Default Re: how to avoid cpan indexing ?

    "Jaap Karssenberg" <j.g.karssenberg@student.utwente.nl> wrote in message
    news:20040124151550.2e4ab25b@Captain...
    > I have a package that is supposed to go to cpan which contains a module
    > that is only needed at build/install time, so it isn't intended for
    > re-use and also it will never conflict with anything because it is
    > loaded in one special situation only. Previous experiences have learnt
    > me that cpan will index each and every .pm file and put it in the
    > database, thus my module will be indexed and cause pollution of the
    > database.
    >
    > Now my question is, is there a way to avoid indexing, is there a way to
    > mark files as not to be indexed ? I see some examples use a "My::"
    > namespace, is this namespace perhaps special in some way ?
    >
    > ( please note that it isn't an option to simply give the file another
    > extension )
    Could you just leave the private modules out of the distribution
    and generate them dynamically at the 'perl Makefile.PL' stage (eg,
    have them in a __DATA__ section that gets printed out).

    best regards,
    randy kobes



    Randy Kobes Guest

  6. #5

    Default Re: how to avoid cpan indexing ?

    Jaap Karssenberg <j.g.karssenberg@student.utwente.nl> writes:
    > I have a package that is supposed to go to cpan which contains a module
    > that is only needed at build/install time, so it isn't intended for
    > re-use and also it will never conflict with anything because it is
    > loaded in one special situation only. Previous experiences have learnt
    > me that cpan will index each and every .pm file and put it in the
    > database, thus my module will be indexed and cause pollution of the
    > database.
    >
    > Now my question is, is there a way to avoid indexing, is there a way to
    > mark files as not to be indexed ? I see some examples use a "My::"
    > namespace, is this namespace perhaps special in some way ?
    >
    > ( please note that it isn't an option to simply give the file another
    > extension )
    I see two solutions:

    * Put the "package" declaration in two lines. In this case the PAUSE
    indexer will ignore the package:

    package # hide from indexer
    My::Module;

    * I think you can put a "private" hash to the META.yml file, though I
    don't know where to find more information about it.

    Regards,
    Slaven

    --
    Slaven Rezic - [email]slaven@rezic.de[/email]
    BBBike - route planner for cyclists in Berlin
    WWW version: [url]http://www.bbbike.de[/url]
    Perl/Tk version for Unix and Windows: [url]http://bbbike.sourceforge.net[/url]
    Slaven Rezic Guest

  7. #6

    Default Re: how to avoid cpan indexing ?

    On Sun, Jan 25 2004, Slaven Rezic wrote:
    > Jaap Karssenberg <j.g.karssenberg@student.utwente.nl> writes:
    >
    > > I have a package that is supposed to go to cpan which contains a module
    [snipped]
    > > database.
    > >
    > > Now my question is, is there a way to avoid indexing, is there a way to
    > > mark files as not to be indexed ? I see some examples use a "My::"
    > > namespace, is this namespace perhaps special in some way ?
    >
    > I see two solutions:
    >
    [snipped]
    >
    > * I think you can put a "private" hash to the META.yml file, though I
    > don't know where to find more information about it.
    I am having the same problem and I am desperately searching for
    information how to set up the META.yml file :-((

    Where can I find more information about it ?

    Cheers,

    Norbert
    --
    Ceterum censeo | PGP encrypted mail preferred.
    Redmond esse delendam. | PGP Key at [url]www.MPA-Garching.MPG.de/~nog/[/url]
    Norbert Gruener Guest

  8. #7

    Default Re: how to avoid cpan indexing ?

    Norbert Gruener wrote:
    > I am having the same problem and I am desperately searching for
    > information how to set up the META.yml file :-((
    perl Makefile.PL
    make
    make dist

    The last step will create the META.yml file for you.
    Peter Hickman Guest

  9. #8

    Default Re: how to avoid cpan indexing ?

    On Wed, Feb 04 2004, Peter Hickman wrote:
    > Norbert Gruener wrote:
    > >I am having the same problem and I am desperately searching for
    > >information how to set up the META.yml file :-((
    >
    > perl Makefile.PL
    > make
    > make dist
    >
    > The last step will create the META.yml file for you.
    Yes, I know. But this does not solve the original question

    "how to avoid cpan indexing"

    But in the meantime I found out that this kind of problem is discussed
    on the "Module-build-general" mailing list.

    Thank you for your help.

    Cheers,

    Norbert
    --
    Ceterum censeo | PGP encrypted mail preferred.
    Redmond esse delendam. | PGP Key at [url]www.MPA-Garching.MPG.de/~nog/[/url]
    Norbert Gruener Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139