Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Why aren't the actual module names in the package descript..

 
   Linux (Home) -> Perl RSS
Next:  [FYI] debian.pkgs.cpan.org  
Author Message
John M. Gabriele

External


Since: Nov 12, 2005
Posts: 2



(Msg. 1) Posted: Sat Nov 12, 2005 6:10 pm
Post subject: Why aren't the actual module names in the package descriptions?
Archived from groups: linux>debian>maint>perl (more info?)

(This post is about an issue I've seen with other Debian Perl
packages, but uses libmailtools-perl as an example.)

Last week I needed Mail::Mailer on a Debian Woody machine, and
wanted to use apt-get to install it.

Trying:
apt-cache search perl | grep -i mailer

returns nothing (on Woody *or* Sarge).

After some searching and guessing, I eventually discovered
that the package I wanted to install is libmailtools-perl.

I tried:
apt-cache show libmailtools-perl

But found no mention of which Perl modules this package
contains. The description merely says:

| Description: Manipulate email in perl programs
| This is a set of perl modules which provide an easy interface to
| manipulating email in an object-oriented fashion.

The way I guessed that this might be the right package was
by searching CPAN, which pointed me to:
http://search.cpan.org/~markov/MailTools-1.67/Mail/Mailer.pm
(then noticed the name "MailTools" there).

So my questions to this list are:

1. Why doesn't the "apt-cache show" description usually list the
module names? (I see that it *is* properly listed for, say, the
libtext-template-perl package.)

2. Given that you know the module you'd like to install, how, in-
general, can you get apt-cache to tell you which package to install?

3. (though this might be off-topic here) Why does CPAN use that
"MailTools" name? Why is it grouping those Mail::* modules that
way?

It seems to me that it should be standard practice to list in a
Perl package's description exactly which modules it is supplying.





__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com


--
To UNSUBSCRIBE, email to debian-perl-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Don Armstrong

External


Since: Jan 24, 2005
Posts: 233



(Msg. 2) Posted: Sat Nov 12, 2005 11:30 pm
Post subject: Re: Why aren't the actual module names in the package descriptions? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 12 Nov 2005, John M. Gabriele wrote:
> Last week I needed Mail::Mailer on a Debian Woody machine, and
> wanted to use apt-get to install it.
>
> apt-cache search perl | grep -i mailer
>
> returns nothing (on Woody *or* Sarge).

This is the wrong way to search for specific modules, unfortunatly.

Do this instead:

aptitude install apt-file; apt-file update; apt-file search Mail/Mailer;

or:

visit packages.debian.org and search by package contents.

> 1. Why doesn't the "apt-cache show" description usually list the
> module names? (I see that it *is* properly listed for, say, the
> libtext-template-perl package.)

Developers have in certain instances, but some packages contain
thousands of modules:

$ dpkg -L libmail-box-perl|grep '.pm$'|wc -l
117

FE. [Which is probably the module you really want to use if you wrote
this perl code.]

> 3. (though this might be off-topic here) Why does CPAN use that
> "MailTools" name? Why is it grouping those Mail::* modules that way?

Because that's what the author calls the package.

> It seems to me that it should be standard practice to list in a Perl
> package's description exactly which modules it is supplying.

For smaller sets of modules, yes. But in some of the larger cases, it
can't be done sanely. That's what apt-file and packages.debian.org is
for.


Don Armstrong

--
Identical parts aren't.
-- Beach's Law

http://www.donarmstrong.com http://rzlab.ucr.edu


--
To UNSUBSCRIBE, email to debian-perl-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
John M. Gabriele

External


Since: Nov 12, 2005
Posts: 2



(Msg. 3) Posted: Sun Nov 13, 2005 5:00 am
Post subject: Re: Why aren't the actual module names in the package descriptions? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

--- Don Armstrong <don.RemoveThis@debian.org> wrote:

> On Sat, 12 Nov 2005, John M. Gabriele wrote:
> > Last week I needed Mail::Mailer on a Debian Woody machine, and
> > wanted to use apt-get to install it.
> >
> > apt-cache search perl | grep -i mailer
> >
> > returns nothing (on Woody *or* Sarge).
>
> This is the wrong way to search for specific modules, unfortunatly.
>
> Do this instead:
>
> aptitude install apt-file; apt-file update; apt-file search Mail/Mailer;
>
> or:
>
> visit packages.debian.org and search by package contents.

Ah! That's it! Thanks Don. Smile

I made a note of it in my little wiki:
http://www.simisen.com/jmg/pmwiki/pmwiki.php?n=Main.PerlModulesInGeneral

---John




__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


--
To UNSUBSCRIBE, email to debian-perl-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Bug#475335: ITP: libbio-mage-perl -- Container module for .. - Package: wnpp Severity: wishlist Owner: Charles Plessy <charles-debian-nospam@plessy.org> Package name : libbio-mage-perl Version : 20030502.3 Upstream Author : © 2001-2006 The MicroArray Gene Expression Database Society (MGED) ...

Bug#481983: RM: libmodule-load-perl -- ROM; perl 5.10 incl.. - Package: ftp.debian.org Severity: normal Hi, libmodule-load-conditional-perl is a rdepends of this package, and should drop the dependency on libmodule-load-perl. The other package is libgraphics-colornames-perl, and I'll take care of that. ...

Now able to do package uploads - Hello folks, I'm already a member of the pkg-perl group in Alioth as rra-guest, but hadn't done much while I was working on the NM process. I've now been approved as a Debian developer and am willing to help do uploads, co-maintain packages, etc. Coul...

RFS: nikto (updated package) - Dear mentors, I am looking for a sponsor for the new version 1.36-1 of my package "nikto". It builds these binary packages: nikto - web server security scanner The package appears to be lintian clean. The upload would fix these bugs: 4...

RFS : libhtml-htmltokenizer-ruby (updated package) - Dear mentors, I am looking for a sponsor for the new version 1.0-3 of my package "libhtml-htmltokenizer-ruby". It builds these binary packages: libhtml-htmltokenizer-ruby - simple HTML tokenizer/parser for Ruby The package appears to be lint...
       Linux (Home) -> Perl All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact