|P is for Practical|
Strawberry CPAN.pm wrongly overrides INC in Makefile.PLby nobull (Friar)
|on Sep 28, 2008 at 09:50 UTC||Need Help??|
nobull has asked for the wisdom of the Perl Monks concerning the following question:
Admin note: I posted this to "Seekers..." but on reflection it probably should be a "Meditation". Could someone with the power please move it.
I have Strawberry Perl 22.214.171.124 installed on WinXP SP3 and Win2003 boxes.
I can download modules from CPAN and build them manually using.
This all works fine because the PATH, INCLUDE and LIB environment variables contain the relevant directories under C:\strawberry.
However if I use the CPAN module it invokes perl to build the Makefile thus:
Most of the time this is harmless but in some cases this results in a broken Makefile. For example in Compress::Raw::Zlib Makefile.PL contains the following:
Relevant extracts from the (broken) Makefile for Compress::Raw::Zlib generated by running Makefile.PL from CPAN:
And, for comparison, relevant extracts from (working) Makefile for Compress::Raw::Zlib generated by running Makefile.PL manually:
The outcome of this is that under the CPAN module the compiler can't find any of the include files in the zlib-src subdirctory.
This is relatively easy to fix by editing c:/strawberry/perl/lib/CPAN/Config.pm and changing the line...
Who should I advise this to in order to get it fixed in the next release of Strawberry?
Update: oops, transposition in the Makefile snippets corrected.
Update: jettero suggests there may be a mailing list. I hate mailing lists as a way of reporting bugs. They are just the wrong tool. I have now found (in the obvious place (D'oh!)) the "official" way to report bugs. I think I