3 * Changes in version 2.3.1
5 *** Remove dependencies on Hash::Merge and Clone::Choose
7 stow 2.3.0 added external runtime dependencies on Hash::Merge and
8 Clone::Choose. Historically stow hasn't had runtime dependencies
9 other than Perl itself, which is a useful property if you're
10 managing the installation of Perl using stow; the bootstrapping
11 instructions in stow's manual would need updating to describe how
12 to install these two modules (and any dependencies they have now
13 or in the future) as well.
15 However, Hash::Merge is much more general than stow actually
16 needs, so replace the merge() call with a few lines of equivalent
17 code -- this avoids the external dependencies, and is clearer than
20 Many thanks to Adam Sampson for this patch!
22 https://lists.gnu.org/archive/html/bug-stow/2019-06/msg00001.html
24 *** Fix an issue with the test suite
26 t/cli.t was not testing with the right Perl executable, as
29 https://rt.cpan.org/Ticket/Display.html?id=129944
31 Thanks to Slaven Rezic for spotting this and reporting it!
33 *** Various maintainer tweaks
35 Improved the release process and its documentation in various
38 * Changes in version 2.3.0
40 *** New features / changes in behaviour
42 ***** New --dotfiles option
44 Enable special handling for "dotfiles" (files or folders whose name
45 begins with a period) in the package directory. If this option is
46 enabled, Stow will add a preprocessing step for each file or folder
47 whose name begins with "dot-", and replace the "dot-" prefix in the
48 name by a period ("."). This is useful when Stow is used to manage
49 collections of dotfiles, to avoid having a package directory full
52 For example, suppose we have a package containing two files,
53 stow/dot-bashrc and stow/dot-emacs.d/init.el. With this option,
54 Stow will create symlinks from .bashrc to stow/dot-bashrc and from
55 .emacs.d/init.el to stow/dot-emacs.d/init.el. Any other files,
56 whose name does not begin with "dot-", will be processed as usual.
58 Thanks to Joris Vankerschaver for this feature!
60 ***** Shell-like expansion in .stowrc files
62 For options within .stowrc files which describe file paths, "~" can
63 be included to expand to the current value of $HOME, and
64 environment variables can be referenced e.g. via "$FOO" or
65 "${FOO}". To prevent expansion, escape with a backslash.
67 Thanks a lot to Charles LeDoux for his diligent work on this
70 ***** chkstow now honours the $STOW_DIR environment variable
72 The stow script already honoured the $STOW_DIR environment
73 variable. Now chkstow does too, for consistency.
75 ***** Stow now has a non-zero exit code if option parsing failed
77 Thanks to Brice Waegeneire for reporting this.
79 *** License upgraded from GPL version 2 to version 3
81 Copyright and license notices were also added to the headers of
82 various files in accordance with GNU guidelines.
84 *** Documentation fixes and enhancements
86 ***** Remove dependency on unmaintained texi2html
88 The dependency on the ancient and unmaintained texi2html for
89 building the single-page HTML version of the manual has been
90 removed, since it was difficult to get running on most distros
93 Instead use the more modern "makeinfo --html --no-split" approach.
94 Rules have been kept for posterity in the Makefile for the old
95 approach and also an "in-between" approach based on texi2any;
96 however these are not triggered by default. Run
98 make manual-single-html-all
100 to compare the three versions.
102 ***** Fixed naming of man page
104 The title of the generated man page was previously ending up as
107 IO::FILE=IO(0XA719C0)(1)
109 Thanks to @Corin-EU on GitHub highlighting this and proposing a
112 ***** Convert README and INSTALL to Markdown
114 They are now named README.md and INSTALL.md, and render nicely
115 when viewed via git hosting services which support Markdown.
117 ***** Update documentation to reflect more modern use cases
119 The README.md, stow(8) man page, and info manual have been updated
120 to de-emphasise the package management use, since these days almost
121 everyone prefers to use modern package managers such as rpm / dpkg
122 / Nix for (system-wide) package management.
124 To compensate, more popular modern use cases for Stow have been
125 added, such as management of dotfiles and software compiled in the
126 user's $HOME directory.
128 ***** Miscellaneous documentation fixes
130 - Various typos were fixed.
132 - The documentation for --verbose was updated to indicate that
133 verbosity levels now go up to 5.
135 - Erroneous glob examples in the --ignore documentation were fixed.
137 - The abbreviation "regex" was removed from the info manual for
140 - INSTALL.md now also documents how to build directly from git.
141 *** Fixes for bugs, tests, and other technical debt
143 ***** Add Docker files for convenient testing across multiple Perl versions
145 This is the first release which has been tested across 5 different
146 versions of Perl prior to release! The versions are:
154 Thanks to Charles LeDoux for this!
156 ***** Set up continuous testing via Travis CI
158 This means that the test suite will be automatically run on any
159 pull requests submitted to GitHub, as well as "make distcheck"
160 and "./Build distcheck".
162 ***** Add Coveralls integration with GitHub
164 This means that test coverage analysis will be automatically be run
165 on any pull requests submitted to GitHub.
167 ***** Miscellaneous improvements to the test suite
169 These include proper testing of the distinct impact of ~/.stowrc
170 and .stowrc in the directory from which Stow is invoked.
172 ***** Fix for test suite on Cygwin
174 Thanks to Lucas Theisen for this fix!
176 ***** aclocal.m4 was updated using aclocal 1.15.1.
178 ***** Miscellaneous fixes to the build and distribution process
180 ***** Improve handling of directories with unusual names
182 Various fixes for corner cases where directories are named "0"
183 or begin with a space character, or where STOW_DIR is empty.
185 Thanks to Cuong Manh Le for highlighting some of the issues and
188 * Changes in version 2.2.2
190 *** @VERSION@ substitution was set up for the Stow::Util module.
192 * Changes in version 2.2.1
194 Version 2.2.1 was not released since it was rejected by pause.perl.org
195 due to Stow::Util missing $VERSION.
197 *** Small improvements to documentation
199 ***** The README has been revamped.
201 ***** Some index points have been added to the manual.
203 ***** Some typos were fixed.
205 ***** @VERSION@ substitution was fixed in the stow(8) man page.
207 *** Fix Perl warnings
209 Stow no longer emits "v-string in use/require non-portable" and
210 "Possible precedence issue with control flow operator" warnings
211 with newer Perl versions. See https://savannah.gnu.org/bugs/?36478
212 and http://lists.gnu.org/archive/html/bug-stow/2014-06/msg00000.html
215 *** Fix "Undefined subroutine &main::error" error
217 See https://rt.cpan.org/Public/Bug/Display.html?id=75349 for details.
219 *** Failed system calls now include error description
221 This should make errors easier to understand.
223 *** Default ignore list now ignores top-level README.*, LICENSE.*, and COPYING
225 These files are by definition specific to a given package, so if
226 they exist in the top-level directory, they should not be stowed.
228 *** Correctly handle the stow/target directories as non-canonical paths
230 Fix the case discovered by Hiroyuki Iwatsuki where stowing fails if
231 the stow / target directories are non-canonical paths. For
232 example, on FreeBSD /home is a symlink pointing to 'usr/home', so
233 running with the stow directory as /home/user/local/stow and the
234 target directory as /home/user/local previously resulted in the
235 stow directory path being calculated as
236 ../../../usr/home/user/local/stow relative to the target.
238 See https://lists.gnu.org/archive/html/bug-stow/2013-04/msg00000.html for details.
240 *** Fix stowing of relative links when --no-folding is used.
242 With a tree like this:
248 | |-- itk-current -> itk4.0.0
253 |-- itk4.0.0 -> ../../stow/pkg/lib/itk4.0.0
256 stowing pkg with the --no-folding option resulted in itk-current
263 | `-- libitk4.0.0.so -> ../../../stow/pkg/lib/itk-current/libitk4.0.0.so
265 | `-- libitk4.0.0.so -> ../../../stow/pkg/lib/itk4.0.0/libitk4.0.0.so
268 This commit fixes it so that it gets stowed as a symlink:
274 |-- itk-current -> ../../stow/pkg/lib/itk-current
277 Thanks to Gabriele Balducci for reporting this problem:
279 https://lists.gnu.org/archive/html/help-stow/2014-09/msg00000.html
281 *** Internal code cleanups
283 ***** aclocal was updated.
285 ***** automake files were removed.
287 ***** Trailing whitespace was removed.
289 ***** Comments were added.
291 ***** Debug messages were improved.
293 * Changes in version 2.2.0
295 *** New --no-folding option
297 Disables folding of newly stowed directories when stowing, and
298 refolding of newly foldable directories when unstowing.
300 *** Remove -a option (--adopt still available)
302 As --adopt is the only option which allows stow to modify files, it
303 is considered potentially dangerous (especially for stow package
304 directories which are not managed by a version control system).
305 Therefore it seems prudent to require a bit more effort from the
306 user to enable this option, minimising the change of enabling it
309 *** Improve error message when stow package is not found.
311 The error message displayed a path to the missing stow package
312 which was relative to the target directory rather than the cwd,
313 which was confusing for the user.
315 *** Test suite improvements
317 The test suite has been tightened up slightly.
319 *** Documentation improvements
321 Various fixes and cosmetic improvements have been made in the manual.
323 *** Remove "There are no outstanding operations to perform" warning.
325 * Changes in version 2.1.3
327 *** New --adopt / -a option
329 This allows plain files in the target to be "adopted" into the
330 package being stowed. See the manual has more details.
332 *** ./configure now checks for Perl modules required by the test suite.
334 * Changes in version 2.1.2
336 Many thanks to Stefano Lattarini for help with numerous autoconf and
337 automake issues which are addressed in this release.
339 *** Significantly improve the handling of --with-pmdir.
341 ***** Calculation of the default value for --with-pmdir is now done safely in Perl.
343 Previously non-POSIX-compliant shells could cause issues.
345 ***** The output of ./configure and make are now much more helpful.
347 ***** The Makefile will now check whether pmdir is in Perl's built-in @INC.
349 If not, it will insert a
353 line into the generated stow script to ensure that it can always
354 locate the Perl modules without needing to manually set PERL5LIB.
356 ***** Updated INSTALL and HOWTO-RELEASE accordingly.
358 *** ./configure now aborts if Perl isn't found.
360 *** Ensured the ChangeLog is up-to-date when making a new distribution.
362 *** Fixed bug with `make clean' removing files which the user may not be able to rebuild.
364 * Changes in version 2.1.1
366 *** Fixed bug where ./configure --with-pmdir=X was ineffectual.
368 *** Calculated the correct default value for pmdir based on the local Perl installation.
370 *** Fixed some automake issues (thanks to Stefano Lattarini for spotting these!)
372 *** Improved various bits of documentation.
374 * Changes in version 2.1.0
376 *** Major refactoring of code into separate Stow and Stow::Util Perl modules.
378 *** Added support for ignore list files.
380 *** Added support for CPAN-style installation and distribution via Module::Build.
382 *** Introduced `make test' target and significantly tightened up test suite.
384 *** Very large number of code and documentation fixes (over 80 commits since version 2.0.1).
386 *** The '--conflicts' option has been removed.
388 Stow will always show conflicts if they are found during the scanning
391 *** Improved debugging output.
393 *** Converted man page to POD format.
395 *** Include PDF, and both split- and single-page HTML versions of manual in the distribution.
397 *** Fixed code style consistency issues.
399 *** Running configure from outside the source tree now works.
401 *** `make distcheck' now works.
403 * Changes in version 2.0.1
405 *** Defer operations until all potential conflicts have been assessed.
407 We do this by traversing the installation image(s) and recording the
408 actions that need to be performed. Redundant actions are factored out,
409 e.g., we don't want to create a link that we will later remove in order to
410 create a directory. Benefits of this approach:
412 1. Get to see _all_ the conflicts that are blocking an installation:
413 you don't have to deal with them one at a time.
414 2. No operations are be performed if _any_ conflicts are detected:
415 a failed stow will not leave you with a partially installed
417 3. Minimises the set of operations that need to be performed.
418 4. Operations are executed as a batch which is much faster
419 This can be an advantage when upgrading packages on a live system
420 where you want to minimise the amount of time when the package is
423 *** The above fixes the false conflict problem mentioned in the info file.
425 *** It also fixes the two bugs mentioned in the man page.
427 *** Multiple stow directories will now cooperate in folding/unfolding.
429 *** Conflict messages are more uniform and informative.
431 *** Verbosity and tracing is more extensive and uniform.
433 *** Implemented option parsing via Getopt::Long.
435 *** Default command line arguments set via '.stowrc' and '~/.stowrc' files.
437 Contents of these files are parsed as though they occurred first on
440 *** Support multiple actions per invocation.
442 In order for this to work, we had to add a new (optional) command line arg
443 (-S) to specify packages to stow. For example, to update an installation
444 of emacs you can now do
446 stow -D emacs-21.3 -S emacs-21.4a
448 which will replace emacs-21.3 with emacs-21.4a.
449 You can mix and match any number of actions, e.g.,
451 stow -S p1 p2 -D p3 p4 -S p5 -R p6
453 will unstow p3, p4 and p6, then stow p1, p2, p5 and p6.
455 *** New (repeatable) command line arg: --ignore='<regex>'
457 This suppresses operating on a file matching the regex (suffix),
460 --ignore='~' --ignore='\.#.*'
462 will ignore emacs and CVS backup files (suitable for ~/.stowrc file).
464 (I opted for Perl regular expressions because they are more
465 powerful and easier to implement).
467 *** New (repeatable) command line arg: --defer='<regex>'
469 This defers stowing a file matching the regex (prefix) if that file
470 is already stowed to a different package, e.g.,
472 --defer='man' --defer='info'
474 will cause stow to skip over pre-existing man and info pages.
476 Equivalently, you could use --defer='man|info' since the argument
477 is just a Perl regex.
479 *** New (repeatable) command line arg: --override='<regex>'
481 This forces a file matching the regex (prefix) to be stowed even if
482 the file is already stowed to a different package, e.g.
484 --override='man' --override='info'
486 will unstow any pre-existing man and info pages that would conflict
487 with the file we are trying to stow.
489 Equivalently, you could use --override='man|info' since the
490 argument is just a Perl regex.
492 *** The above gives the ability to manage packages with common content.
494 For example, man pages that are shared by a number of CPAN
495 packages. Using multiple stow directories and .stowrc files can
496 also simplify things. In our setup we use the standard
497 /usr/local/stow directory for packages to be installed in
498 /usr/local. Since we install a large number of extra Perl packages
499 (currently about 300) we use an additional stow directory:
500 /usr/local/stow/perl-5.8.8-extras. Both stow directories contain a
501 '.stow' file so that they collaborate appropriately. I then use
502 the following .stowrc file in /usr/local/stow/perl-5.8.8-extras
504 --dir=/usr/local/stow/perl-5.8.8-extras
508 --ignore='perllocal\.pod'
509 --ignore='\.packlist'
512 When I stow packages from there, they automatically override any
513 man pages and binaries that may already have been stowed by another
514 package or by the core perl-5.8.8 installation. For example, if
515 you want to upgrade the Test-Simple package, you need to override
516 all the man pages that would have been installed by the core
517 package. If you are upgrading CPAN, you will also have to override
518 the pre-existing cpan executable.
520 *** By default, search less aggressively for invalid symlinks when unstowing.
522 That is, we only search for bad symlinks in the directories
523 explicitly mentioned in the installation image, and do not dig down
524 into other subdirs. Digging down into other directories can be
525 very time consuming if you have a really big tree (like with a
526 couple of Oracle installations lying around). In general the old
527 behaviour is only necessary when you have really stuffed up your
528 installation by deleting a directory that has already been stowed.
529 Doing that on a live system is somewhat crazy and hopefully rare.
530 We provide an option '-p|--compat' to enable the old behaviour for
531 those needing to patch up mistakes.
533 *** New chkstow utility for checking the integrity of the target directory.
535 *** Implement a test suite and support code.
537 This was built before implementing any of the extra features so I
538 could more easily check for equivalent functionality. The initial
539 code base had to be refactored substantially to allow for testing.
540 The test suite is not exhaustive, but it should provide enough to
541 check for regressions.
543 * Changes in version 1.3.3
545 *** Now requires Perl 5.005 or later
547 *** Initially empty directories are not removed anymore
549 *** Removed buggy fastcwd (we use POSIX::getcwd instead)
551 *** Fixed bug when the common Parent of Target dir and Stow dir was "/"
553 *** Fixed bug when handling directories named "0"
555 *** Stow now only warns the user if a directory is unreadable during unstowing.
557 * Changes in version 1.3:
559 *** Added --restow option.
561 *** Fixed handling of slashes in package names.
563 *** Expanded configure-time search for Perl binary.
565 * Changes in version 1.2:
567 *** Dependency on `pwd' removed.
569 *** Perl 4 compatibility fixes.
571 *** Manual expanded even more.
573 * Changes in version 1.1:
575 *** Long and short options now accepted.
579 *** `make clean' removes stow (which is generated from stow.in).
581 * Initial public release (v1.0) of Stow.
583 * emacs local variables
586 org-export-with-toc: nil
587 org-export-with-author: nil
588 org-toc-odd-levels-only: t