This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch@31780] fixes for cpanplus on VMS
[perl5.git] / lib / Module / Build / Changes
CommitLineData
bb4e9162
YST
1Revision history for Perl extension Module::Build.
2
77e96e88
RGS
3 - On some systems (haven't identified the actual problem yet)
4 $ENV{PERL5LIB} can grow to enormous enough sizes that we can't
5 launch any more subprocesses because the environment table is full.
6 This is the now-infamous "Couldn't run Build.PL: Argument list too
7 long" error. Now we detect such situations and trim the directory
8 list to only include directories that actually exist, listed only
9 once each. Not the ideal solution, but it should work.
10
11 - Silence a warning in M::B::ModuleInfo that happens when the author
12 is using the "$VERSION = eval $VERSION" idiom.
13
14 - When running the 'testcover' action, do "cover --delete" if any of
15 the test files have changed (we already did so if any of the code
16 under test has changed). [Suggested by Chris Dolan, RT #23584]
17
18 - Fixed a broken link in the documentation about PREFIX. [Spotted by
19 David Steinbrunner]
20
21 - Changes to do_system() & friends on VMS to get system calls working
22 much better there. [Craig Berry]
23
24 - Added the "pardist" target which creates a PAR binary distribution
25 akin to a PPM distribution. [Steffen Mueller]
26
27 - Added the Interix platform as a Unix variant. [Stephen Hartland]
28
29 - Improved the error message we emit when a distribution contains XS
30 files but the user has no C compiler. [Suggested by Andreas Koenig]
31
320.2805_01 Thu Sep 7 21:57:29 CDT 2006
33
34 - Because of a weird behavior of YAML::Node, any distribution that
35 used version.pm objects to define their versions was generating the
36 wrong syntax for the versions in their META.yml file. They will
37 now appear as strings like v3.42.1 or similar, including the
38 leading v.
39
40 - Upgraded to version 0.67 of version.pm. [John Peacock]
41
42 - Added a contrib/ directory with a bash completion function for M::B
43 actions and switches. [Julian Mehnle]
44
45 - When we eval() the embedded version.pm code we will now die() if
46 the eval() was unsuccessful, rather than continuing blindly on and
47 dying mysteriously later.
48
49 - Added a 'retest' action that lets users run the current regression
50 tests on a previously-installed version of a distribution.
51
52 * Instead of storing an entire dump of the Config.pm hash in the
53 _build/ directory upon startup, we now just store any overrides the
54 user or author has specified. Note that if you were doing anything
55 you weren't supposed to be doing, like poking around in the
56 internals of $buld->{config}, your code might break, so I've put
57 the asterisk of incompatibility on this one just to cover my
58 tuchus. [Idea originally by Randy Sims]
59
60 - Made copying files via copy_if_modified() a little less chatty.
61
0ec9ad96
SP
620.2805 Sat Jul 29 22:01:24 CDT 2006
63
64 - We now embed a copy of version.pm right in the
65 Module::Build::Version source code, with John Peacock's blessing,
66 in case the user has a rough time installing version.pm. This
67 helps alleviate troubles people were still having with working out
68 a seemingly circular dependency (even though version.pm now ships
69 with a standard Makefile.PL too). A version.pm >= 0.661 installed
70 on the system will take precedence over our bundled one. [John
71 Peacock]
72
73 - Fix some test warnings (or failures?) related to version.pm
74 numification. [John Peacock]
75
76 - The top-level 'version' entry in META.yml files we'd generated was
77 in the wrong format (it was being treated as a version.pm object
78 rather than a serialized copy) due to a weird YAML::Node issue.
79 Fixed.
80
81 - Don't 'use base qw(version)' anymore in our M::B::Version wrapper,
82 just set @ISA directly, because some people have reported that the
83 'use base' line is croaking.
84
85 - Added an 'allow_mb_mismatch' parameter to suppress the startup
86 check that ensures the version of M::B currently running is the
87 same as the one initially used to run the Build.PL. Use with
88 caution.
89
90 - Module::Build::ModuleInfo will no longer detect things that look
91 like $VERSION assignments after an __END__ or __DATA__ token.
92
93 - Updated documentation to mention the new mailing list on perl.org
94 rather than the old one on sourceforge.
95
960.2804 Sun Jul 16 16:41:25 CDT 2006
97
98 - Added 'use version;' in Module::Build::Version, because some
99 versions of base.pm won't automatically load version.pm when we do
100 'use base qw/version/;'. [Spotted by Erik Tank]
101
7a501b10
SP
1020.2803 Sat Jul 15 08:26:34 CDT 2006
103
104 - The META.yml file in the last release was all screwed up, so the
105 distribution wasn't indexed properly. Fixed in this release.
106
b3dfda33
SP
1070.2802 Fri Jul 14 22:40:34 CDT 2006
108
109 - Added reliance on version.pm, which means we should deal much
110 better with the wide range of version specifications one finds on
111 CPAN. This is made possible by recent releases of version.pm that
112 give the user a pure-perl option, so installing version.pm
113 shouldn't be too onerous for most users. [John Peacock]
114
115 - We should be accepting the default when we're in unattended mode,
116 not acting dumb and ignoring both the default and the [empty]
117 answer from the user. Fixed. [Spotted by Nik Clayton]
118
f943a5bf
SP
1190.2801 Sun May 21 00:07:40 CDT 2006
120
121 - Module::Build::Compat's emulation of INC is incorrectly prepending
122 a -I to the value of INC. This is incorrect because there should
123 already be a -I on the value. I.E. it's "perl Makefile.PL INC=-Ifoo"
124 not "perl Makefile.PL INC=foo" so Compat should not prefix a -I.
125 [Michael Schwern]
126
127 - Native batch scripts under Windows should not be converted by
128 pl2bat. [Spotted by Ron Savage]
129
130 - Tweaked the way we determine whether a file is executable on Unix.
131 We use this determination to decide whether to make it executable
132 during installation. [Julian Mehnle]
133
134 - Replaced a vestigial 'next' with 'return' now that the code is in a
135 subroutine (htmlify_pods()), not a loop. [Ron Savage]
136
137 - Fixed a guaranteed failure in t/signature.t when TEST_SIGNATURE was
138 set. [Eric R. Meyers]
139
140 - Fixed a test failure that occurred when testing or installing in
141 unattended mode - the code to test whether unattended mode and
142 attended mode are working properly was assuming that we started out
143 in attended mode. [Steve Peters]
144
145 - Improved our stand-in YAML generator that we use to generate
146 META.yaml when authors don't have a copy of YAML.pm installed on
147 their machine. It was unable to handle things like embedded
148 newlines in the data, now it has a much more extensive escaping
149 mechanism. [Stephen Adkins]
150
151 - Revised the docs for --prefix and PREFIX. [Michael Schwern]
152
dc8021d3
SP
1530.28 Thu Apr 27 22:25:00 CDT 2006
154
155 - When y_n() or prompt() are called without a default value and the
156 build seems to be unattended (e.g. in automatic CPAN testing), we
157 now die() with an error message rather than silently returning
158 undef for prompt(), or looping indefinitely for y_n().
159
160 - When searching for '.modulebuildrc', return the first HOME-like
161 directory that actually contains the file instead of the first
162 existing directory. Document the search locations and the order
163 searched. [Spotted by David Golden]
164
165 - Split the API documentation out of Module::Build::Authoring into
166 its own document: Module::Build::API.
167
168 - We should not emit a warning if a Module::Build subclass is
169 required in a Makefile.PL that is not bundled in the current
170 distribution; it may be installed on the user's system. [Spotted by
171 Tyler MacDonald]
172
173 - copy_if_modified() now preserves the executable bit of the source
174 file. [Spotted by Julian Mehnle]
175
176 - Fixed compatibility of our screen-scraping the Test::Harness output
177 so we can recognize the most recent Test::Harness version. [Steve
178 Hay]
179
180 - Backing out a requirement added in 0.27_06 on the method y_n()
181 to always include a default. This behavior would cause existing
182 build scripts to start failing. We now fail with a missing default
183 only when $ENV{PERL_MM_USE_DEFAULT} is set because there is no
184 reasonable default.
185
186 - Make install_types() method smarter with respect to custom install
187 types.
188
189 - Add documentation for the install_base_relpaths() and
190 prefix_relpaths() methods. Improved their usage for a public API,
191 and added tests.
192
1930.27_10 Tue Mar 28 22:50:50 CST 2006
a314697d
RS
194
195 - Added the create_packlist property, default true, which controls
196 whether packlist files will be written during installation. This
197 was already part of Module::Build 0.2609, but for some reason we've
198 forgotten it in the 0.27_xx series. [Spotted by Steve Kirkup]
199
200 - Document the versions of Module::Build where each feature, action,
201 constructor argument, and method was first publicly documented.
202
203 - More fixes for find_perl_interpreter() to work with BSD flavored
204 UNIX: Ensure we always return absolute paths; throw an exception
205 upon failure to find correct interperter; document everything.
206
207 - We now include our own YAML.pm work-alike that we can use when the
208 real YAML isn't installed. We might soon even start using it when
209 YAML is installed, because the YAML API and dependency chain have
210 been changing in unfavorable ways lately. [Stephen Adkins]
211
212 - Fixed some shell-argument-quoting issues on VMS. In the process,
213 we have added some support for avoiding tripping over
214 shell-argument-quoting issues on other platforms too. [Initial
215 patch by Craig A. Berry]
216
47f13fd5
SP
2170.27_09 Sat Mar 11 22:48:54 EST 2006
218
219 - Fixed find_perl_interpreter() so we can find the perl executable
220 when running from uninstalled perl even when $^X contains a
221 relative path. [Yitzchak Scott-Thoennes]
222
223 - Fixed warning message where we were printing the wrong field names.
224 [Chris Dolan]
225
226 - Added a 'testpodcoverage' action that runs a POD coverage check for
227 all modules in the distribution. [Yanick Champoux]
228
229 - Added a Cookbook example of subclassing to modify an action. [Dylan
230 Martin and David Golden]
231
232 - When building HTML documentation, we were opening the POD file and
233 not checking whether the open succeeded, which of course caused
234 problems down the line if it failed. Now we do "or die(...)" like
235 everywhere else. [Spotted by Joerg Braun]
236
bb4e9162
YST
2370.27_08 Fri Mar 3 21:22:41 CST 2006
238
239 - Due to shell quoting issues and differences in syntax between
240 various flavors of Windows, the code for the 'pl2bat' utility
241 distributed with Perl has been incorporated into M::B::P::Windows.
242 [Thanks to Dr Bean and Ron Savage for help testing and isolating
243 the problem.]
244
245 - Modify add_build_element() so that it only adds elements if they
246 don't already exist. [David Wheeler]
247
248 - Fixed a bug in the 'pass-through' Makefile.PL in which we would die
249 if CPAN::Shell->install returned false, but apparently this return
250 value is unreliable. Now we only die if the module is actually
251 unavailable after installation.
252
253 - Fixed testing problems on VMS related to non-case-preserving
254 filesystems. We now bundle Tie::CPHash in the distribution (just
255 for testing purposes, it doesn't get installed) to help with
256 this. [Craig Berry and Yitzchak Scott-Thoennes]
257
258 - We incorrectly documented the 'dynamic_config' flag in the META.yml
259 file as having a default value of false, but according to the
260 META.yml spec (which, for heaven's sake, we wrote) its default
261 value is true. Fixed. [Spotted by Adam Kennedy]
262
263 - The have_c_compiler() method was dying if the ExtUtils::CBuilder
264 module wasn't around, which is obviously an unhelpful thing to do.
265 Now it just returns false. [Spotted by John Peacock]
266
267 - Fix detection of $VERSION expressions that are not
268 assignments. [Spotted by Chris Dolan]
269
270 - Obfuscate one of our constructs that uses a $VERSION variable,
271 because it was getting picked up by ExtUtils::MakeMaker's
272 version-finder. [Spotted by Randal Schwartz]
273
274 - The config_data script for querying and/or setting a module's
275 config data was forgetting to call write() after setting config
276 values (though setting feature values was working fine).
277 Fixed. [Brian Duggan]
278
279 - On Windows, remove the pl2bat generated 'Build.bat' script without
280 the annoying "The batch file cannot be found." error. [Solution
281 provided by RazTK and foxidrive on newsgroup alt.msdos.batch]
282
283 - Our version comparisons should now work correctly with modules that
284 use version.pm to delcare their versions (e.g. "our $VERSION =
285 version->new('1.0.0')"). [John Peacock and Ron Savage]
286
287 - We now create a Build.bat script on versions of Windows where it
288 makes sense. [Yves]
289
290 - Fixed the verbiage around choosing the correct make-alike on
291 different platforms to suggest using 'perl -V:make'. [Suggested by
292 anonymous user]
293
2940.27_07 Wed Feb 1 20:07:45 CST 2006
295
296 - The notes() method now returns the new value when called with two
297 arguments, just like when it's called with one argument. [Tyler
298 MacDonald]
299
300 - The notes() method now distinguishes among the values undef, 0, and
301 the empty string, where previously it didn't. [Tyler MacDonald]
302
303 - We now unshift(@INC) rather than push(@INC) for the directory where
304 a build subclass lives, so that we're sure to pick up the right
305 version and not some already-installed version. [perlmonkey]
306
307 - The SIGNATURE file for version 0.27_06 (and I'm sure for lots of
308 versions before that too!) was messed up, since we were modifying
309 some files after signing. This has been band-aided for the time
310 being by signing twice. [Reported by Chris Dolan]
311
3120.27_06 Mon Jan 23 21:44:54 CST 2006
313
314 - Fixed an undefined-variable warning when building the META.yml file
315 and the author hasn't used the 'module_name' mechanism. [Chris Dolan]
316
317 - We should now work with recent (> 0.49) versions of YAML.pm when
318 creating the META.yml file. [Yitzchak Scott-Thoennes]
319
320 - The y_n() method now requires the default parameter, and the
321 prompt() and y_n() methods have been improved with respect to
322 how they behave/detect when there is no user to ask. We're now
323 more consistent with MakeMaker, including respecting the
324 PERL_MM_USE_DEFAULT environment variable. [Tyler MacDonald and
325 Yitzchak Scott-Thoennes]
326
327 - When building a README file using Pod::Text, work around a bug in
328 Pod::Text 3.01, which expects Pod::Simple::parse_file to take input
329 and output filehandles when it actually only takes an input
330 filehandle. [Yitzchak Scott-Thoennes]
331
3320.27_05 Thu Jan 12 17:39:21 CST 2006
333
334 - In t/common.pl, we were attempting to let the user's installed
335 Test::More take precedence over ours, but getting thwarted by all
336 the test scripts' loading Test::More beforehand. Fixed. [Spotted
337 by Yitzchak Scott-Thoennes]
338
339 - In various test scripts, we were outputting some strings that
340 weren't strictly conformant with Test::Harness's expected input,
341 though it didn't actually cause problems. Now we're more
342 conformant, though not yet strict. [Spotted by Yitzchak
343 Scott-Thoennes]
344
3450.27_04 Fri Dec 23 10:43:34 CST 2005
346
347 - Removed experimental feature that extended the prerequisite system
348 to apply ('requires', 'recommends', and 'conflicts') prereqs to all
349 actions. Most of the internal extensiblity has been retained so
350 that prereq types can easily be added, more selectively.
351
352 - Added a 'prereq_report' action that shows the user a well-formatted
353 list of all prerequisites, the versions required, and the versions
354 actually installed. [David Wheeler]
355
356 - Clarified the directory name that's created during the 'distdir'
357 action. [Suggested by Tyler MacDonald]
358
359 - Fixed a bug when creating the META.yml file without the help of
360 YAML.pm - some common strings weren't quoted & escaped properly.
361 Now only some uncommon ones are. [Spotted by Joshua ben Jore]
362
363 - Fixed a bug in which an "UNINST=1" argument specified to a
364 passthrough Makefile's "make install" wasn't actually seen by
365 Module::Build.
366
367 - Rather than dying when the Build script is run from the wrong
368 directory, it now simply chdir()s into the right directory and
369 keeps going. [Suggested by Dominique Quatravaux]
370
371 - Added an "Examples on CPAN" section to the cookbook, with an
372 initial entry pointing to John Peacock's SVN-Notify-Mirror
373 distribution.
374
375 - Add an invoked_action() method to return the name of the original
376 action invoked by the user.
377
378 - Add 'meta-spec' field to the generated META.yml file, including the
379 version of the specification followed by the current Module::Build
380 and the url where the specification can be found.
381
382 - Introduced two actions, 'html' & 'manpages', that generate
383 documentation for POD when the respective feature is enabled. The
384 actions will generate the documents even if there is no set place
385 to install to. However, if the actions are invoked as a dependency
386 of another action (e.g. build), the documentation will only be
387 built when there is a default or user-specified place to install to.
388
389 - Added support for environment variable, 'MODULEBUILDRC', which can
390 be used to specify the full path to an option file to use instead
391 of the default location of ~/.modulebuildrc. A special undocumented
392 setting of 'NONE' tells Module::Build not to load any user settings,
393 so tests can be run without tainting from user options.
394
395 - Documented and improved preliminary support for more Getopt::Long
396 style options are supported, including boolean options (--verbose,
397 --no-verbose), and use of hyphens in option names in addition to
398 underscores.
399
400 - The option to disable/enable reading of the ~/.modulebuildrc file
401 is changed from 'skip_rcfile' to 'use_rcfile'
402
403 - Allow the 'distmeta' action to continue when 'MANIFEST' is missing,
404 omitting the generation of the 'provieds' field. [Steven Schubiger]
405
406 - Fixed some failing regex from generated MANIFEST.SKIP file.
407
408 - Fixed an edge case in $VERSION parsing where we thought a package()
409 declaration was happening but it wasn't. [David Golden]
410
411 - Added docs for the install_destination() and install_types() methods.
412
4130.27_03 (Beta for 0.28) Mon Oct 10 11:19:23 EDT 2005
414
415 - We now use ExtUtils::CBuilder to do all compiling of C code (for
416 example, when compiling XS modules). (This change actually
417 occurred in 0.27_01, but it was mistakenly omitted from the Changes
418 file.)
419
420 - Fixed an issue on Win32 (and other case-tolerant
421 non-case-preserving systems, possibly like VMS?) in which the
422 current working directory would sometimes be reported with
423 different case, fooling us into thinking that we were in the wrong
424 directory. [David Golden]
425
426 - The extra_compiler_flags setting was not actually being passed
427 along to ExtUtils::CBuilder so it could pass it along to the
428 compiler. Now it is.
429
430 - The synonyms 'scripts' and 'prereq' for 'script_files' and
431 'requires' were broken in a previous version (0.27_01, probably),
432 but now they're fixed. [David Golden]
433
434 - Previously, we assumed that any custom subclass of Module::Build
435 was located in _build/lib/. This is only true if the author used
436 the subclass() method, though. We now use %INC to find where the
437 custom subclass really is, so that we can "use lib" it. We also
438 issue a warning if it seems to be outside the build directory.
439 [Spotted by Peter Tandler]
440
441 - Added a URL for each license type that we know about, which will
442 appear as resources=>license: in the generated META.yml file.
443
444 - If the user passes a no_index parameter to our constructor, we now
445 pass that through when building the META.yml file. [Richard
446 Soderberg, RT #9603]
447
448 - A few more status messages can now be suppressed by using 'quiet'
449 mode. [Dave Rolsky]
450
451 - Added some more entries to the default MANIFEST.SKIP file. [Chris
452 Dolan]
453
454 - Our POD parser will now accept "AUTHORS" as well as "AUTHOR" when
455 looking for the author list in a module. [David Wheeler]
456
457 - When looking for the POD to auto-generate a README file, or for the
458 AUTHOR or ABSTRACT for the distribution, we now also look for a
459 *.pod with the same name as the *.pm file specified by
460 'version_from'. [David Golden]
461
462 - The recommended dependency on ExtUtils::ParseXS has been moved into
463 the "C_support" auto_feature.
464
465 - When building XS files, we now pass the -DVERSION and -DXS_VERSION
466 flags to the compiler. [Spotted by Jerry Hedden]
467
468 - If a distribution has XS files and Module::Build has not been
469 configured with the "C_support" feature, we now issue a
470 warning. [Suggested by Jerry Hedden]
471
472 - Added a dir_contains() method.
473
474 - Some versions of MakeMaker, CPANPLUS, and/or PAUSE thought that a
475 certain line of our code was declaring a $VERSION when we didn't
476 intend to. The line has been obscurified so they won't think that
477 anymore. [Jos Boumans, RT #14226]
478
479 - Added the Apache, MIT, and Mozilla licenses to the list of licenses
480 that this module knows about. [Bob Ippolito]
481
482 - Fixed a pretty significant typo in the documentation for
483 auto_features. [Spotted by Jonas B. Nielsen]
484
485 - In order to aid people who want to do customization of the META.yml
486 file, we've added a "metafile" property that can then be easily
487 overridden in subclasses, changed do_create_meta_yml() to
488 do_create_metafile(), and split out the code that actually
489 generates the YAML into a new method, write_metafile(). [David
490 Wheeler]
491
492 - Fixed a couple of non-helpful behaviors with extra_compiler_flags
493 and extra_linker_flags. These will automatically be run through
494 split_like_shell() when given to new() as strings.
495
496 - When the user doesn't have ExtUtils::ParseXS installed and we use
497 the old 'xsubpp', the displayed command line for creating the .c
498 file from the .xs file was missing its newline. Now it's got it.
499
5000.27_02 (Beta for 0.28) Fri Jul 15 07:34:58 CDT 2005
501
502 - Provided initial support for the --prefix installation parameter,
503 which acts like MakeMaker's PREFIX. It is still highly recommended
504 NOT to use it when you could reasonably use --install_base or
505 --install_path or --install_dest, but that's just because the way
506 --prefix is designed is weird and unpredictable. Ultimately the
507 choice rests with the installing user. [Patches by Michael Schwern
508 and Rob Kinyon]
509
510 - Fixed a bug in subclass() which prevented people from using it to
511 subclass subclasses of Module::Build. [Chris Dolan]
512
513 - Added a 'pure_install' action, which for the time being is
514 identical to the 'install' action. [Jos Boumans]
515
516 - Fixed a POD error in an L<http://...> tag. [Offer Kaye]
517
518 - Note several options for automatically creating a new module dev
519 tree. [Suggested by Eric Wilhelm]
520
521 - Removed some hard-coded references to File::Spec::Unix in the
522 creation of HTML docs, which should help that code work in more
523 places, and help people not to panic when they look at it. [Spotted
524 by Yves]
525
526 - We now use Pod::Readme by default (instead of Pod::Text) to
527 generate the README file when the 'create_readme' option is used.
528 If Pod::Readme is not installed, we will still fall back to using
529 Pod::Text. [Robert Rothenberg]
530
531 - The values of the "prefix", "install_base", "install_path", and
532 "install_dest" parameters can now begin with "~" or "~user", and
533 we'll de-tilde-ify them by using glob().
534
535 - The (optional) auto-creation of the README and Makefile.PL files
536 have been moved from the 'distdir' action to the 'distmeta'
537 action. [David Golden]
538
539 - When looking for a .modulebuildrc file, we now use a fancier method
540 of trying to find the home directory, because $ENV{HOME} isn't a
541 very cross-platform variable. [Robert Rothenberg]
542
543 - We now memoize the output of the internal _default_INC() method,
544 since it uses backticks and might be kind of slow.
545
546 - When processing XS files, we now look for a typemap in lib/ as well
547 as using the system's default typemap. [John Peacock]
548
549 - The DESTDIR, PREFIX, and INSTALL_BASE arguments to "make install"
550 are now supported for pass-through Makefiles (they've been
551 supported for quite a while as arguments to "perl
552 Makefile.PL"). [Requested by Guillaume Rousse]
553
554 - Test::Harness has changed its output format in recent versions,
555 which threw off one of our tests. We now allow for this different
556 format. [Reported by Scott Godin]
557
558 - Fixed an issue that prevented Module::Build from upgrading itself
559 using its own API (which is how CPANPLUS uses it). There are still
560 some issues with this solution, however. See ticket #13169 in
561 rt.cpan.org. [Reported by Jos Boumans]
562
563 - Fixed a fatal error that occurred when a distribution's author
564 could not be determined from its POD nor from the call to
565 Module::Build->new() in its Build.PL. See ticket #12318 in
566 rt.cpan.org. [Reported by Jos Boumans]
567
568 - Apparently on Windows and cygwin it's not possible to use the "-pi"
569 switch to perl without a backup extension, so now we use ".bak" and
570 remove the backup file when we're done. Thus the "dist" action for
571 Module::Build itself can now be run on those platforms. [Yitzchak
572 Scott-Thoennes]
573
574 - Improved the handling of auto_features in the config_data access
575 script. [Yitzchak Scott-Thoennes]
576
5770.27_01 (Beta for 0.28) Fri Apr 15 21:12:57 CDT 2005
578
579 Backward-incompatible (but better) changes:
580
581 * When using the 'install_base' option to choose a directory for
582 installing everything, perl modules now go into lib/perl5/ instead
583 of just lib/. It seems this is more consistent with people's
584 expectations, and the way I had it before was a bit peculiar to the
585 way I like things in my own home directory. [Michael Schwern]
586
587 * When the user is using the 'install_base' option, scripts will now
588 be installed by default in $install_base/bin/ rather than
589 $install_base/script/ . [Jan Hudec and Michael Schwern]
590
591 Major changes:
592
593 - The auto_features mechanism will now re-evaluate dependencies every
594 time feature() is called for an auto-feature, rather than freezing
595 the success/failure value during 'perl Build.PL' and using that
596 value for all eternity (or module update, whichever comes first).
597 This applies to both $build->feature() and
598 FooModule::ConfigData->feature() calls. [Requested by many]
599
600 - Added the meta_add and meta_merge mechanisms, which let the module
601 author add/merge arbitrary entries into the META.yml file.
602
603 - Now reads per-action default options from '$ENV{HOME}/.modulebuildrc'
604 if it exists. Command line options override anything set in the rc file.
605
606 - We now use ExtUtils::CBuilder to do all compiling of C code (for
607 example, when compiling XS modules).
608
609 - The creation of Unix man pages is no longer a strict necessity - it
610 has now been turned into an 'auto-feature' contingent on the
611 presence of Pod::Man and a location specified for man pages to go.
612
613 - A user-specified 'install_path' setting will now take precedence
614 over an 'install_base' setting. This allows the user to use
615 'install_base' to set the base for all elements in one go, and then
616 use 'install_path' to override specific paths or add paths for
617 additional kinds of targets.
618
619 - Split the main documentation from 'Module/Build.pm' into two
620 sections. The user level documentation and overview remains in
621 'Module/Build.pm', while a new document,
622 'Module/Build/Authoring.pod', has been created for module authors.
623
624 Minor changes:
625
626 - new_from_context() was losing its arguments in some cases (and not
627 because of inadequate training in forensic debate) - we now pass its
628 arguments directly to the Build.PL script rather than merging them
629 in afterwards.
630
631 - Let resume() return an object blessed into the appropriate class
632 if the user has provided a subclass, as specified by the
633 'build_class' property. This allows current() and new_from_context()
634 to behave more like factory methods returning objects of the correct
635 class based on context. [Ray Zimmerman]
636
637 - Refactored methods relating to parsing perl module files for
638 package, version, and pod data into a new class:
639 Module::Build::ModuleInfo. It should not be considered part of
640 Module::Build's API, because we may split it out entirely as a
641 separate CPAN module that we depend on.
642
643 - Added new method Module::Build::prepare_metadata() for authors to
644 override in order to add custom fields to META.yml.
645
646 - We now use Test::More for our regression tests. If the user
647 doesn't have it installed, we include a copy in t/lib/ that we can
648 use during testing.
649
650 - When copying files in the 'distdir' action, set permissions to match
651 the original files. [Julian Mehnle]
652
653 - When adding files like META.yml to the MANIFEST, we now tell the
654 user we're doing so by printing one of the "Added to MANIFEST: ..."
655 lines. [Ron Savage]
656
657 - Added a runtime_params() method, which lets a module author see
658 which parameters were overridden by the user on the command line
659 (or in whatever paradigm the user originally invoked Module::Build
660 from). [David Wheeler]
661
662 - Added the current_action() method, which, surprisingly, returns the
663 name of the currently running action. [David Wheeler]
664
665 - Added docs for run_perl_script().
666
667 - Added some stuff to the docs about why PREFIX is unsupported, and
668 what to use instead. [Steve Purkis]
669
670 - The simple get/set accessor methods for all the 'parameters' like
671 verbose(), license(), etc. now have auto-generated documentation in
672 Module/Build.pm.
673
674 - Created a Cookbook entry for 'Adding new elements to the install
675 process'
676
677 - We now add META.yml to the MANIFEST when META.yml is created, not
678 when MANIFEST is created. [Spotted by Ron Savage]
679
680 - Added some additional patterns to the suggested MANIFEST.SKIP
681 contents, and changed the docs so that we encourage the user to use
682 the MANIFEST.SKIP. [Ron Savage]
683
684 - Eliminated a redundant recipe from the Cookbook, now that there are
685 some more extensive recipes on how to add stuff to the
686 build/install sequences.
687
688 - Eliminated an undefined-variable warning when testing under perl 5.005
689
690 - When building HTML documentation, 'html_backlink' and 'html_css'
691 properties are now first-class properties, so they can be set from
692 the command line. [Suggested by Sagar R. Shah]
693
694 - Have script_files default to everything in bin. I believe this is
695 the least surprising behavior. [Suggested by Michael Schwern]
696
697 - If script_files is given a directory, consider each file in that
698 directory tree as a script to be installed. This avoids having to
699 remember to add to the script_files list every time you add a
700 program. [Suggested by Michael Schwern]
701
702 - We now only load Pod::Man when we actually need to build man pages.
703
704 - We now make Test::Harness use our carefully-selected path to a perl
705 executable regardless of Test::Harness's version. Previously we
706 let it figure stuff out for itself if it was a reasonably modern
707 version, but it's safer to make sure we're using the same perl
708 everywhere.
709
7100.2610 Fri Apr 15 08:25:01 CDT 2005
711
712 - new_from_context() was losing its arguments in some cases (and not
713 because of inadequate training in debate) - we now pass its
714 arguments directly to the Build.PL script rather than merging them
715 in afterwards. [Ray Zimmerman]
716
717 - Fixed a bug in which config_data and feature data were being
718 forgotten and no ConfigData.pm module would get written. [Ray
719 Zimmerman]
720
721 - Added a recipe to the cookbook showing how to run a single test
722 file from the command line. [William McKee]
723
724 - For command-line arguments, we now accept the syntax "--foo=bar" in
725 addition to "--foo bar" and "foo=bar". This seems to fit well with
726 what GNU getopt and Getopt::Long do, and with people's
727 expectations. [Adam Spiers]
728
7290.2609 Wed Mar 16 22:18:35 CST 2005
730
731 - The html docs that were created during the first invokation of
732 './Build' were being found and treated as pod that needed to be
733 converted to html during subsequent invokations. We now are more
734 specific about the directories we scan for pod that needs to be
735 converted, effectively avoiding blib/html. [Ray Zimmerman]
736
737 - If Pod::Man is not available, we now skip building man pages
738 (rather than dying) and tell the user why.
739
740 - We now write a .packlist file upon installation, in the same place
741 that ExtUtils::MakeMaker does. [Johnny Lam]
742
743 - On some Unix platforms (BSD derivatives, mostly) perl's $^X
744 variable isn't set to the full path of the perl executable, just
745 'perl', when the 'Build' script is run as './Build' and not 'perl
746 ./Build'. This can lead to some other modules (maybe
747 Test::Harness, maybe IO::File, I dunno...) getting very confused
748 about where they are, and they try to load stuff from the wrong
749 perl lib, and big trouble ensues. To fix this, we now set $^X to
750 the value of Module::Build->find_perl_interpreter().
751
752 - The 'distcheck' action will now die() if it finds an error in the
753 MANIFEST, rather than just printing on STDOUT. [David Golden]
754
755 - When the README and/or Makefile.PL are autogenerated using
756 create_readme or create_makefile_pl, we now automatically make sure
757 they're also listed in the MANIFEST file. [Suggested by Michael
758 Schwern]
759
760 - Got rid of the t/MANIFEST file - it's superfluous, and it had
761 zero-length, which some versions of Tar don't like. [William
762 Underwood]
763
764 - Added a mention in the documentation that each property that new()
765 accepts also has a corresponding get/set accessor. (In the version
766 0.27_0x series each accessor method is mentioned explicitly in the
767 docs.) [Omission spotted by Ian Langworth]
768
7690.2608 Wed Jan 26 19:46:09 CST 2005
770
771 - Add workaround for test files because Devel::Cover causes
772 require to fail when the argument to require is an expression
773 involving File::Spec. We now assign the result of the File::Spec
774 call to a variable and then call require with that variable.
775
776 - Tilde-expansion is now performed on arguments passed to a
777 compatibility-Makefile.PL [Spotted by Sam Vilain]
778
779 - We now run the 'gzip' and 'tar' values through split_like_shell()
780 when running the 'dist' action, so that e.g. the 'gzip' value can
781 be set to something like "gzip -f --best" and it'll work
782 correctly. [Spotted by Chris Dolan]
783
784 - Work around some bad mojo between Fedora Core [with its very long
785 @INC] and old versions of Test::Harness [with its propensity to
786 compound the number of @INC entries] that produced an "argument
787 list too long" error during testing. [assisted by Ville Skytta,
788 David Golden, & Randy Sims]
789
790 - Killed an infinite loop that would happen in y_n() in interactive
791 mode if the author provided no default value. [Max Maischein]
792
7930.2607 (Bug fix release in 0.26 series) Sat Dec 18 14:14:09 CST 2004
794
795 - Instead of freezing @INC in the 'Build' script to the value it had
796 when Build.PL was run, we now just add those additional values that
797 aren't part of the default compiled-in @INC. [Michael Schwern]
798
799 - The run_perl_script() method will now propagate any extra entries
800 in @INC (such as those added by "use lib" or the -I command-line
801 switch) to the subprocess. This helps situations in which you want
802 to tell the subprocess where to find a certain module, for
803 instance. [Michael Schwern]
804
8050.2606 (Bug fix release in 0.26 series) Tue Dec 7 22:33:11 CST 2004
806
807 - Fixed a linking bug on Win32, in which compiled C code object files
808 never got linked in with the modules being built. [Dominic
809 Mitchell]
810
811 - Fixed a bug in the new_from_context() method in which any arguments
812 passed made us die. [Spotted by Jos Boumans]
813
8140.2605 (Bug fix release in 0.26 series) Tue Nov 30 07:16:13 CST 2004
815
816 - Fixed a bug in which zero-length arguments for hash-valued
817 parameters (e.g. " --config foo= ") weren't being allowed.
818
819 - The tests now play better with environments in which version.pm is
820 pre-loaded, like in bleadperl. [John Peacock & Michael Schwern]
821
822 - Fixed a syntax error in one of the tests under perl 5.005.
823
8240.2604 (Bug fix release in 0.26 series) Wed Nov 17 14:32:42 CST 2004
825
826 - Fixed a split_like_shell() bug introduced in 0.2603 for Windows, in
827 which an array reference passed as an argument was returned as an
828 array reference, rather than as a list. [Spotted by Steve Hay]
829
830 - module_name() will now return '' instead of undef when module_name
831 is not set. This eliminates a couple uninitialized-value
832 warnings. [Suggested by Michael Schwern]
833
834 - The expand_test_dir() method will now skip dotfiles (like ._foo.t,
835 which sometimes gets automatically created on Mac systems) when
836 'recursive_test_files' is in effect. [Tom Insam]
837
8380.2603 (Bug fix release in 0.26 series) Mon Nov 15 10:28:00 CST 2004
839
840 - Added documentation for the new_from_context() method.
841
842 - Completely rewrote the split_like_shell() method for the Windows
843 platform so it works like the command.com shell. [Randy Sims]
844
8450.2602 (Bug fix release in 0.26 series) Thu Nov 4 11:19:29 CST 2004
846
847 - The two bug fixes in 0.2601 gnashed against each other incorrectly,
848 resulting in a Win32 bug in split_like_shell(). Fixed. [Spotted
849 by Steve Hay & Randy Sims]
850
851 - Removed a couple of 'use warnings' statements from the code - they
852 were causing compile failures on 5.005_04, where warnings.pm isn't
853 available. [Blair Zajac]
854
8550.2601 (Bug fix release in 0.26 series) Wed Nov 3 20:09:27 CST 2004
856
857 - Fixed some backslash problems with split_like_shell() on
858 Win32. [Steve Hay]
859
860 - Fixed a bug in split_like_shell() in which leading whitespace was
861 creating an empty word, manifesting as something like "gcc - no
862 such file or directory" during tests. [Spotted by Warren L. Dodge]
863
8640.26 Sat Oct 9 17:51:01 CDT 2004
865
866 - Removed some language from the Module::Build::Compat documentation
867 that encouraged people to include a Build.PL without a Makefile.PL.
868 Also changed "a replacement for MakeMaker" to "an alternative to
869 MakeMaker" in the main documentation, which is basically what I
870 meant all along (i.e. a replacement for MakeMaker in your
871 particular build process - MakeMaker is never going to be fully
872 replaced in the perl world at large, of course), but some people
873 got the impression I was a little more truculent toward MakeMaker
874 than I really am.
875
876 - Added the formal concepts of "features" and "config data" for
877 distributions. This allows the module author to define a certain
878 set of features that the user can switch on and off (usually
879 according to whether they have the proper prerequisites for them),
880 and to save build-time configuration information in a standardized
881 format. See the main documentation of Module::Build for more
882 details. (Note that the name of this system was called
883 "BuildConfig" for a while in beta, but now it's called
884 "ConfigData".)
885
886 - Added an 'auto_features' capability, which simplifies the process
887 of defining features that depend on a set of prerequisites.
888
889 - Added the 'get_options' parameter, which lets module authors
890 declare certain command-line arguments their Build.PL can accept
891 [David Wheeler]
892
893 - Changed the split_like_shell() method to use the shellwords()
894 function from Text::ParseWords (a core module since 5.0), which
895 does a much better job than the split() we were using.
896
897 - Added a 'testpod' action, which checks the syntactic validity of
898 all POD files in the distribution using Test::Pod. This eliminates
899 the need for doing so in a regression test. [Initial patch by Mark
900 Stosberg]
901
902 - Added a process_files_by_extension() method, which generalizes the
903 kind of processing (essentially just copying) that happens for .pm
904 and .pod files, and makes it available to other user-defined types
905 of files. See the new cookbook entry.
906
907 - Improved compatibility with version.pm when authors are using
908 version objects as their $VERSION variables. Now
909 version_from_file() can deal with these objects. Currently we
910 stringify them right away, but perhaps in the future we will
911 preserve them as objects for a while.
912
913 - During 'distdir' and 'distmeta' actions, die a bit more gracefully
914 if there's no MANIFEST (i.e. explicitly say that a MANIFEST is
915 required). [Spotted by Adrian Howard]
916
917 - Eliminated a recursive dependency between creating the MANIFEST
918 file and creating the META.yml file. [Spotted by Dave Rolsky]
919
920 - On Win32, where a single directory might be known variously as
921 "Module-Build-0.25_03" or "MODULE~1.25_", we now use
922 Win32::GetShortPathName($cwd) to verify that the 'Build' script is
923 being run from the correct directory, rather than just a string
924 comparison.
925
926 - The add_to_cleanup() method will now accept glob()-style patterns
927 in addition to explicit filenames. Also documented the fact that
928 they can be specified in either Unix-style or native-style
929 notation.
930
931 - Passing a PREFIX value to a pass-through Makefile 'make install'
932 now has the same effect as passing it to 'perl Makefile.PL' (it
933 dies with a helpful message).
934
935 - Added the 'testcover' action, which runs a test suite using
936 Devel::Cover. [Dave Rolsky]
937
938 - Added the 'lib' and 'arch' installation directories to the search
939 path for the 'diff' action, since they won't necessarily (though
940 they usually will) be in @INC at installation time. [Suggested by
941 Kevin Baker]
942
943 - The "=head3" POD directive isn't supported in older podlators
944 (particularly Pod::Man), so we don't use it anymore.
945
946 - Fixed a typo & improved the docs in the SUBCLASSING section. [Ron
947 Savage]
948
949 - Added the '.tmp' suffix to the default MANIFEST.SKIP file, which
950 should avoid adding things like pod2htmi.tmp to the MANIFEST [Ron
951 Savage]
952
953 - Backup files from Emacs, containing the string '.#' in their names,
954 should no longer find their way into the blib/ directory (and from
955 there into installation directories).
956
957 - Worked around an unpleasant interaction between version.pm and the
958 version-checking code that makes sure Module::Build's version
959 hasn't changed during the lifetime of the 'Build' script. [Reported
960 by Trevor Schellhorn]
961
962 - Fixed a problem in htmlify_pods() that would produce test failures
963 on Cygwin (and probably elsewhere). [Yitzchak Scott-Thoennes]
964
965 - Fixed a test failure on Cygwin (and probably elsewhere) in
966 t/compat.t, resulting from empty environment variables being set to
967 the empty string (as opposed to simply being unset) by their mere
968 presence in the "EXPORT:" list.
969
970 - Fixed a fatal error that occurred when the author specified
971 'dist_author' manually in their Build.PL script. [Spotted by Ron
972 Savage]
973
974 - The 'provides' section of the META.yml file wasn't being built
975 properly on Win32, because of a mismatch between URL-format and
976 native-format pathnames. Fixed. [Reported by Robert Rothenberg]
977
978 - The progress message "lib/Foo.xs -> lib/Foo.c" was previously being
979 output even when the Foo.c file wasn't being rebuilt. It's now
980 fixed.
981
982 - Fixed a couple of places in Compat.pm where it could have forgotten
983 which perl interpreter it had been run with ($^X isn't very
984 trustworthy).
985
986 - On some systems, the way we updated the timestamp on the
987 "lib/Foo.bs" file (one of the output files for XS-based modules)
988 was failing. It's been replaced by a simple call to utime().
989
990 - Fixed a problem in t/compat.t that prevented it from being run
991 individually using 'make test TEST_FILES=t/compat.t'. The problem
992 was that a couple environment variables (TEST_FILES, MAKEFLAGS)
993 were being passed through to subprocesses, and confused them.
994
995 - Fixed an important typo in the documentation for the 'install_base'
996 parameter ('libdoc' and 'bindoc' were switched). [Ray Zimmerman]
997
998 - The pass-through Makefiles (type 'small' or 'passthrough') now
999 support the TEST_FILES parameter to 'make test'.
1000
1001 - Fixed a fatal error that would occur on perl 5.005 when building
1002 HTML documentation, because its version of Pod::Html was old and
1003 didn't like some of the parameters we fed it. [Spotted by Blair
1004 Zajac]
1005
1006 - The final line of the generated pass-through Makefile was missing
1007 its trailing newline, which is now fixed. [Chip Salzenberg]
1008
1009 - We now depend on YAML version at least 0.35 and at most version
1010 0.49, so that we don't pick up a new (and backward-incompatible) beta
1011 version from CPAN.
1012
1013 - Squashed a warning in t/basic.t about '"Foo::Module::VERSION" used
1014 only once', and one in PPMMaker about $^V being undefined. [Blair
1015 Zajac]
1016
1017 - Added a couple temporary output files from HTML documentation
1018 generation to the cleanup list. [Toby Ovod-Everett]
1019
1020 - The PodParser module will now only extract paragraphs in the
1021 'AUTHOR' section of the pod if they contain an '@' character. This
1022 tends to do a better job, heuristically speaking, of returning
1023 relevant stuff.
1024
1025 - Added regression tests and a helper method ( add_build_elements() )
1026 for adding new elements to the build process. Also some
1027 documentation.
1028
1029 - Wrote a recipe in the Cookbook for adding new elements to the build
1030 process, and a recipe for changing the order in which the steps in
1031 the build process will occur.
1032
10330.25 Sun Apr 25 11:12:36 CDT 2004
1034
1035 - During the 'distdir' action, if no MANIFEST.SKIP file exists, we
1036 will now create a reasonable default one. [Randy Sims]
1037
1038 - In Makefile compatibility mode, some arguments (like UNINST,
1039 TEST_VERBOSE, etc.) given to 'make' are now recognized and passed
1040 through to Module::Build. [Randy Sims]
1041
1042 - The regression tests now make sure that several pass-through
1043 Makefile.PL parameters are dealt with correctly.
1044
1045 - Added support for the 'LIB' parameter to passthrough
1046 Makefile.PLs. [Spotted by Jesse Erlbaum]
1047
1048 - Passing a 'PREFIX' parameter to a passthrough Makefile.PL was
1049 supposed to make it die with a helpful error message, but instead
1050 it just ignored it and blindly tried to install to the wrong place.
1051 This is now fixed. [Spotted by Jesse Erlbaum]
1052
1053 - Added an extra_compiler_flags() accessor method.
1054
1055 - If the 'recursive_test_files' option was turned on, the test files
1056 weren't sorted, but returned in an apparently random order. Now
1057 they're sorted. [Martyn Peck]
1058
1059 - Documented the 'tar' and 'gzip' parameters to the 'dist' and
1060 'ppmdist' actions.
1061
1062 - The generation of HTML documentation now works (it was accidentally
1063 partially implemented with an itchy patch-application finger in
1064 0.24). [Randy Kobes]
1065
1066 - Fixed a fatal bug when building META.yml with YAML.pm and
1067 'dynamic_config' is set. [Reported by Jaap Karssenberg]
1068
1069 - Fixed some incorrect error messages that occurred when
1070 compiling/linking C sources went awry.
1071
1072 - If the author uses a custom builder subclass, that subclass will
1073 now be loaded correctly in the passthrough Makefile.PL if the
1074 author uses the 'small' or 'passthrough' Makefile.PL options in
1075 Module::Build::Compat. [Martyn Peck and Jaap Karssenberg]
1076
1077 - If the author uses a custom builder subclass created dynamically
1078 through the subclass() method, passthrough Makefile.PLs (of type
1079 'passthrough' or 'small') didn't work properly, because the custom
1080 builder module wouldn't be loaded at the right time. This has been
1081 fixed. [Reported by Toby Ovod-Everett]
1082
1083 - In M::B-generated 'traditional' Makefile.PLs, the entries in
1084 'PREREQ_PM' are now sorted ASCIIbetically rather than randomly.
1085
1086 - The install_types() method will now return any additional types
1087 given as 'install_path' arguments, as well as all elements of the
1088 current 'install_sets' entry. This makes it easier to add new
1089 types of installable objects to the mix.
1090
1091 - As a consequence of the previous change, there is no longer any
1092 need to have an explicit 'install_types' data member, so it has
1093 been removed.
1094
1095 - In the second example code for the Module::Build->subclass()
1096 method, the Module::Build module needed to be loaded before calling
1097 its methods. [John Peacock]
1098
1099 - Fixed minor error in the POD structure of Module::Build and
1100 Module::Build::Platform::VMS docs.
1101
1102
11030.24 Wed Feb 25 15:57:00 CST 2004
1104
1105 - Fixed a problem with incude_dirs not being propagated to the 'ccs'
1106 file when compiling XS files on Win32. [Randy Sims and Steve Hay]
1107
1108 - In 0.23, Module::Build::Compat->fake_makefile() started choking
1109 when no 'build_class' parameter was supplied in the Makefile.PL.
1110 Since these Makefile.PLs still exist on CPAN, we now default
1111 'build_class' to 'Module::Build', which was the old 0.22 behavior
1112 anyway. [Reported by Martin Titz and Jeremy Seitz]
1113
1114 - Added documentation for the 'include_dirs' parameter to
1115 new(). [Steve Hay]
1116
1117 - Changed the no-op command on Win32 from 'rem' to 'rem>nul' inside
1118 pass-through Makefiles. [Randy Sims]
1119
1120 - The 'autosplit' parameter now accepts an array reference if
1121 multiple files should be split. [Jaap Karssenberg]
1122
1123 - find_perl_interpreter() will now use $^X (if absolute), $ENV{PATH}
1124 (if $^X isn't absolute), and $Config{perlpath}, in that order.
1125 Also, we now make darn sure the result is the same version of perl,
1126 by checking Config::myconfig() for a match against the current
1127 perl. [Reported by Edward Sabol]
1128
1129 - Fixed a fatal error on Win32 (and any other platform that doesn't
1130 define an installation location for Unix-style man pages) during
1131 installation.
1132
11330.23 Sun Feb 8 22:01:18 CST 2004
1134
1135 - Fixed a compatibility problem in pass-through Makefiles (created by
1136 Module::Build::Compat). Some 'make' utilities (for example, BSD
1137 make) didn't like a '@' by itself on a line, so we stole some
1138 'NOOP' code from MakeMaker to fix it. [Reported by Mathieu Arnold]
1139
1140 - Added a 'ppm_dist' action, which just makes the PPD file and then
1141 makes a tarball out of the blib/ directory. [Randy Sims]
1142
1143 - The @INC of the parent process is now propagated to child processes
1144 when processing *.PL files. [Reported by Jaap Karssenberg]
1145
1146 - We now only attempt to fix the shebang line on a script if the
1147 shebang line matches the regex /perl/i . This fixes some instances
1148 where people put shell scripts in their distributions. [Jaap
1149 Karssenberg]
1150
1151 - We no longer generate a 'requires', 'recommends', 'conflicts',
1152 etc. entry in the META.yml file if there's no data to go in it.
1153
1154 - Added a documentation reference to Michael Schwern's wiki for tips
1155 on conversion from MakeMaker to M::B. [Randy Sims]
1156
1157 - If there are script_files, we now add EXE_FILES to the
1158 'traditional' Makefile.PL generated by M::B::Compat. [Suggested by
1159 Yuval Kogman]
1160
1161 - Documented the 'test_files' parameter to new(). [Reported by Tony
1162 Bowden]
1163
1164 - Fixed a problem in "Build help <action>", which didn't find the
1165 correct help chunk if <action> was the final element in a POD
1166 list. [Jaap Karssenberg]
1167
1168 - Fixed a problem in the get_action_docs() method which gave
1169 incorrect results if the method was called more than once in the
1170 same program.
1171
1172 - Fixed a problem in which actions defined by user subclasses
1173 wouldn't be available via the pass-through Makefiles created by
1174 Module::Build::Compat. [Reported by Jaap Karssenberg]
1175
1176 - We now use Data::Dumper instead of our own ad-hoc serialization
1177 routines to create the 'traditional' Makefile.PL
1178 arguments. [Suggested by Yuval Kojman]
1179
11800.22 Sat Jan 10 22:05:39 CST 2004
1181
1182 - On Unixish platforms, the syntax "FOO=BAR /bin/baz arg arg" now
1183 works when present in $Config{ld}. This solves a problem on Mac OS
1184 X 10.3. [Reported by Adam Foxson]
1185
1186 - The have_c_compiler() now also tests whether the linker seems to
1187 work too.
1188
1189 - Fixed a problem with creating the distribution tarball in which
1190 permissions would usually be all read-only. We now use our own
1191 file-copying routines rather than those in ExtUtils::Manifest,
1192 because those do some annoying extra permissions-setting stuff for
1193 no apparent reason. It makes me happy that this was a very very
1194 easy patch to make. [Reported by Thomas Klausner]
1195
1196 - The compile_c() method now includes $Config{cccdlflags} in its
1197 command invocation. It's usually empty, but not always, so we
1198 didn't notice for a while. [Richard Clamp]
1199
1200 - On some platforms it's common to have a $Config{make} defined, but
1201 no 'make' utility actually available. We now detect this and skip
1202 some 'make' compatibility tests. [Randy Sims]
1203
1204 - Fixed a spurious testing failure on non-Unix platforms that
1205 happened because we accidentally call localize_file_path() on empty
1206 strings in the test suite. [Spotted by Randy Sims on Windows]
1207
1208 - Made the 'name', 'abstract', 'author', and 'version' properties
1209 required when building a PPD file. [Spotted by Randy Sims, Dave
1210 Rolsky, & Glenn Linderman]
1211
1212 - When building a 'traditional' Makefile.PL with
1213 Module::Build::Compat, we now use 'VERSION_FROM' when possible,
1214 rather than always using 'VERSION'. This way the Makefile.PL
1215 doesn't have to get modified every release.
1216
1217 - Made some fixups to the 'PPM' info-file, improving compatibility
1218 with ActiveState's PPM tools. [Randy Sims, Glenn Linderman]
1219
1220 - The 'dist_author' property can now accept multiple authors, see the
1221 docs for more info. [Randy Sims]
1222
1223 - If the user doesn't have YAML.pm installed during ACTION_dist, we
1224 now create a minimal YAML.pm anyway, without any dependency
1225 information.
1226
1227 - The 'distribution_type' field is no longer created in META.yml
1228 files, in accordance with the finding made at the London CLPAN
1229 meeting that it's essentially meaningless and ill-defined.
1230
1231 - The 'dist' action now accepts an optional 'tar' parameter to use a
1232 system utility for building the tarball, and a 'gzip' parameter for
1233 compressing it. If these are used, Archive::Tar won't be invoked.
1234 This was added because Archive::Tar is producing some very
1235 non-cross-platform tarballs that many tar utilities can't handle.
1236
1237 - During testing, if YAML.pm isn't installed, then we won't try
1238 making a tarball either, since this would invoke YAML to create the
1239 META.yml file.
1240
1241 - Fixed a problem with chmod() being called incorrectly on MacOS
1242 (i.e. MacPerl, not Mac OS X). [Spotted by Paul Sanford Toney]
1243
1244 - Fixed a problem with the --config flag not being treated properly
1245 (essentially ignored) on the command line for 'perl Build.PL' or
1246 'Build <action>'. [Spotted by Jakub Bogusz]
1247
1248 - Added a new config() method to get at the Build object's notion of
1249 the %Config hash.
1250
1251 - Test::Harness is starting to contend for the Most Crotchety Module
1252 Award. Work around a few of its nits when setting harness
1253 switches. [Spotted by Diab Jerius]
1254
1255 - Now the Build script will die() if we're run from the wrong
1256 directory, rather than trying to chdir() to what it thinks is the
1257 right directory and do its work there. See
1258 https://rt.cpan.org/Ticket/Display.html?id=4039 . [Chris Dolan]
1259
1260 - Changed the manpage separator on OS/2 to '.'. [Ilya Zakharevich]
1261
1262 - On OS/2, disable C compilation, since apparently it isn't working
1263 there. [Reported by Ilya Zakharevich]
1264
1265 - Inserted a comment into auto-generated Makefile.PLs saying it was
1266 auto-generated. [Randy Sims]
1267
1268 - Fixed some annoying behavior in generated passthrough Makefile.PLs
1269 when the user chose not to install Module::Build, or if
1270 installation failed. [Reported by Ilya Zakharevich and Richard
1271 Clamp]
1272
1273 - Moved the documentation for 'codebase' to the section where it's
1274 relevant. [Randy Sims, Glenn Linderman]
1275
1276 - Fixed a have_c_compiler() failure on some platforms, we now define
1277 a boot_compilet() function (since we're compiling a library, not an
1278 executable). [Randy Sims]
1279
1280 - Added a recipe to the Module::Build::Cookbook describing how to
1281 maintain compatibility with older versions of CPAN.pm [Jim Cromie]
1282
1283 - Removed caveat about "looking for alternatives" in how hashes are
1284 specified on the command line, since an alternative has been found.
1285
1286 - Previously most warnings about optional prerequisites looked like
1287 they were actually error messages about required prerequisites.
1288 This has been corrected. [Reported again by Sagar Shah]
1289
1290 - Added support for building XS (and C in general) stuff on AIX.
1291 This was done by a small reorganization of prelink_c() method from
1292 Windows.pm to Build.pm, and it is only invoked for the platforms
1293 that need it invoked. AIX also massages some very naughty bits
1294 (MakeMaker macro variables) in $Config{lddlflags} that should never
1295 have been put there, but alas, they're there, so we find & resolve
1296 them.
1297
1298 - Added OS/2 ($^O = 'os2') to the list of Unix-like platforms. This
1299 basically means that most platform-specific operations will be done
1300 in a Unix-like manner.
1301
1302 - Pass-through Makefiles will now die() when they're given a PREFIX
1303 parameter, and suggest using 'destdir' or 'install_base' instead.
1304 Previously they just ignored the parameter and tried to install to
1305 the default location, which is clearly not what the user wanted.
1306
1307 - Updated my email address in the documentation to a more recent
1308 variant.
1309
1310 - Add NetBSD to the list of Unix-like systems. [Adrian Bunk]
1311
1312 - Add SVR5 to the list of Unix-like systems. [Rafael Garcia-Suarez]
1313
1314 - We now use Pod::Parser to find the ABSTRACT and AUTHOR when it's
1315 available on the system. [initial patch by Randy Sims]
1316
1317 - Fixed a little scalar/list buglet in a documentation example.
1318
13190.21 Wed Oct 15 20:47:05 CDT 2003
1320
1321 - Added a have_c_compiler() method.
1322
1323 - Added documentation for the requires(), recommends(),
1324 build_requires(), and conflicts() methods.
1325
1326 - On Unix platforms, we now create the "Build" script with a #! line
1327 matching the perl interpreter that was used to invoke the Build.PL
1328 script, rather than whatever is in $Config{startperl}. This avoids
1329 a potential warning about the interpreters not matching. [Spotted
1330 by Ken Y. Clark]
1331
1332 - The Unix version now uses the safer multi-argument form of system()
1333 when building distribution tarballs.
1334
1335 - Added a regression test for the 'dist' action to the t/runthrough.t
1336 test.
1337
1338 - Fixed a problem with File::Spec usage when creating the names of
1339 'libdoc' manual pages - the code wasn't dealing with the volume or
1340 file portions correctly on certain platforms.
1341
1342 - When creating the names of the 'libdoc' manual pages, we no longer
1343 assume that pods are under the hard-coded paths 'blib/lib' or
1344 'blib/arch'.
1345
1346 - Fixed a crashing bug that could sometimes occur when the
1347 distribution contained no 'lib' directory. [Chris Dolan]
1348
1349 - Fixed a crashing bug that happened when the user had .PL files in
1350 the lib/ directory and didn't explicitly name them in a hash
1351 reference to the new() constructor. [Chris Reinhardt, bug #4036]
1352
1353 - .PL files are now passed the names of their target file(s) on the
1354 command line when they run.
1355
1356 - When YAML.pm wasn't installed, t/runthrough.t wasn't properly
1357 skipping some tests that required YAML. This is now fixed.
1358 [Stephen J. Smith]
1359
1360 - Added documentation for the dist_version() and dist_name()
1361 methods. [Spotted by Johan Vromans]
1362
1363 - Existing values in $ENV{HARNESS_PERL_SWITCHES} are now respected
1364 and not squashed when we run the 'test' action. [Paul Johnson]
1365
1366 - On cygwin, the separator string for manual page names has been set
1367 to '.'. Previously it was '::', inherited from Unix. [Yitzchak
1368 Scott-Thoennes]
1369
1370 - Avoid a warning when Build.PL is run (i.e. when the new() method is
1371 called) and no MANIFEST file exists. [Michael Schwern and Kevin
1372 Ruscoe]
1373
1374 - Added documentation for the 'code' and 'docs' actions. [Steve
1375 Purkis and Mark Stosberg]
1376
1377 - The internal method compile_support_files() has been renamed to
1378 process_support_files() in order to make it consistent with other
1379 processing methods. Note that it was never documented using the
1380 old name. It's still not documented, actually. Maybe later.
1381
1382 - Skip the 'write' pseudo-entry in the 'diff' action's installation
1383 map. [Chris Dolan]
1384
1385 - Fixed a bug in which notes() set in the Build.PL before
1386 create_build_script() was called would get lost unless more notes()
1387 were also set afterwards. [Spotted by Dave Rolsky]
1388
1389 - The process of building elements of the distribution is now driven
1390 by a list of build elements, paving the way for letting people add
1391 their own types of build elements in future versions of
1392 Module::Build (or in the current version with some difficulty).
1393
1394 - Fixed some linking errors on Cygwin. [Randy Sims, Terrence Brannon]
1395
1396 - Fixed a line-ending problem with detecting the dist_abstract
1397 properly on Cygwin. [Randy Sims]
1398
1399 - Fixed a problem with signatures that occurred if 'distsign' was
1400 called before 'distdir' - the signature would be generated twice.
1401
1402 - Added a 'create_readme' parameter to new(), which will use
1403 Pod::Text to generate a README from the main (dist_version_from)
1404 module file during the 'distdir' action.
1405
1406 - We now refuse to run the 'Build' script if it was created using a
1407 different version of Module::Build. This has caused a couple of
1408 nasty bugs in the past, I don't want to know what it would cause in
1409 the future.
1410
1411 - Documentation for do_system() has been added. [Dave Rolsky]
1412
1413 - run_perl_script() is now available as a class method, though it
1414 will need to (re-)find the perl interpreter in this case.
1415
1416 - Added a new_from_context() method that authors of automated tools
1417 like CPANPLUS and CPAN can use instead of running all tasks as
1418 sub-processes. We also use it in the regression tests for
1419 Module::Build itself. ** Note that this method is currently
1420 undocumented because its name may change in the future. **
1421
1422 - When signing distributions with Module::Signature, we now
1423 automatically add the SIGNATURE file to the MANIFEST, avoiding an
1424 unpleasant chicken/egg problem for the module author.
1425 [unpleasantness spotted by sungo]
1426
1427 - In Module::Build::Compat, added support for the 'verbose' parameter
1428 to Makefile.PL [spotted by Soren Andersen, fixed by Michael
1429 Schwern]
1430
1431 - The Module::Build distribution now has a cryptographic 'SIGNATURE'
1432 file created by Module::Signature.
1433
1434 - Added proper documentation for the subclass() method. [spotted by
1435 Jonathan Steinert]
1436
1437 - Worked around a Config.pm bug in Red Hat 9 which prevented man
1438 pages from being installed in the correct places. [spotted by Ville
1439 Skytta]
1440
1441 - Fixed a Module::Build::Compat bug in which setting INSTALLDIRS
1442 caused a crash. [spotted by Ilya Martynov]
1443
14440.20 Tue Aug 26 14:34:07 CDT 2003
1445
1446 - Separated the 'build' action into two separate actions, 'code' and
1447 'docs'. This is similar to MakeMaker's separation of the 'all'
1448 target into 'pure_all' and 'manifypods'. This fixes a permissions
1449 hassle in which doing 'sudo Build install' would often create local
1450 doc files that needed superuser permissions to delete.
1451
1452 - Enhanced the 'help' action - 'Build help foo' will now show the POD
1453 documentation for the 'foo' action.
1454
1455 - Added a notes() feature, which helps share data transparently
1456 between the Build.PL and t/*.t scripts.
1457
1458 - The installation process will now create man(1) and man(3) pages
1459 from POD in modules & scripts, and install them. We don't build
1460 man pages when there's nowhere to install them, such as on some
1461 Win32 or most Mac systems. [large patch by Steve Purkis, 5.005 fix
1462 by Mathieu Arnold]
1463
1464 - The 'distdir' action now copies files to the distribution
1465 directory, rather than making them hard links to the original
1466 files. This allows authors to do last-minute alterations of the
1467 files without affecting the originals. [Dave Rolsky]
1468
1469 - If the author uses XS files in nonstandard locations, the copied
1470 versions of those files will now be cleaned up properly.
1471
1472 - In invoking the 'test' action or invoking 'xsubpp', we now use the
1473 same perl executable as we use everywhere else, rather than blindly
1474 using $^X or $Config{perlpath} (neither of which are very
1475 reliable).
1476
1477 - Fixed a problem with the 'install_path' parameter given to
1478 'Build.PL' being lost in subsequent actions. [Reported by Mathieu
1479 Arnold]
1480
1481 - Fixed yet another bug with installation directories, in which the
1482 'install_base' parameter wasn't being respected on the command
1483 line. [Spotted by Jonathan Swartz]
1484
1485 - Changed the way the depends_on() method works inside action
1486 subroutines - now each action will only run once per dispatch()
1487 invocation (similar to how perl's require() function works). This
1488 helps avoid some difficult problems with dependency loops.
1489
1490 - Changed the documentation for the 'autosplit' parameter to give
1491 reasons why it may not be a good idea to use, but no longer
1492 threaten to remove it. [Suggested by Martyn J. Pearce]
1493
1494 - Improved the formatting of the 'traditional' Makefile.PL generated
1495 by Module::Build::Compat->create_makefile_pl. [Michael Schwern]
1496
1497 - The 'traditional' Makefile.PL will now use the 'module_name'
1498 parameter (as NAME) if it's available, otherwise it will continue
1499 to use the 'dist_name' (as DISTNAME). [Michael Schwern]
1500
1501 - Created read/write accessor methods for all our 'properties'.
1502 [Michael Schwern]
1503
1504 - The 'test_files' parameter can now be specified using glob() syntax
1505 (i.e. 't/*.t'), and the corresponding test_files() method is now a
1506 read/write accessor.
1507
1508 - The location of the 'blib' directory is now a property of the Build
1509 object - nobody is likely to notice this change, with any luck, but
1510 it makes the design and code cleaner.
1511
1512 - The 'disttest' and 'distsign' methods now chdir() back to the
1513 directory where they started, rather than to the base_dir of the
1514 build.
1515
1516 - Improved comparisons of version strings containing underscore
1517 characters (indicating "beta" status). [Steve Purkis]
1518
1519 - Added documentation for the 'dist_author', 'dist_abstract', and
1520 'codebase' parameters to new(), and for the 'ppd' action. [Dave
1521 Rolsky]
1522
1523 - Added documentation for the up_to_date() and contains_pod()
1524 methods. [Dave Rolsky]
1525
1526 - 'traditional' pass-through Makefile.PLs will now contain an
1527 INSTALLDIRS parameter matching the Build.PL's 'installdirs'
1528 setting.
1529
1530 - version_from_file() now ignores $VERSION variables that are defined
1531 in POD or comments. It can still be tricked by $VERSIONs in string
1532 literals, though. [Steve Purkis]
1533
1534 - The code to find packages in module files now uses Steve's scanning
1535 method (above) to skip package-declaration-lookalikes in POD or
1536 comments.
1537
1538 - The 'disttest' action will now propagate its @INC settings to its
1539 subprocesses.
1540
15410.19 Wed Jul 9 22:34:02 CDT 2003
1542
1543 - Added support for the 'install_path' parameter, which allows custom
1544 specification of where things should be installed. This is a major
1545 improvement to Module::Build's functionality.
1546
1547 - Added the 'install_base' parameter. Provides an easy way to
1548 install to local or alternative directory trees.
1549
1550 - We now install scripts by default to $Config{installsitebin}
1551 instead of $Config{installscript}. Neither is a great choice, but
1552 the former is likely to be [analogous to] /usr/local/bin, and the
1553 latter is likely to be [something like] /usr/bin . If/when there's
1554 a $Config{installsitescript}, we'll start using that automatically.
1555
1556 - Fixed a problem on Win32 in which C and XS files wouldn't be
1557 compiled properly, and the user would see an error about 'Can't
1558 locate object method "format_compiler_cmd"'.
1559 (http://rt.cpan.org/Ticket/Display.html?id=2391)
1560
1561 - We now use the correct perl interpreter (via
1562 Module::Build->find_perl_interpreter) in pass-through makefiles.
1563
1564 - The t/compat.t test now uses $Config{make} instead of just 'make'
1565 to test makefile compatibility. This fixes some failures on Win32.
1566 We also skip this test entirely if no make utility is available.
1567
1568 - Alternative distribution layouts are now supported via the
1569 'pm_files', 'pod_files', 'xs_files', 'PL_files', and 'script_files'
1570 parameters to new(). This should help people transition from
1571 MakeMaker, and might even help us write an automatic transition
1572 tool.
1573
1574 - Added tests to t/runthrough.t that check to see installation is
1575 happening correctly.
1576
1577 - Added experimental code to build a .ppd file, in support of
1578 ActiveState's "Perl Package Manager". [original patch by Dave
1579 Rolsky]
1580
1581 - For authors who use Module::Signature to sign their distributions,
1582 we now create the SIGNATURE file right in the distribution
1583 directory, rather than creating it in the top-level directory and
1584 copying it into place. This solves problems related to having
1585 files get out of date with respect to their signatures.
1586
1587 - We now don't depend on Module::Info to scan for packages during the
1588 'dist' action anymore, because it's way too aggressive about
1589 loading other modules that you may not want loaded. We now just
1590 (ick, yuck) scan the .pm files with a regular expression to find
1591 "package Foo::Bar;" statements.
1592
1593 - Silenced some annoying copyright/logo output from Microsoft 'nmake'
1594 during Makefile compatibility testing. [Randy W. Sims]
1595
1596 - Command-line arguments may now either be specified using the syntax
1597 '--foo foovalue' as well as the traditional syntax 'foo=foovalue'.
1598 The former is often more convenient for shell tab-completion when
1599 the value is a filename (as in 'Build test --test_files t/basic.t').
1600
1601 - Command-line arguments may now include non-named parameters, which
1602 make some actions more natural. For instance, the 'diff' action
1603 may now be invoked as 'Build diff -u' rather than as
1604 'Build diff flags=-u'.
1605
1606 - Pass-through Makefile.PLs now convert unknown Makefile.PL
1607 parameters to lower-case and hand them to Build.PL, rather than
1608 ignoring them. This means we only have to account for the
1609 differences in the interface, not the entire interface, in
1610 translating parameters.
1611
1612 - We now issue a warning & don't proceed if asked to make a distdir
1613 and there's no MANIFEST or it's empty.
1614
1615 - Moved INSTALL to INSTALL.txt to increase compatibility with various
1616 odd versions of 'make' during 'make install' on case-insensitive
1617 filesystems (like nmake on Win32, often). Only affects the
1618 Makefile compatibility layer. [reported by Andrew Savige]
1619
1620 - Module::Build->known_actions() now works as a class method.
1621
1622 - Pass-through makefiles now list each action individually rather
1623 than using a ".DEFAULT" catch-all. This improves compatibility
1624 with 'nmake' on Win32, and probably some other less common 'make'
1625 dialects. [Andrew Savige]
1626
1627 - We're now more aggressive about testing the pass-through makefiles,
1628 e.g. making sure they can run 'all' and 'test' targets, and making
1629 sure the Makefile itself actually exists.
1630
1631 - Fixed a problem with check_installed_status() when installed
1632 version contains non-numeric characters like underscores.
1633
1634 - Fixed a problem with a bareword 'File::Spec' in one of the test
1635 scripts that caused it not to compile under 5.8.0 (but is fine
1636 under 5.6).
1637
1638 - Fixed a problem with the 'destdir' installation parameter on
1639 platforms that have volume identifiers in path names (like "C:" on
1640 Win32). The identifier is now stripped from installation
1641 directories before prepending the destdir path. The destdir path
1642 may still have a volume identifier on it.
1643
1644 - Added an 'add_to_cleanup' parameter to new() that calls
1645 add_to_cleanup() immediately for the given files.
1646
1647 - The distribution directory (e.g. Sample-Module-0.13/ ) will now be
1648 deleted during the 'clean' or 'realclean' actions.
1649
1650 - During testing of modules, blib/lib and blib/arch are now added as
1651 absolute paths, not relative. This helps tests that load the
1652 modules at runtime and may change the current working directory
1653 (like Module::Build itself does during testing).
1654
1655 - The $Config{cc} entry on some people's systems is something like
1656 'ccache gcc', so we now split that string using split_like_shell().
1657 [Richard Clamp]
1658
1659 - Added documentation for 'extra_linker_flags' parameter, and added a
1660 corresponding 'extra_compiler_flags' parameter. [original patch by
1661 Richard Clamp]