Skip Menu |

This queue is for tickets about the note CPAN distribution.

Report information
The Basics
Id: 112667
Status: rejected
Priority: 0/
Queue: note

People
Owner: tlinden [...] cpan.org
Requestors: ltolhurst [...] inview.tv
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: installation fails with cpan and cpanm
Date: Thu, 3 Mar 2016 13:24:59 +0000
To: <bug-note [...] rt.cpan.org>
From: Ludovic Tolhurst <ltolhurst [...] inview.tv>
Hi there, When I try to install 'note' with cpan or cpanm, they say that they cannot find the distro. With cpanminus: $ cpanm note ! Finding note on cpanmetadb failed. ! Finding note () on mirror ftp://mirror.bytemark.co.uk/CPAN failed. ! Finding note () on mirror http://cpan failed. ! Couldn't find module or a distribution note ... and with CPAN shell: $ cpan cpan shell -- CPAN exploration and modules installation (v2.11) Enter 'h' for help. cpan[1]> install note Reading '/home/ltolhurst/.local/share/.cpan/Metadata' Database was generated on Thu, 06 Aug 2015 08:53:21 GMT Fetching with LWP: http://www.cpan.org/authors/01mailrc.txt.gz Reading '/home/ltolhurst/.local/share/.cpan/sources/authors/01mailrc.txt.gz' ............................................................................DONE Fetching with LWP: http://www.cpan.org/modules/02packages.details.txt.gz Reading '/home/ltolhurst/.local/share/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Thu, 03 Mar 2016 12:53:47 GMT ............................................................................DONE Fetching with LWP: http://www.cpan.org/modules/03modlist.data.gz Reading '/home/ltolhurst/.local/share/.cpan/sources/modules/03modlist.data.gz' DONE Writing /home/ltolhurst/.local/share/.cpan/Metadata Warning: Cannot install note, don't know what it is. Try the command i /note/ to find objects with matching identifiers. Thanks - the project sounds really useful. LTC
works like a charm: [03.Mar 15:48:16] --- [~] --- r4: % perlbrew use perl-5.18.0 [03.Mar 15:48:21] --- [~] --- r4: % cpanm note ! Finding note on cpanmetadb failed. --> Working on note Fetching http://www.cpan.org/authors/id/T/TL/TLINDEN/note-1.3.22.tar.gz ... OK Configuring note-1.3.22 ... OK Building and testing NOTEDB-1.44 ... OK Successfully installed NOTEDB-1.44 1 distribution installed [03.Mar 15:48:29] --- [~] --- r4: % note -v This is note 1.3.22
'note' is not in the 02packages.details.txt index, which is where it needs to be. cpanm is searching fallback databases in order to find the distribution by name, but that is not a reliable mechanism and other clients do not do that. Please upload a release containing a 'note.pm' file with a 'package note;' directive.
Well, I assume, the correct CPAN way to install it would be to install the module "NOTEDB", which includes bin/note. How would a note.pm with package "note" fit into this?
And, what if I add "package note" to bin/note? Would this satisfy CPAN? Otherwise it doesn't make any sense to add an empty file just for this purpose, doesn't it?
So I thought a little more about it. To satisfy this case, I'd have to re-organize the source repo, which might be a good idea anyway. But in the process, I would rename it to something like "App::Note" because a root-namespace 'note' isn't the way we do things these days anymore (however, I didn't knew better 15 years ago). And, wether you write "cpanm App::Note" or "cpanm NOTEDB" doesn't really matter, as long as you're able to install the software using CPAN. So, I'm closing the ticket again, since I don't have the time now to do this re-organization. I may do it sometime, but I don't consider the current state as a bug. - Tom