zsh: Import a patch from cygport.

This commit is contained in:
Yuta NAKAI
2014-12-28 07:41:09 +09:00
parent 105246e4cd
commit 29a780840b
2 changed files with 66 additions and 2 deletions

View File

@@ -15,7 +15,8 @@ source=("http://www.zsh.org/pub/zsh-${pkgver}.tar.bz2"
'zprofile'
Makefile.in.patch
add-pwd-W-option.patch
msysize.patch)
msysize.patch
zsh-5.0.6-1.patch)
md5sums=('1cd396ce17952de50b8a89980d617f0a'
'ec04d46211a20281778ddbbde9aa680f'
'SKIP'
@@ -23,7 +24,8 @@ md5sums=('1cd396ce17952de50b8a89980d617f0a'
'24a9335edf77252a7b5f52e079f7aef7'
'ca9d481e1aa03e864734734d2267afb0'
'df6860fd5b5b46d59ad03220e9125c9d'
'72860740c3722a27daaea164db0e478e')
'72860740c3722a27daaea164db0e478e'
'2b3f986cccd301534909b399557973a5')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -31,6 +33,7 @@ prepare() {
patch -p0 -i "${srcdir}/Makefile.in.patch"
patch -p1 -i "${srcdir}/add-pwd-W-option.patch"
patch -p1 -i "${srcdir}/msysize.patch"
patch -p1 -i "${srcdir}/zsh-5.0.6-1.patch"
autoreconf -fiv

61
zsh/zsh-5.0.6-1.patch Normal file
View File

@@ -0,0 +1,61 @@
diff -urN -x .build -x .inst -x .sinst zsh-5.0.6-orig/Doc/Makefile.in zsh-5.0.6/Doc/Makefile.in
--- zsh-5.0.6-orig/Doc/Makefile.in 2014-08-12 14:31:21.000000000 -0500
+++ zsh-5.0.6/Doc/Makefile.in 2014-09-14 00:05:52.350386400 -0500
@@ -376,8 +376,10 @@
# install HTML manual
install.html: html
${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(htmldir)
- for file in *.html; do \
+ for file in ${sdir}/zsh*.html zsh*.html; do \
+ if [ -f "$$file" ]; then \
$(INSTALL_DATA) $$file $(DESTDIR)$(htmldir) || exit 1; \
+ fi; \
done
.PHONY: install.html
diff -urN -x .build -x .inst -x .sinst zsh-5.0.6-orig/Src/zsh_system.h zsh-5.0.6/Src/zsh_system.h
--- zsh-5.0.6-orig/Src/zsh_system.h 2014-07-25 12:56:55.000000000 -0500
+++ zsh-5.0.6/Src/zsh_system.h 2014-09-14 00:05:52.370895000 -0500
@@ -776,6 +776,10 @@
#ifdef __CYGWIN__
# include <sys/cygwin.h>
# define IS_DIRSEP(c) ((c) == '/' || (c) == '\\')
+/* Cygwin Hack! newlib doesn't define STDC ISO 10646, so hack it here */
+# if defined(HAVE_WCHAR_H) && defined(HAVE_WCTOMB) && !defined(__STDC_ISO_10646__)
+# define __STDC_ISO_10646__
+# endif
#else
# define IS_DIRSEP(c) ((c) == '/')
#endif
diff -urN -x .build -x .inst -x .sinst zsh-5.0.6-orig/Test/C02cond.ztst zsh-5.0.6/Test/C02cond.ztst
--- zsh-5.0.6-orig/Test/C02cond.ztst 2014-05-16 14:21:25.000000000 -0500
+++ zsh-5.0.6/Test/C02cond.ztst 2014-09-14 00:05:52.389450400 -0500
@@ -187,7 +187,7 @@
print -u$ZTST_fd "Warning: not testing [[ -e /dev/fd/0 ]] (/dev/fd not supported)"
true
else
- [[ -e /dev/fd/0 ]]
+ [[ -e `grep '#define PATH_DEV_FD' $ZTST_testdir/../config.h | awk '{ print $3 }' | tr -d '"'`/0 ]]
fi
0dD:/dev/fd support in conds handled by access
@@ -195,7 +195,7 @@
print -u$ZTST_fd "Warning: not testing [[ -O /dev/fd/0 ]] (/dev/fd not supported)"
true
else
- [[ -O /dev/fd/0 ]]
+ [[ -O `grep '#define PATH_DEV_FD' $ZTST_testdir/../config.h | awk '{ print $3 }' | tr -d '"'`/0 ]]
fi
0dD:/dev/fd support in conds handled by stat
diff -urN -x .build -x .inst -x .sinst zsh-5.0.6-orig/configure zsh-5.0.6/configure
--- zsh-5.0.6-orig/configure 2014-07-25 12:57:00.000000000 -0500
+++ zsh-5.0.6/configure 2014-09-14 00:05:52.410935600 -0500
@@ -11152,6 +11152,7 @@
fd = open("/tmp/fifo$$", O_RDONLY);
exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
}
+ sleep(1);
fd = open("/tmp/fifo$$", O_WRONLY);
ret = (fd < 0 || write(fd, "x", 1) < 1);
unlink("/tmp/fifo$$");