Up to [cvs.NetBSD.org] / pkgsrc / sysutils / stow
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
stow: update to 2.4.1.
Closes PR 59420 by Kaguya Miyama.
* Changes in version 2.4.1
*** Fix precedence warning with Perl 5.40.
Perl 5.40.0 extended the scope of the "Possible precedence issue
with control flow operator" warnings to include ternary operators,
which reintroduced this warning when running Stow on Perl >= 5.40.0.
This has now been fixed.
*** =--dotfiles= option now works correctly with ignore lists
If the =--dotfiles= option was enabled, files in the package such
as =dot-gitignore= would be translated to =.gitignore= prior to
stowing, and consequently ignored by the default ignore list.
However any file named =dot-*= in a package is obviously intended
to be stowed as a dot file, so should not be ignored.
To fix this, Stow now ignores based on the name in the package,
not the potentially translated name used for stowing, and
similarly for unstowing.
*** Use shell-like parsing for =.stowrc= arguments
If a file path or regex in =.stowrc= has a space, the option
previously broke because it would have been treated as two options
instead of one. Now it's possible to include options using
shell-like quoting, e.g.:
--target="$HOME/dir with space in/file with space in"
--ignore=\\$FOO\\$
*** Make dependency on LaTeX optional
Previously, the installation instructions always built a PDF
version of the manual, which required having LaTeX installed.
However LaTeX is a large program which can be awkward to install,
so this has now been made optional, and by default the PDF manual
is not part of the build. It can still be built via =make pdf=,
and this is documented.
*** Fix Docker builds.
Fix the return error 100 that was happening when trying to run
the build script with docker.
*** Various maintainer tweaks
Further improved the release process and its documentation in
various minor ways. Perl 5.40 has been added to the test matrix.
* Changes in version 2.4.0
*** --dotfiles now works with directories
A long-standing bug preventing the --dotfiles option from working
correctly with directories has been fixed.
It should also works in combination with the --compat option.
*** Eliminated a spurious warning on unstowing
2.3.1 introduced a benign but annoying warning when unstowing
in certain circumstances. It looked like:
BUG in find_stowed_path? Absolute/relative mismatch between Stow dir X and path Y
This was caused by erroneous logic, and has now been fixed.
*** Unstowing logic has been improved in other cases
Several other improvements have been made internally to the
unstowing logic. These changes should all be either invisible
(except for changes to debug output) or improvements, but if you
encounter any unexpected behaviour, please report it as directed
in the manual.
*** Improved debug output
Extra output resulting from use of the -v / --verbose flag
now appears in a more logical and understandable way.
*** Janitorial tasks
Users are not substantially affected by these changes.
***** Added some more information from the web page to the README
***** Made some improvements to the documentation
***** Improve readability of source code
Quite a few extra details have been added in comments to clarify
how the code works. Many variable names have also been
improved. The comments of many Stow class methods have been
converted into Perl POD format.
***** Added a =CONTRIBUTING.md= file
***** Add a =watch= target to =Makefile=
=make watch= provides easy continual pre-processing during
development, which reduces the risk of debugging the wrong code.
***** Removed texinfo.tex from the distribution
This eliminates existing and future bit-rot.
***** Updated aclocal.m4 from 1.15.1 to 1.16.5
This mostly just updates copyright notices to 2021, and URLs to https.
***** Replace broken gmane links with links to lists.gnu.org
[[https://lars.ingebrigtsen.no/2020/01/06/whatever-happened-to-news-gmane-org/][gmane has been dead for quite a while.]]
***** Improve support for navigating / editing source via emacs
******* Support source navigation in emacs via [[https://github.com/jacktasia/dumb-jump][dumb-jump]].
******* Configure cperl-mode to match existing coding style.
*** Various maintainer tweaks
Further improved the release process and its documentation in
various minor ways.
stow: update to 2.3.1.
From Chavdar Ivanov in PR pkg/57899.
* Changes in version 2.3.1
*** Remove dependencies on Hash::Merge and Clone::Choose
stow 2.3.0 added external runtime dependencies on Hash::Merge and
Clone::Choose. Historically stow hasn't had runtime dependencies
other than Perl itself, which is a useful property if you're
managing the installation of Perl using stow; the bootstrapping
instructions in stow's manual would need updating to describe how
to install these two modules (and any dependencies they have now
or in the future) as well.
However, Hash::Merge is much more general than stow actually
needs, so replace the merge() call with a few lines of equivalent
code -- this avoids the external dependencies, and is clearer than
the merge() call.
Many thanks to Adam Sampson for this patch!
https://lists.gnu.org/archive/html/bug-stow/2019-06/msg00001.html
*** Fix an issue with the test suite
t/cli.t was not testing with the right Perl executable, as
reported here:
https://rt.cpan.org/Ticket/Display.html?id=129944
Thanks to Slaven Rezic for spotting this and reporting it!
*** Various maintainer tweaks
Improved the release process and its documentation in various
minor ways.
* Changes in version 2.3.0
*** New features / changes in behaviour
***** New --dotfiles option
Enable special handling for "dotfiles" (files or folders whose name
begins with a period) in the package directory. If this option is
enabled, Stow will add a preprocessing step for each file or folder
whose name begins with "dot-", and replace the "dot-" prefix in the
name by a period ("."). This is useful when Stow is used to manage
collections of dotfiles, to avoid having a package directory full
of hidden files.
For example, suppose we have a package containing two files,
stow/dot-bashrc and stow/dot-emacs.d/init.el. With this option,
Stow will create symlinks from .bashrc to stow/dot-bashrc and from
.emacs.d/init.el to stow/dot-emacs.d/init.el. Any other files,
whose name does not begin with "dot-", will be processed as usual.
Thanks to Joris Vankerschaver for this feature!
***** Shell-like expansion in .stowrc files
For options within .stowrc files which describe file paths, "~" can
be included to expand to the current value of $HOME, and
environment variables can be referenced e.g. via "$FOO" or
"${FOO}". To prevent expansion, escape with a backslash.
Thanks a lot to Charles LeDoux for his diligent work on this
feature!
***** chkstow now honours the $STOW_DIR environment variable
The stow script already honoured the $STOW_DIR environment
variable. Now chkstow does too, for consistency.
***** Stow now has a non-zero exit code if option parsing failed
Thanks to Brice Waegeneire for reporting this.
*** License upgraded from GPL version 2 to version 3
Copyright and license notices were also added to the headers of
various files in accordance with GNU guidelines.
*** Documentation fixes and enhancements
Update to stow 2.2.2 * Changes in version 2.2.2 ** @VERSION@ substitution was set up for the Stow::Util module. * Changes in version 2.2.1 Version 2.2.1 was not released since it was rejected by pause.perl.org due to Stow::Util missing $VERSION. ** Small improvements to documentation ** Fix Perl warnings ** Fix "Undefined subroutine &main::error" error ** Failed system calls now include error description ** Default ignore list now ignores top-level README.*, LICENSE.*, and COPYING ** Correctly handle the stow/target directories as non-canonical paths ** Fix stowing of relative links when --no-folding is used. * Changes in version 2.2.0 ** New --no-folding option ** Remove -a option (--adopt still available) ** Improve error message when stow package is not found. ** Test suite improvements ** Documentation improvements ** Remove "There are no outstanding operations to perform" warning. * Changes in version 2.1.3 ** New --adopt / -a option ** ./configure now checks for Perl modules required by the test suite. * Changes in version 2.1.2 Many thanks to Stefano Lattarini for help with numerous autoconf and automake issues which are addressed in this release. ** Significantly improve the handling of --with-pmdir. ** ./configure now aborts if Perl isn't found. ** Ensured the ChangeLog is up-to-date when making a new distribution. ** Fixed bug with `make clean' removing files which the user may not be able to rebuild. * Changes in version 2.1.1 ** Fixed bug where ./configure --with-pmdir=X was ineffectual. ** Calculated the correct default value for pmdir based on the local Perl installation. ** Fixed some automake issues ** Improved various bits of documentation. * Changes in version 2.1.0 ** Major refactoring of code into separate Stow and Stow::Util Perl modules. ** Added support for ignore list files. ** Added support for CPAN-style installation and distribution via Module::Build. ** Introduced `make test' target and significantly tightened up test suite. ** Very large number of code and documentation fixes (over 80 commits since version 2.0.1). ** The '--conflicts' option has been removed. ** Improved debugging output. ** Converted man page to POD format. ** Include PDF, and both split- and single-page HTML versions of manual in the distribution. ** Fixed code style consistency issues. ** Running configure from outside the source tree now works. ** `make distcheck' now works. * Changes in version 2.0.1 ** Defer operations until all potential conflicts have been assessed. ** Multiple stow directories will now cooperate in folding/unfolding. ** Conflict messages are more uniform and informative. ** Verbosity and tracing is more extensive and uniform. ** Implemented option parsing via Getopt::Long. ** Default command line arguments set via '.stowrc' and '~/.stowrc' files. ** Support multiple actions per invocation. ** New (repeatable) command line arg: --ignore='<regex>' ** New (repeatable) command line arg: --defer='<regex>' ** New (repeatable) command line arg: --defer='<regex>' ** New (repeatable) command line arg: --override='<regex>' ** By default, search less aggressively for invalid symlinks when unstowing. ** New chkstow utility for checking the integrity of the target directory.
List info files directly in the PLIST and honor PKG{INFO,MAN}DIR.
Remove info files entries from PLIST.
Convert to USE_NEW_TEXINFO.
Merge packages from the buildlink2 branch back into the main trunk that have been converted to USE_BUILDLINK2.
Merge from pkgsrc-current to buildlink2 branch.
Upgrade to 1.3.3 (closes PR#17155; approved by wiz). Changes in version 1.3.3 (from NEWS file): * Now requires Perl 5.005 or later * Initially empty directories are not removed anymore * Removed buggy fastcwd (we use POSIX::getcwd instead) * Fixed bug when the common Parent of Target dir and Stow dir was "/" * Fixed bug when handling directories named "0" * Stow now only warns the user if a directory is unreadable during unstowing.
Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
removal of USE_GTEXINFO
INSTALL_INFO added to PLIST_SUBST
`${INSTALL_INFO}' replace `install-info' in target rules
print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
makeinfo command usage
See -newly added by this commit- section 10.24 of Packages.txt for
further information.
Move pkg/ files into package's toplevel directory