[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: finding prove with mingw on cygwin?
From: |
Patrice Dumas |
Subject: |
Re: finding prove with mingw on cygwin? |
Date: |
Sat, 21 Sep 2024 12:20:41 +0200 |
On Sat, Sep 21, 2024 at 10:57:33AM +0300, Eli Zaretskii wrote:
> > Date: Sat, 21 Sep 2024 00:32:43 +0200
> > From: Patrice Dumas <pertusus@free.fr>
> >
> > On Fri, Sep 20, 2024 at 08:14:33PM +0200, Patrice Dumas wrote:
> > > On Fri, Sep 20, 2024 at 08:42:18PM +0300, Eli Zaretskii wrote:
> > > > And if not, does the
> > > > Strawberry Perl's bin/ subdirectory appear on your PATH?
> > >
> > > I think so, there is:
> > > Path: C:\cygwin\bin
> > > ......
> > > C:\Strawberry\c\bin
> > > C:\Strawberry\perl\site\bin
> > > C:\Strawberry\perl\bin
> > > ......
> > >
> > > I will check what a ls on those directories gives, to check if prove is
> > > actually there.
> >
> > I have checked, there is indeed prove.bat in
> > /cygdrive/c/Strawberry/perl/bin
> >
> > Yet it is not found. Could be because of the .bat, and it could make
> > sense, as it is not clear to me that cygwin bash.exe can interpret .bat
> > files.
>
> I'm now confused as to what port of Texinfo are you building and
> testing.
In this thread, the port is mingw on Cygwin. Cygwin is used as a pseudo host.
In
https://www.gnu.org/software/libtool/manual/html_node/Cygwin-to-MinGW-Cross.html
it is referred to as 'fake' Cygwin to MinGW cross compile case:
In the fake Cygwin to MinGW cross compile case, you actually use a
native MinGW compiler, but you do so from within a Cygwin environment.
In this Cygwin to MinGW cross compile case, we use Strawberry Perl
as a native Perl, which should mix well with MinGW compiled binaries
at the binary level. (Though we have all sort of issues because we call
native builds in Cygwin as you noted in another mail).
> If it's a Cygwin build of Texinfo, then Strawberry Perl
> should not be used; you should use a Cygwin port of Perl instead. And
> 'prove' should not be a batch file in a Cygwin Perl, it should be a
> Perl script named just "prove", as it is on any Unix system.
On the one hand it should be, to be called from Cygwin, on the other
hand since we are compiling for mingw, we use the native perl...
> Indeed, I don't believe Cygwin supports batch file execution, except
> via the likes of "cmd /c foo.bat".
At this point, I think that it is not worth it trying to have the tp/*.t
testsuite work for that platform, some perl modules will be needed and I
do not know how to install them. For this platform, we probably should
stick to what works easily as it is 'wobbly'.
--
Pat