3 * Changes in version 2.3.2
5 *** Eliminated a spurious warning on unstowing
7 2.3.1 introduced a benign but annoying warning when unstowing
8 in certain circumstances. It looked like:
10 BUG in find_stowed_path? Absolute/relative mismatch between Stow dir X and path Y
12 This was caused by erroneous logic, and has now been fixed.
14 *** Improved debug output
16 Extra output resulting from use of the -v / --verbose flag
17 now appears in a more logical and understandable way.
21 Users are not substantially affected by these changes.
23 ***** Added some more information from the web page to the README
25 ***** Made some improvements to the documentation
27 ***** Improve readability of source code
29 Quite a few extra details have been added in comments to clarify
30 how the code works. Many variable names have also been
31 improved. The comments of many Stow class methods have been
32 converted into Perl POD format.
34 ***** Added a =CONTRIBUTING.md= file
36 ***** Add a =watch= target to =Makefile=
38 =make watch= provides easy continual pre-processing during
39 development, which reduces the risk of debugging the wrong code.
41 ***** Removed texinfo.tex from the distribution
43 This eliminates existing and future bit-rot.
45 ***** Updated aclocal.m4 from 1.15.1 to 1.16.5
47 This mostly just updates copyright notices to 2021, and URLs to https.
49 ***** Replace broken gmane links with links to lists.gnu.org
51 [[https://lars.ingebrigtsen.no/2020/01/06/whatever-happened-to-news-gmane-org/][gmane has been dead for quite a while.]]
53 ***** Improve support for navigating / editing source via emacs
55 ******* Support source navigation in emacs via [[https://github.com/jacktasia/dumb-jump][dumb-jump]].
57 ******* Configure cperl-mode to match existing coding style.
59 *** Various maintainer tweaks
61 Further improved the release process and its documentation in
64 * Changes in version 2.3.1
66 *** Remove dependencies on Hash::Merge and Clone::Choose
68 stow 2.3.0 added external runtime dependencies on Hash::Merge and
69 Clone::Choose. Historically stow hasn't had runtime dependencies
70 other than Perl itself, which is a useful property if you're
71 managing the installation of Perl using stow; the bootstrapping
72 instructions in stow's manual would need updating to describe how
73 to install these two modules (and any dependencies they have now
74 or in the future) as well.
76 However, Hash::Merge is much more general than stow actually
77 needs, so replace the merge() call with a few lines of equivalent
78 code -- this avoids the external dependencies, and is clearer than
81 Many thanks to Adam Sampson for this patch!
83 https://lists.gnu.org/archive/html/bug-stow/2019-06/msg00001.html
85 *** Fix an issue with the test suite
87 t/cli.t was not testing with the right Perl executable, as
90 https://rt.cpan.org/Ticket/Display.html?id=129944
92 Thanks to Slaven Rezic for spotting this and reporting it!
94 *** Various maintainer tweaks
96 Improved the release process and its documentation in various
99 * Changes in version 2.3.0
101 *** New features / changes in behaviour
103 ***** New --dotfiles option
105 Enable special handling for "dotfiles" (files or folders whose name
106 begins with a period) in the package directory. If this option is
107 enabled, Stow will add a preprocessing step for each file or folder
108 whose name begins with "dot-", and replace the "dot-" prefix in the
109 name by a period ("."). This is useful when Stow is used to manage
110 collections of dotfiles, to avoid having a package directory full
113 For example, suppose we have a package containing two files,
114 stow/dot-bashrc and stow/dot-emacs.d/init.el. With this option,
115 Stow will create symlinks from .bashrc to stow/dot-bashrc and from
116 .emacs.d/init.el to stow/dot-emacs.d/init.el. Any other files,
117 whose name does not begin with "dot-", will be processed as usual.
119 Thanks to Joris Vankerschaver for this feature!
121 ***** Shell-like expansion in .stowrc files
123 For options within .stowrc files which describe file paths, "~" can
124 be included to expand to the current value of $HOME, and
125 environment variables can be referenced e.g. via "$FOO" or
126 "${FOO}". To prevent expansion, escape with a backslash.
128 Thanks a lot to Charles LeDoux for his diligent work on this
131 ***** chkstow now honours the $STOW_DIR environment variable
133 The stow script already honoured the $STOW_DIR environment
134 variable. Now chkstow does too, for consistency.
136 ***** Stow now has a non-zero exit code if option parsing failed
138 Thanks to Brice Waegeneire for reporting this.
140 *** License upgraded from GPL version 2 to version 3
142 Copyright and license notices were also added to the headers of
143 various files in accordance with GNU guidelines.
145 *** Documentation fixes and enhancements
147 ***** Remove dependency on unmaintained texi2html
149 The dependency on the ancient and unmaintained texi2html for
150 building the single-page HTML version of the manual has been
151 removed, since it was difficult to get running on most distros
154 Instead use the more modern "makeinfo --html --no-split" approach.
155 Rules have been kept for posterity in the Makefile for the old
156 approach and also an "in-between" approach based on texi2any;
157 however these are not triggered by default. Run
159 make manual-single-html-all
161 to compare the three versions.
163 ***** Fixed naming of man page
165 The title of the generated man page was previously ending up as
168 IO::FILE=IO(0XA719C0)(1)
170 Thanks to @Corin-EU on GitHub highlighting this and proposing a
173 ***** Convert README and INSTALL to Markdown
175 They are now named README.md and INSTALL.md, and render nicely
176 when viewed via git hosting services which support Markdown.
178 ***** Update documentation to reflect more modern use cases
180 The README.md, stow(8) man page, and info manual have been updated
181 to de-emphasise the package management use, since these days almost
182 everyone prefers to use modern package managers such as rpm / dpkg
183 / Nix for (system-wide) package management.
185 To compensate, more popular modern use cases for Stow have been
186 added, such as management of dotfiles and software compiled in the
187 user's $HOME directory.
189 ***** Miscellaneous documentation fixes
191 - Various typos were fixed.
193 - The documentation for --verbose was updated to indicate that
194 verbosity levels now go up to 5.
196 - Erroneous glob examples in the --ignore documentation were fixed.
198 - The abbreviation "regex" was removed from the info manual for
201 - INSTALL.md now also documents how to build directly from git.
203 *** Fixes for bugs, tests, and other technical debt
205 ***** Add Docker files for convenient testing across multiple Perl versions
207 This is the first release which has been tested across 5 different
208 versions of Perl prior to release! The versions are:
216 Thanks to Charles LeDoux for this!
218 ***** Set up continuous testing via Travis CI
220 This means that the test suite will be automatically run on any
221 pull requests submitted to GitHub, as well as "make distcheck"
222 and "./Build distcheck".
224 ***** Add Coveralls integration with GitHub
226 This means that test coverage analysis will be automatically be run
227 on any pull requests submitted to GitHub.
229 ***** Miscellaneous improvements to the test suite
231 These include proper testing of the distinct impact of ~/.stowrc
232 and .stowrc in the directory from which Stow is invoked.
234 ***** Fix for test suite on Cygwin
236 Thanks to Lucas Theisen for this fix!
238 ***** aclocal.m4 was updated using aclocal 1.15.1.
240 ***** Miscellaneous fixes to the build and distribution process
242 ***** Improve handling of directories with unusual names
244 Various fixes for corner cases where directories are named "0"
245 or begin with a space character, or where STOW_DIR is empty.
247 Thanks to Cuong Manh Le for highlighting some of the issues and
250 * Changes in version 2.2.2
252 *** @VERSION@ substitution was set up for the Stow::Util module.
254 * Changes in version 2.2.1
256 Version 2.2.1 was not released since it was rejected by pause.perl.org
257 due to Stow::Util missing $VERSION.
259 *** Small improvements to documentation
261 ***** The README has been revamped.
263 ***** Some index points have been added to the manual.
265 ***** Some typos were fixed.
267 ***** @VERSION@ substitution was fixed in the stow(8) man page.
269 *** Fix Perl warnings
271 Stow no longer emits "v-string in use/require non-portable" and
272 "Possible precedence issue with control flow operator" warnings
273 with newer Perl versions. See https://savannah.gnu.org/bugs/?36478
274 and http://lists.gnu.org/archive/html/bug-stow/2014-06/msg00000.html
277 *** Fix "Undefined subroutine &main::error" error
279 See https://rt.cpan.org/Public/Bug/Display.html?id=75349 for details.
281 *** Failed system calls now include error description
283 This should make errors easier to understand.
285 *** Default ignore list now ignores top-level README.*, LICENSE.*, and COPYING
287 These files are by definition specific to a given package, so if
288 they exist in the top-level directory, they should not be stowed.
290 *** Correctly handle the stow/target directories as non-canonical paths
292 Fix the case discovered by Hiroyuki Iwatsuki where stowing fails if
293 the stow / target directories are non-canonical paths. For
294 example, on FreeBSD /home is a symlink pointing to 'usr/home', so
295 running with the stow directory as /home/user/local/stow and the
296 target directory as /home/user/local previously resulted in the
297 stow directory path being calculated as
298 ../../../usr/home/user/local/stow relative to the target.
300 See https://lists.gnu.org/archive/html/bug-stow/2013-04/msg00000.html for details.
302 *** Fix stowing of relative links when --no-folding is used.
304 With a tree like this:
310 | |-- itk-current -> itk4.0.0
315 |-- itk4.0.0 -> ../../stow/pkg/lib/itk4.0.0
318 stowing pkg with the --no-folding option resulted in itk-current
325 | `-- libitk4.0.0.so -> ../../../stow/pkg/lib/itk-current/libitk4.0.0.so
327 | `-- libitk4.0.0.so -> ../../../stow/pkg/lib/itk4.0.0/libitk4.0.0.so
330 This commit fixes it so that it gets stowed as a symlink:
336 |-- itk-current -> ../../stow/pkg/lib/itk-current
339 Thanks to Gabriele Balducci for reporting this problem:
341 https://lists.gnu.org/archive/html/help-stow/2014-09/msg00000.html
343 *** Internal code cleanups
345 ***** aclocal was updated.
347 ***** automake files were removed.
349 ***** Trailing whitespace was removed.
351 ***** Comments were added.
353 ***** Debug messages were improved.
355 * Changes in version 2.2.0
357 *** New --no-folding option
359 Disables folding of newly stowed directories when stowing, and
360 refolding of newly foldable directories when unstowing.
362 *** Remove -a option (--adopt still available)
364 As --adopt is the only option which allows stow to modify files, it
365 is considered potentially dangerous (especially for stow package
366 directories which are not managed by a version control system).
367 Therefore it seems prudent to require a bit more effort from the
368 user to enable this option, minimising the change of enabling it
371 *** Improve error message when stow package is not found.
373 The error message displayed a path to the missing stow package
374 which was relative to the target directory rather than the cwd,
375 which was confusing for the user.
377 *** Test suite improvements
379 The test suite has been tightened up slightly.
381 *** Documentation improvements
383 Various fixes and cosmetic improvements have been made in the manual.
385 *** Remove "There are no outstanding operations to perform" warning.
387 * Changes in version 2.1.3
389 *** New --adopt / -a option
391 This allows plain files in the target to be "adopted" into the
392 package being stowed. See the manual has more details.
394 *** ./configure now checks for Perl modules required by the test suite.
396 * Changes in version 2.1.2
398 Many thanks to Stefano Lattarini for help with numerous autoconf and
399 automake issues which are addressed in this release.
401 *** Significantly improve the handling of --with-pmdir.
403 ***** Calculation of the default value for --with-pmdir is now done safely in Perl.
405 Previously non-POSIX-compliant shells could cause issues.
407 ***** The output of ./configure and make are now much more helpful.
409 ***** The Makefile will now check whether pmdir is in Perl's built-in @INC.
411 If not, it will insert a
415 line into the generated stow script to ensure that it can always
416 locate the Perl modules without needing to manually set PERL5LIB.
418 ***** Updated INSTALL and HOWTO-RELEASE accordingly.
420 *** ./configure now aborts if Perl isn't found.
422 *** Ensured the ChangeLog is up-to-date when making a new distribution.
424 *** Fixed bug with `make clean' removing files which the user may not be able to rebuild.
426 * Changes in version 2.1.1
428 *** Fixed bug where ./configure --with-pmdir=X was ineffectual.
430 *** Calculated the correct default value for pmdir based on the local Perl installation.
432 *** Fixed some automake issues (thanks to Stefano Lattarini for spotting these!)
434 *** Improved various bits of documentation.
436 * Changes in version 2.1.0
438 *** Major refactoring of code into separate Stow and Stow::Util Perl modules.
440 *** Added support for ignore list files.
442 *** Added support for CPAN-style installation and distribution via Module::Build.
444 *** Introduced `make test' target and significantly tightened up test suite.
446 *** Very large number of code and documentation fixes (over 80 commits since version 2.0.1).
448 *** The '--conflicts' option has been removed.
450 Stow will always show conflicts if they are found during the scanning
453 *** Improved debugging output.
455 *** Converted man page to POD format.
457 *** Include PDF, and both split- and single-page HTML versions of manual in the distribution.
459 *** Fixed code style consistency issues.
461 *** Running configure from outside the source tree now works.
463 *** `make distcheck' now works.
465 * Changes in version 2.0.1
467 *** Defer operations until all potential conflicts have been assessed.
469 We do this by traversing the installation image(s) and recording the
470 actions that need to be performed. Redundant actions are factored out,
471 e.g., we don't want to create a link that we will later remove in order to
472 create a directory. Benefits of this approach:
474 1. Get to see _all_ the conflicts that are blocking an installation:
475 you don't have to deal with them one at a time.
476 2. No operations are be performed if _any_ conflicts are detected:
477 a failed stow will not leave you with a partially installed
479 3. Minimises the set of operations that need to be performed.
480 4. Operations are executed as a batch which is much faster
481 This can be an advantage when upgrading packages on a live system
482 where you want to minimise the amount of time when the package is
485 *** The above fixes the false conflict problem mentioned in the info file.
487 *** It also fixes the two bugs mentioned in the man page.
489 *** Multiple stow directories will now cooperate in folding/unfolding.
491 *** Conflict messages are more uniform and informative.
493 *** Verbosity and tracing is more extensive and uniform.
495 *** Implemented option parsing via Getopt::Long.
497 *** Default command line arguments set via '.stowrc' and '~/.stowrc' files.
499 Contents of these files are parsed as though they occurred first on
502 *** Support multiple actions per invocation.
504 In order for this to work, we had to add a new (optional) command line arg
505 (-S) to specify packages to stow. For example, to update an installation
506 of emacs you can now do
508 stow -D emacs-21.3 -S emacs-21.4a
510 which will replace emacs-21.3 with emacs-21.4a.
511 You can mix and match any number of actions, e.g.,
513 stow -S p1 p2 -D p3 p4 -S p5 -R p6
515 will unstow p3, p4 and p6, then stow p1, p2, p5 and p6.
517 *** New (repeatable) command line arg: --ignore='<regex>'
519 This suppresses operating on a file matching the regex (suffix),
522 --ignore='~' --ignore='\.#.*'
524 will ignore emacs and CVS backup files (suitable for ~/.stowrc file).
526 (I opted for Perl regular expressions because they are more
527 powerful and easier to implement).
529 *** New (repeatable) command line arg: --defer='<regex>'
531 This defers stowing a file matching the regex (prefix) if that file
532 is already stowed to a different package, e.g.,
534 --defer='man' --defer='info'
536 will cause stow to skip over pre-existing man and info pages.
538 Equivalently, you could use --defer='man|info' since the argument
539 is just a Perl regex.
541 *** New (repeatable) command line arg: --override='<regex>'
543 This forces a file matching the regex (prefix) to be stowed even if
544 the file is already stowed to a different package, e.g.
546 --override='man' --override='info'
548 will unstow any pre-existing man and info pages that would conflict
549 with the file we are trying to stow.
551 Equivalently, you could use --override='man|info' since the
552 argument is just a Perl regex.
554 *** The above gives the ability to manage packages with common content.
556 For example, man pages that are shared by a number of CPAN
557 packages. Using multiple stow directories and .stowrc files can
558 also simplify things. In our setup we use the standard
559 /usr/local/stow directory for packages to be installed in
560 /usr/local. Since we install a large number of extra Perl packages
561 (currently about 300) we use an additional stow directory:
562 /usr/local/stow/perl-5.8.8-extras. Both stow directories contain a
563 '.stow' file so that they collaborate appropriately. I then use
564 the following .stowrc file in /usr/local/stow/perl-5.8.8-extras
566 --dir=/usr/local/stow/perl-5.8.8-extras
570 --ignore='perllocal\.pod'
571 --ignore='\.packlist'
574 When I stow packages from there, they automatically override any
575 man pages and binaries that may already have been stowed by another
576 package or by the core perl-5.8.8 installation. For example, if
577 you want to upgrade the Test-Simple package, you need to override
578 all the man pages that would have been installed by the core
579 package. If you are upgrading CPAN, you will also have to override
580 the pre-existing cpan executable.
582 *** By default, search less aggressively for invalid symlinks when unstowing.
584 That is, we only search for bad symlinks in the directories
585 explicitly mentioned in the installation image, and do not dig down
586 into other subdirs. Digging down into other directories can be
587 very time consuming if you have a really big tree (like with a
588 couple of Oracle installations lying around). In general the old
589 behaviour is only necessary when you have really stuffed up your
590 installation by deleting a directory that has already been stowed.
591 Doing that on a live system is somewhat crazy and hopefully rare.
592 We provide an option '-p|--compat' to enable the old behaviour for
593 those needing to patch up mistakes.
595 *** New chkstow utility for checking the integrity of the target directory.
597 *** Implement a test suite and support code.
599 This was built before implementing any of the extra features so I
600 could more easily check for equivalent functionality. The initial
601 code base had to be refactored substantially to allow for testing.
602 The test suite is not exhaustive, but it should provide enough to
603 check for regressions.
605 * Changes in version 1.3.3
607 *** Now requires Perl 5.005 or later
609 *** Initially empty directories are not removed anymore
611 *** Removed buggy fastcwd (we use POSIX::getcwd instead)
613 *** Fixed bug when the common Parent of Target dir and Stow dir was "/"
615 *** Fixed bug when handling directories named "0"
617 *** Stow now only warns the user if a directory is unreadable during unstowing.
619 * Changes in version 1.3:
621 *** Added --restow option.
623 *** Fixed handling of slashes in package names.
625 *** Expanded configure-time search for Perl binary.
627 * Changes in version 1.2:
629 *** Dependency on `pwd' removed.
631 *** Perl 4 compatibility fixes.
633 *** Manual expanded even more.
635 * Changes in version 1.1:
637 *** Long and short options now accepted.
641 *** `make clean' removes stow (which is generated from stow.in).
643 * Initial public release (v1.0) of Stow.
645 * emacs local variables
648 org-export-with-toc: nil
649 org-export-with-author: nil
650 org-toc-odd-levels-only: t
651 org-blank-before-new-entry: ((heading . auto) (plain-list-item . auto))