Re: Q: Build.PL/Makefile.PL, and CPAN testers...
On Sunday 30 September 2007 7:55 am, Jos I. Boumans wrote: On Sep 27, 2007, at 2:15 AM, Graham TerMarsch wrote: On Wednesday 26 September 2007 4:40 pm, Michael G Schwern wrote: Write a Build.PL with a compatibility Makefile.PL and make sure that Apache::Test is in the MakeMaker PREREQ_PM. You appear to be doing that so it should work. Is it not? No. The gotcha is, that when perl Makefile.PL is run, if Apache::Test isn't installed at -that- moment, it doesn't set up the test harness properly. Even if the build tool goes out and downloads and installs Apache::Test, it'd need to come back and re-run perl Makefile.PL again before attempting to build/test/install my package. CPANPLUS doesn't do that. This is a known issue and something that afaik Adam Kennedy is looking to resolve with having 'configure requires' support in META.yml. Unfortunately, there's no standard solution for this. What a lot of people do currently (myself included), is to bundle these prerequisites. I'm not sure how easy this is with Apache::Test though. Unfortunately, its not. Might be do-able, but it'd be a whole lot of extra modules to have to bundle up. I do see that CPAN has recent support for configure_requires, and that the current SVN for Module::Build does as well. I understand that it'd need to be listed in the META.yml file first, but if I do that, how far off are we for having CPANPLUS recognize it and then make sure that those dependencies are resolved before attempting to do the build? -- Graham TerMarsch
Re: [Cpanplus-devel] Q: Build.PL/Makefile.PL, and CPAN testers...
On Sun, 30 Sep 2007 16:55:45 +0200, Jos I. Boumans [EMAIL PROTECTED] said: This is a known issue and something that afaik Adam Kennedy is looking to resolve with having 'configure requires' support in META.yml. This sounds as if you understood configure_requires to be just a vague idea, but I understand it is reality, finished, approved. Unfortunately, there's no standard solution for this. What a lot of people do currently (myself included), is to bundle these prerequisites. I'm not sure how easy this is with Apache::Test though. That's why configure_require now needs support. It got CPAN.pm support with 1.92. -- andreas
Re: Q: Build.PL/Makefile.PL, and CPAN testers...
On Sep 27, 2007, at 2:15 AM, Graham TerMarsch wrote: On Wednesday 26 September 2007 4:40 pm, Michael G Schwern wrote: Graham TerMarsch wrote: How about I take a different approach here, and ask... What would be the recommended way to minimize the number of automated CPANPLUS test failures, knowing that I -have- to have Apache::Test installed in order for the tests to run successfully? Write a Build.PL with a compatibility Makefile.PL and make sure that Apache::Test is in the MakeMaker PREREQ_PM. You appear to be doing that so it should work. Is it not? No. The gotcha is, that when perl Makefile.PL is run, if Apache::Test isn't installed at -that- moment, it doesn't set up the test harness properly. Even if the build tool goes out and downloads and installs Apache::Test, it'd need to come back and re-run perl Makefile.PL again before attempting to build/test/install my package. CPANPLUS doesn't do that. Instead, it just goes back and runs make after its installed the dependencies. Thus, -none- of the test suites succeed, as the harness wasn't set up properly when perl Makefile.PL was run. This is a known issue and something that afaik Adam Kennedy is looking to resolve with having 'configure requires' support in META.yml. Unfortunately, there's no standard solution for this. What a lot of people do currently (myself included), is to bundle these prerequisites. I'm not sure how easy this is with Apache::Test though. Good luck, -- Jos Boumans If superman is so smart, why does he wear underpants over his trousers? CPANPLUShttp://cpanplus.sf.net
Re: Q: Build.PL/Makefile.PL, and CPAN testers...
On Sep 30, 2007, at 10:09 PM, Graham TerMarsch wrote: I'm not sure how easy this is with Apache::Test though. Unfortunately, its not. Might be do-able, but it'd be a whole lot of extra modules to have to bundle up. That's unfortunate =/ I do see that CPAN has recent support for configure_requires, and that the current SVN for Module::Build does as well. I understand that it'd need to be listed in the META.yml file first, but if I do that, how far off are we for having CPANPLUS recognize it and then make sure that those dependencies are resolved before attempting to do the build? Not very far, at that point it's a matter of SMOP + good testing really. Currently, we're doing VMS portability fixes and last bits to prepare it for 5.10, after that, i'm happy to look into this with the interested parties. -- Jos Boumans Two rules to success in life: 1. Don't tell people everything you know --Sassan Tat