Note: Term-Table and Test2-Suite are included in perl core now
Adjust patchprov to handle modern package syntax when extracting
package names/versions.
perl/0006-perl-5.36.0-msys2.patch: refresh
This is since this used to be a separate msys.sh file
which was synced back.
Let's keep things simple and only patch what we need to.
TODO: check if the other changes in that file are really needed,
or if they just diverged since the split for no good reason.
The goal is for perl to report that it was built for cygwin
($^O gives "cygwin" for example) and to adjust all the code depending
on that and remove all the patches for handing the "msys" case.
Everything else should work as before.
* In case cygwin check was extended with msys, remove msys case
* In case msys check was added, replace with cygwin check
* In case msys specific checks/code was added, merge that into the cygwin paths
We still check/set the MSYS env var instead of the CYGWIN env var,
since msys2-runtime doesn't handle both yet, so keep that as is for now.
In case we have a git clone from Linux that is accessed via cygwin git
the files executable status will be derived from the file content (shebang)
and won't match the git repo, leading to a initially dirty tree.
This can be worked around by setting "core.filemode=false", but let's try
to match the cygwin permissions with the in-repo permissions so this isn't
needed.
* New script /etc/msystem providing information associated with the
current MSYSTEM. This is sourced by /etc/profile but can be used by
non-login scripts for getting information such as the current
compiler architecture or mount point.
* New script /usr/bin/shell for switching between shells without
restarting MSYS2. This can be used in interactive sessions but also
from shell scripts for switching the MSYSTEM without restarting bash
or spawning a subshell.
* Allow /etc/profile to be sourced multiple times without continuously
appending stuff to PATH or losing track of the original Windows TEMP.
Also implemented for /etc/profile.d/perlbin.sh, so perl path is not
repeatedly appended.