This is an automated email from the ASF dual-hosted git repository.
leginee pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new f0df89bf03 configure: drop the Cygwin symlink check for awk, tar and
gunzip
f0df89bf03 is described below
commit f0df89bf03d66847bccc23fc0891443108567ec4
Author: Peter <[email protected]>
AuthorDate: Sat Nov 21 12:35:47 2026 +0100
configure: drop the Cygwin symlink check for awk, tar and gunzip
The check guarded a dmake built with MSVC that spawned these tools
directly; a native Windows program cannot follow a Cygwin symlink.
bootstrap.1 builds dmake with Cygwin gcc, so every recipe runs them
through Cygwin, which follows symlinks. Current Cygwin gawk packages
install /usr/bin/awk as a symlink, so the check failed every fresh
Cygwin and asked for a manual copy over the link.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
main/configure.ac | 25 ++++---------------------
1 file changed, 4 insertions(+), 21 deletions(-)
diff --git a/main/configure.ac b/main/configure.ac
index 2bf8480c1d..f2994c9974 100644
--- a/main/configure.ac
+++ b/main/configure.ac
@@ -1791,27 +1791,10 @@ AC_SUBST(THES_SYSTEM_DIR)
if test $_os = "WINNT"; then
AC_MSG_CHECKING([Windows build environment sanity])
dnl ===================================================================
- dnl Sanity check! Native Windows programs cannot use cygwin symlinks!
- dnl ===================================================================
- dnl As long as awk instead of $AWK is used somewhere in the sources,
- dnl check for $AWK and awk. $AWK is pointing to gawk in cygwin.
- dnl Quoted: either side can be a path with a space in it, and an
- dnl unquoted one splits into "test: too many arguments" here.
- if test -L "$AWK" -o -L "`which awk`" ; then
- AC_MSG_ERROR([$AWK / awk is a cygwin symlink!
-Native Windows programs cannot use cygwin symlinks. Remove the symbolic
-link, and copy the program to the name of the link.])
- fi
- if test -L `which tar` ; then
- AC_MSG_ERROR([tar is a cygwin symlink!
-Native Windows programs cannot use cygwin symlinks. Remove the symbolic
-link, and copy the program to the name of the link.])
- fi
- if test -L `which gunzip` ; then
- AC_MSG_ERROR([gunzip is a cygwin symlink!
-Native Windows programs cannot use cygwin symlinks. Remove the symbolic
-link, and copy the program to the name of the link.])
- fi
+ dnl No check for Cygwin symlinks on awk, tar or gunzip: it guarded a
+ dnl dmake built with MSVC that spawned them directly. bootstrap.1 builds
+ dnl dmake with Cygwin gcc, so every recipe runs them through Cygwin,
+ dnl which follows symlinks (Cygwin's gawk package installs awk as one).
dnl ===================================================================
dnl Another sanity check! More a band-aid. winenv.* adds guw.exe to
dnl CC and CXX but the configure checks here assume that guw.exe