Re: [PATCH] Re: Eggs not installing on msys-mingw32

Peter Bex <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <ZUCr3sVCIYYHEA8E@doggett>
On Mon, Oct 30, 2023 at 05:45:28PM -0400, Matt Welland wrote:
> Well, maybe there is a silver lining here, I can currently reliably
> reproduce the problem!

That's excellent!  Do you have to do any special steps, or does it
simply always happen?

> One hypothesis I'm looking at is replacing calls using with-input-from-file
> and with-output-to-file with open-*-file ... close loops for the reading
> and creation of the egg-info files.

You're probably on the wrong track there.  AFAICT, egg-info files are
only *created* in the foo.install.sh / foo.install.bat file, at the very
end where (on *nix) it uses cat(1) to write into it.

If the file is already empty, changing how it's read won't make a
difference.

The only way it would fail that I can see is if one presses ^C to abort
installation at a very unlucky time.  This sounds like a race condition
but depending on the shell, it might be that it will process that signal
after evaluating the line that redirects stdout to the egg-info file,
but before actually invoking cat.  Dunno, grasping at straws here :)

Since you're using mingw, it's a UNIX shell at least.  Could you try
inserting a sync(1) call at the end of the .install.sh file to see if
that fixes things?

Cheers,
Peter
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE6bh5EUSYP1EE+1UTER25+ctFibAFAmVAq9oACgkQER25+ctF
ibDc3gf9EwfoK+J2AQw7FGMow5gL9djzh27kdhm1yN3mqkRhVFz/Uq9zr2tiAWVk
7CM8QoFs2bfiMPYK8v16RoSeuM1zD2qtWLNMENvcqT7sKTjb4SPzw4PocQK2t5d4
NuPuu9stGLqKJZKQoSjDE5X832Lu0SYUTLjBXxufU6OzFH6WVDN8jOWybWqg2Cof
hOjnZ54q7bfj1ei/eMkheqHWbG2mC8JwNbpVSJ+1BOPu90RzI8ZMAol8MKchD4N0
GN19ii46X82ZaO/+SXQG1/MMiTQiw0vRwu9ObdW+pJd8OF2VJr20pWfjS9uzdYBv
fIVSUnJEzv5iiPbUweGlN1v7yIVfag==
=H0qe
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.