Hi Bruno,

On 5/2/24 2:29 AM, Bruno Haible wrote:
> I would additionally format it as a subsection, so that it clearly stands
> out from the rest:

Can I apply the attached patched?

Also, last night when fixing the quoting issue I was thinking if
gnulib-tool.py should quit on unsupported platforms (native Windows).

On Cygwin and MSYS2 'os.name' seems to be 'posix' [1]. Should we check
that before running?

I'm not sure how the Windows cmd.exe and powershell stuff works. I
assume it would be nicer to fail upfront than run the risk of
executing invalid shell commands (or valid ones that break things).

[1] https://docs.python.org/3/library/os.html#os.name

Collin
From 0f6c664fa65ba617923e198dc63c30a4fbbf2d2c Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Thu, 2 May 2024 14:22:14 -0700
Subject: [PATCH] DEPENDENCIES: Add Cygwin as supported platform.

* DEPENDENCIES: Mention Cygwin as a supported platform for building
Windows binaries.
---
 ChangeLog    |  6 ++++++
 DEPENDENCIES | 17 +++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 8192b43aa7..d59f8d5c7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-02  Collin Funk  <collin.fu...@gmail.com>
+
+	DEPENDENCIES: Add Cygwin as supported platform.
+	* DEPENDENCIES: Mention Cygwin as a supported platform for building
+	Windows binaries.
+
 2024-05-02  Bruno Haible  <br...@clisp.org>
 
 	doc: Add appendix about Gnulib history.
diff --git a/DEPENDENCIES b/DEPENDENCIES
index b700c05bc6..893daef0a7 100644
--- a/DEPENDENCIES
+++ b/DEPENDENCIES
@@ -197,3 +197,20 @@ at any time.
     https://www.gnu.org/software/tar/
   + Download:
     https://ftp.gnu.org/gnu/tar/
+
+
+Prerequisites needed on specific platforms
+==========================================
+
+Prerequisites on Windows
+------------------------
+
+* Cygwin
+  + Required.
+    Provides a POSIX-like environment and binary packages necessary to
+    build and run software. Native Windows binaries can be built with
+    a packaged mingw tool chain. This method is preferred over MSYS2.
+  + Homepage:
+    https://cygwin.com/
+  + Download:
+    https://cygwin.com/install.html
-- 
2.44.0

Reply via email to