Skip Menu |

This queue is for tickets about the Module-Starter-Smart CPAN distribution.

Report information
The Basics
Id: 72565
Status: patched
Priority: 0/
Queue: Module-Starter-Smart

People
Owner: RUEYCHENG [...] cpan.org
Requestors: KWittrock [...] web.de
Cc:
AdminCc:

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



Subject: Cannot get to work an example in the POD
Date: Sun, 20 Nov 2011 15:35:49 +0100
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: "K. Wittrock" <KWittrock [...] web.de>
I want to learn how to build a distribution. I started by reproducing the example that is given in the POD of Module::Starter::Smart under the heading "Placing an existing module into a new distribution". This failed, so I sent the following inquiry to www.perlmonks.com: ---------------------------------------------------- I want to learn how to build a distribution. As a first step, I tried to reproduce the example that is given in the POD of Module::Starter::Smart under the Heading Placing an existing module into a new distribution. My result is exactly as shown in the POD. However a closer look shows that my distribution contains a template instead of the contents of my module. I hope that somebody can tell me what I did wrong. I use openSUSE 11.1 and Module::Starter::Smart version 0.0.2 (installed via CPANplus a few weeks ago). Here is the script that I used to create my distribution: test ! -f ~/Sudoku/tstBaz/Foo/Baz.pm && echo 'No test module!' && exit 1 cd ~/Sudoku/tstBaz rm -R lib rm -Rf Globbo rm -Rf tstdistr mkdir lib cp -R Foo ./lib ls -R ./lib module-starter --distro=Globbo --module=Foo::Baz \ --builder='Module::Build' \ --author="Klaus Wittrock" --email=myemail@web.de ls -R Globbo cd Globbo perl Build.PL ./Build test ./Build dist cd .. mkdir tstdistr cd tstdistr tar -axf ../Globbo/Foo-Baz-0.01.tar.gz cd Foo-Baz-0.01 perl Build.PL --install_base ~/Sudoku/tstBaz/tstdistr ./Build test ./Build install cd .. ls -l ~/Sudoku/tstBaz/Foo/Baz.pm lib/perl5/Foo/Baz.pm And this is my test module: package Foo::Baz; use strict; use warnings; print "Start Baz\n"; ---------------------------------------------------- The reply was "It appears you probably did nothing wrong". If this were true, it would mean that there is a bug either in the code or in the doku of Module::Starter::Smart. I can't really believe this, so I hope you can give me a hint on how I can successfully use your module. I don't like the idea of using Module::Build directly. Kind regards Klaus Wittrock
Subject: Re: [rt.cpan.org #72565] Cannot get to work an example in the POD
Date: Sun, 20 Nov 2011 23:16:04 +0800
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: Ruey-Cheng Chen <rueycheng [...] turing.csie.ntu.edu.tw>
Hi, Klaus, Might if I ask what is the content in ~/.module-starter/config? For Module::Starter::Smart to work, there has to be a line in the config file exactly as follows. plugin: Module::Starter::Simple Module::Starter::Smart Just want to be sure before I dig in further. Get back to me if you did. Regards, Ruey-Cheng On Sun, Nov 20, 2011 at 10:36 PM, K. Wittrock via RT <bug-Module-Starter-Smart@rt.cpan.org> wrote: Show quoted text
> Sun Nov 20 09:36:06 2011: Request 72565 was acted upon. > Transaction: Ticket created by KWittrock@web.de >       Queue: Module-Starter-Smart >     Subject: Cannot get to work an example in the POD >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: KWittrock@web.de >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=72565 > > > > I want to learn how to build a distribution. I started by reproducing the example that is given in the POD of Module::Starter::Smart under the heading "Placing an existing module into a new distribution". This failed, so I sent the following inquiry to www.perlmonks.com: > > ---------------------------------------------------- > I want to learn how to build a distribution. As a first step, I tried to reproduce the example that is given in the POD of Module::Starter::Smart under the Heading Placing an existing module into a new distribution. My result is exactly as shown in the POD. However a closer look shows that my distribution contains a template instead of the contents of my module. > > I hope that somebody can tell me what I did wrong. I use openSUSE 11.1 and Module::Starter::Smart version 0.0.2 (installed via CPANplus a few weeks ago). > > Here is the script that I used to create my distribution: > > test ! -f ~/Sudoku/tstBaz/Foo/Baz.pm && echo 'No test module!' && exit 1 > cd ~/Sudoku/tstBaz > rm -R lib > rm -Rf Globbo > rm -Rf tstdistr > > mkdir lib > cp -R Foo ./lib > ls -R ./lib > > module-starter --distro=Globbo --module=Foo::Baz \ >     --builder='Module::Build' \ >     --author="Klaus Wittrock" --email=myemail@web.de > ls -R Globbo > > cd Globbo > perl Build.PL > ./Build test > ./Build dist > cd .. > > mkdir tstdistr > cd tstdistr > tar -axf ../Globbo/Foo-Baz-0.01.tar.gz > cd Foo-Baz-0.01 > perl Build.PL --install_base ~/Sudoku/tstBaz/tstdistr > ./Build test > ./Build install > cd .. > ls -l ~/Sudoku/tstBaz/Foo/Baz.pm lib/perl5/Foo/Baz.pm > > And this is my test module: > > package Foo::Baz; > use strict; > use warnings; > > print "Start Baz\n"; > ---------------------------------------------------- > > The reply was "It appears you probably did nothing wrong". If this were true, it would mean that there is a bug either in the code or in the doku of Module::Starter::Smart. I can't really believe this, so I hope you can give me a hint on how I can successfully use your module. I don't like the idea of using Module::Build directly. > > Kind regards > > Klaus Wittrock > >
Subject: Re: [rt.cpan.org #72565] Cannot get to work an example in the POD
Date: Mon, 21 Nov 2011 16:35:32 +0100
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: "K. Wittrock" <KWittrock [...] web.de>
Hi Ruey-Cheng, thank you for your quick response. And sorry for my omission. This is the only line in ~/.module-starter/config: plugins: Module::Starter::Simple Module::Starter::Smart Now just where I copy this line into my answer, I see my error. It should read "plugin:". The reason why I never looked into this file is as follows: When running my script, I got a warning: Use of uninitialized value $distro in substitution (s///) at /usr/lib/perl5/site_perl/5.10.0/Module/Starter/Smart.pm line 150. I concluded from this that my script did use the Smart plugin. The warning went away after I corrected my error, so the opposite was true: the warning indicated that Smart wasn't used correctly. Now the bad news: My problem is still there. So I added the line cat ~/.module-starter/config to the end of my script, then created a logfile from the Shell output. I attach it to this reply. Kind regards Klaus Am 20.11.2011 16:16, schrieb Ruey-Cheng Chen via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=72565> > > Hi, Klaus, > > Might if I ask what is the content in ~/.module-starter/config? For > Module::Starter::Smart to work, there has to be a line in the config > file exactly as follows. > > plugin: Module::Starter::Simple Module::Starter::Smart > > > Just want to be sure before I dig in further. Get back to me if you did. > > > Regards, > Ruey-Cheng > > On Sun, Nov 20, 2011 at 10:36 PM, K. Wittrock via RT > <bug-Module-Starter-Smart@rt.cpan.org> wrote:
>> Sun Nov 20 09:36:06 2011: Request 72565 was acted upon. >> Transaction: Ticket created by KWittrock@web.de >> Queue: Module-Starter-Smart >> Subject: Cannot get to work an example in the POD >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: KWittrock@web.de >> Status: new >> Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=72565> >> >> >> I want to learn how to build a distribution. I started by reproducing the example that is given in the POD of Module::Starter::Smart under the heading "Placing an existing module into a new distribution". This failed, so I sent the following inquiry to www.perlmonks.com: >> >> ---------------------------------------------------- >> I want to learn how to build a distribution. As a first step, I tried to reproduce the example that is given in the POD of Module::Starter::Smart under the Heading Placing an existing module into a new distribution. My result is exactly as shown in the POD. However a closer look shows that my distribution contains a template instead of the contents of my module. >> >> I hope that somebody can tell me what I did wrong. I use openSUSE 11.1 and Module::Starter::Smart version 0.0.2 (installed via CPANplus a few weeks ago). >> >> Here is the script that I used to create my distribution: >> >> test ! -f ~/Sudoku/tstBaz/Foo/Baz.pm&& echo 'No test module!'&& exit 1 >> cd ~/Sudoku/tstBaz >> rm -R lib >> rm -Rf Globbo >> rm -Rf tstdistr >> >> mkdir lib >> cp -R Foo ./lib >> ls -R ./lib >> >> module-starter --distro=Globbo --module=Foo::Baz \ >> --builder='Module::Build' \ >> --author="Klaus Wittrock" --email=myemail@web.de >> ls -R Globbo >> >> cd Globbo >> perl Build.PL >> ./Build test >> ./Build dist >> cd .. >> >> mkdir tstdistr >> cd tstdistr >> tar -axf ../Globbo/Foo-Baz-0.01.tar.gz >> cd Foo-Baz-0.01 >> perl Build.PL --install_base ~/Sudoku/tstBaz/tstdistr >> ./Build test >> ./Build install >> cd .. >> ls -l ~/Sudoku/tstBaz/Foo/Baz.pm lib/perl5/Foo/Baz.pm >> >> And this is my test module: >> >> package Foo::Baz; >> use strict; >> use warnings; >> >> print "Start Baz\n"; >> ---------------------------------------------------- >> >> The reply was "It appears you probably did nothing wrong". If this were true, it would mean that there is a bug either in the code or in the doku of Module::Starter::Smart. I can't really believe this, so I hope you can give me a hint on how I can successfully use your module. I don't like the idea of using Module::Build directly. >> >> Kind regards >> >> Klaus Wittrock >> >>
> >

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #72565] Cannot get to work an example in the POD
Date: Tue, 22 Nov 2011 08:41:00 +0800
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: Ruey-Cheng Chen <rueycheng [...] turing.csie.ntu.edu.tw>
Alright. Let me get back to you in one or two days. Ruey-Cheng
Subject: Re: [rt.cpan.org #72565] Cannot get to work an example in the POD
Date: Tue, 29 Nov 2011 16:06:53 +0800
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: Ruey-Cheng Chen <rueycheng [...] gmail.com>
Hey, Klaus, You are right. The line in the config file shall read `plugins' instead of `plugin'. I developed this plugin a while ago and didn't follow later updates to Module::Starter. And that's why you see the weird warning message. I suspect there are still other bugs, so I'll go ahead and create test suites based on your test cases. Might take a couple more days. I tried the simplest use case and it seemed to work okay. Prepare your config file as follows: author: Your Name Here email: your@email.here plugins: Module::Starter::Simple Module::Starter::Smart Then try the following lines: module-starter --module=Foo module-starter --distro=Foo --module=A,B,C module-starter --distro=Foo --module=Foo::C,Foo::D,Foo::E Now modify those .pm files as you like and add more modules. See how that works out. I'll release a new fix as soon as possible.
Subject: Re: [rt.cpan.org #72565] Cannot get to work an example in the POD
Date: Tue, 29 Nov 2011 21:40:02 +0800
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: Ruey-Cheng Chen <rueycheng [...] gmail.com>
Well I finally had time to sit down and figure out what went wrong. The examples in the pod is not entirely correct; in fact, the plug-in was developed for only the first scenario, where you have a distribution already created using Module::Starter and want to add new modules into the same distro without much trouble. The other two examples were contributed by another module user, but apparently I was to blame for not testing those cases before putting them directly into the module. Sorry about that. So I guess it's time to wrap up this mess. I'll fix up the pod and tiny bugs that I found and upload another release in a week.
Subject: Re: [rt.cpan.org #72565] Cannot get to work an example in the POD
Date: Wed, 30 Nov 2011 13:14:39 +0100
To: bug-Module-Starter-Smart [...] rt.cpan.org
From: "K. Wittrock" <KWittrock [...] web.de>
Now I found the source where I copied the "plugins:" line from. Not surprisingly it was the POD of Module::Starter. I opened Thunderbird to report this to you, there I found the 2 new emails from you. Fine. I tried the 3 lines as you suggested (without clearing the directory in between). The results look good. I'm looking forward for the next release. Thank you. Kind regards Klaus
Hi, I just uploaded a newer version to PAUSE. Shall be out in a few hours. Please try it out and see if your problem has resolved.