zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: workaround for "config.status not found" on Cygwin
@ 2001-05-20  9:22 Andrej Borsenkow
  2001-05-20 10:23 ` Andrej Borsenkow
  0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 2001-05-20  9:22 UTC (permalink / raw)
  To: ZSH Workers Mailing List

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

Cygwin can optionally use NTFS attributes to emulate Unix file permissions
(CYGWIN=...ntea...). In this case file on NTFS must have x bit to be
considered executable. There is something fishy still:

- writing to a file resets all x bits. That accounts for a chmod line in
configure.in (we change file after it was created). But

- it did not help (God knows why). ls -l at the very end of configure shows
config.status with x bits set and ls -l immediately after configure runs
shows no x bits. It smells very much like a Cygwin bug, but for now I just
changed mkmakemod.sh to use /bin/sh config.status.

-andrej

[-- Attachment #2: zsh.config.status.diff --]
[-- Type: application/octet-stream, Size: 1415 bytes --]

Index: configure.in
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.in,v
retrieving revision 1.57
diff -u -r1.57 configure.in
--- configure.in	2001/05/10 07:13:41	1.57
+++ configure.in	2001/05/20 09:13:53
@@ -1913,6 +1913,7 @@
 cp $CONFIG_STATUS $CONFIG_STATUS.old
 sed '1,$s@^\( *ac_file_inputs=\).*$@\1`echo $ac_file_in | sed -e "s%^%:%" -e "s%:\\([^!]\\)% $ac_given_srcdir/\\1%g" -e "s%:!% %"`@' \
  $CONFIG_STATUS.old >$CONFIG_STATUS
+ chmod +x $CONFIG_STATUS
  rm -f $CONFIG_STATUS.old]
 
 test "$real_no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Index: Src/mkmakemod.sh
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/mkmakemod.sh,v
retrieving revision 1.10
diff -u -r1.10 mkmakemod.sh
--- Src/mkmakemod.sh	2001/04/23 19:59:04	1.10
+++ Src/mkmakemod.sh	2001/05/20 09:13:55
@@ -472,7 +472,7 @@
     # tree, this is a problem.  zsh's configure script edits config.status,
     # adding the feature that an input filename starting with "!" has the
     # "!" removed and is not mangled further.
-    CONFIG_FILES=$the_subdir/${the_makefile}:\!$the_subdir/${the_makefile}.in CONFIG_HEADERS= ./config.status
+    CONFIG_FILES=$the_subdir/${the_makefile}:\!$the_subdir/${the_makefile}.in CONFIG_HEADERS= ${CONFIG_SHELL-/bin/sh} ./config.status
 
 fi
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-29  8:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-20  9:22 PATCH: workaround for "config.status not found" on Cygwin Andrej Borsenkow
2001-05-20 10:23 ` Andrej Borsenkow
2001-05-28 21:43   ` Christopher Faylor
2001-05-29  8:43     ` Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).