commit
77ea4f4543
@ -0,0 +1 @@
|
|||||||
|
SOURCES/zsh-5.9.tar.xz
|
@ -0,0 +1 @@
|
|||||||
|
bf6b252bc0d8618228eb609c5c19d495ed94e7c7 SOURCES/zsh-5.9.tar.xz
|
@ -0,0 +1,178 @@
|
|||||||
|
From 6935aa4b515fe9b782507820c77ab681136470bc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
Date: Thu, 15 Sep 2022 18:56:20 +0900
|
||||||
|
Subject: [PATCH] 50629: do not use egrep in tests
|
||||||
|
|
||||||
|
Upstream-commit: 4fc5dc0292acd77f17281f451774ba2ca4203026
|
||||||
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
---
|
||||||
|
Test/D07multibyte.ztst | 16 ++--------------
|
||||||
|
Test/E01options.ztst | 2 +-
|
||||||
|
Test/V07pcre.ztst | 16 ++--------------
|
||||||
|
Test/X02zlevi.ztst | 11 +----------
|
||||||
|
Test/X03zlebindkey.ztst | 11 +----------
|
||||||
|
Test/Y01completion.ztst | 11 +----------
|
||||||
|
Test/ztst.zsh | 15 +++++++++++++++
|
||||||
|
7 files changed, 23 insertions(+), 59 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
|
||||||
|
index e2e9a25..6909346 100644
|
||||||
|
--- a/Test/D07multibyte.ztst
|
||||||
|
+++ b/Test/D07multibyte.ztst
|
||||||
|
@@ -1,19 +1,7 @@
|
||||||
|
%prep
|
||||||
|
|
||||||
|
-# Find a UTF-8 locale.
|
||||||
|
- setopt multibyte
|
||||||
|
-# Don't let LC_* override our choice of locale.
|
||||||
|
- unset -m LC_\*
|
||||||
|
- mb_ok=
|
||||||
|
- langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
|
||||||
|
- $(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
|
||||||
|
- for LANG in $langs; do
|
||||||
|
- if [[ é = ? ]]; then
|
||||||
|
- mb_ok=1
|
||||||
|
- break;
|
||||||
|
- fi
|
||||||
|
- done
|
||||||
|
- if [[ -z $mb_ok ]]; then
|
||||||
|
+ LANG=$(ZTST_find_UTF8)
|
||||||
|
+ if [[ -z $LANG ]]; then
|
||||||
|
ZTST_unimplemented="no UTF-8 locale or multibyte mode is not implemented"
|
||||||
|
else
|
||||||
|
print -u $ZTST_fd Testing multibyte with locale $LANG
|
||||||
|
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
|
||||||
|
index 2acbfd3..d38fbed 100644
|
||||||
|
--- a/Test/E01options.ztst
|
||||||
|
+++ b/Test/E01options.ztst
|
||||||
|
@@ -651,7 +651,7 @@
|
||||||
|
>noktarg1
|
||||||
|
>0 1
|
||||||
|
|
||||||
|
- showopt() { setopt | egrep 'localoptions|ksharrays'; }
|
||||||
|
+ showopt() { echo ${(FM)${(@f)"$(setopt)"}:#(localoptions|ksharrays)*} }
|
||||||
|
f1() { setopt localoptions ksharrays; showopt }
|
||||||
|
f2() { setopt ksharrays; showopt }
|
||||||
|
setopt kshoptionprint
|
||||||
|
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
|
||||||
|
index c9c844d..ca13419 100644
|
||||||
|
--- a/Test/V07pcre.ztst
|
||||||
|
+++ b/Test/V07pcre.ztst
|
||||||
|
@@ -6,20 +6,8 @@
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
setopt rematch_pcre
|
||||||
|
-# Find a UTF-8 locale.
|
||||||
|
- setopt multibyte
|
||||||
|
-# Don't let LC_* override our choice of locale.
|
||||||
|
- unset -m LC_\*
|
||||||
|
- mb_ok=
|
||||||
|
- langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
|
||||||
|
- $(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
|
||||||
|
- for LANG in $langs; do
|
||||||
|
- if [[ é = ? ]]; then
|
||||||
|
- mb_ok=1
|
||||||
|
- break;
|
||||||
|
- fi
|
||||||
|
- done
|
||||||
|
- if [[ -z $mb_ok ]]; then
|
||||||
|
+ LANG=$(ZTST_find_UTF8)
|
||||||
|
+ if [[ -z $LANG ]]; then
|
||||||
|
ZTST_unimplemented="no UTF-8 locale or multibyte mode is not implemented"
|
||||||
|
else
|
||||||
|
print -u $ZTST_fd Testing PCRE multibyte with locale $LANG
|
||||||
|
diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst
|
||||||
|
index 8146d67..203c13c 100644
|
||||||
|
--- a/Test/X02zlevi.ztst
|
||||||
|
+++ b/Test/X02zlevi.ztst
|
||||||
|
@@ -1,16 +1,7 @@
|
||||||
|
# Tests of the vi mode of ZLE
|
||||||
|
|
||||||
|
%prep
|
||||||
|
- unset -m LC_\*
|
||||||
|
- ZSH_TEST_LANG=
|
||||||
|
- langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
|
||||||
|
- $(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
|
||||||
|
- for LANG in $langs; do
|
||||||
|
- if [[ é = ? ]]; then
|
||||||
|
- ZSH_TEST_LANG=$LANG
|
||||||
|
- break;
|
||||||
|
- fi
|
||||||
|
- done
|
||||||
|
+ ZSH_TEST_LANG=$(ZTST_find_UTF8)
|
||||||
|
if ( zmodload zsh/zpty 2>/dev/null ); then
|
||||||
|
. $ZTST_srcdir/comptest
|
||||||
|
comptestinit -v -z $ZTST_testdir/../Src/zsh
|
||||||
|
diff --git a/Test/X03zlebindkey.ztst b/Test/X03zlebindkey.ztst
|
||||||
|
index 43692a8..5277332 100644
|
||||||
|
--- a/Test/X03zlebindkey.ztst
|
||||||
|
+++ b/Test/X03zlebindkey.ztst
|
||||||
|
@@ -3,16 +3,7 @@
|
||||||
|
# into bindings. The latter is particularly tricky with multibyte sequences.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
- unset -m LC_\*
|
||||||
|
- ZSH_TEST_LANG=
|
||||||
|
- langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
|
||||||
|
- $(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
|
||||||
|
- for LANG in $langs; do
|
||||||
|
- if [[ é = ? ]]; then
|
||||||
|
- ZSH_TEST_LANG=$LANG
|
||||||
|
- break;
|
||||||
|
- fi
|
||||||
|
- done
|
||||||
|
+ ZSH_TEST_LANG=$(ZTST_find_UTF8)
|
||||||
|
if ( zmodload zsh/zpty 2>/dev/null ); then
|
||||||
|
. $ZTST_srcdir/comptest
|
||||||
|
comptestinit -z $ZTST_testdir/../Src/zsh
|
||||||
|
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
|
||||||
|
index 6af0efc..f976f9f 100644
|
||||||
|
--- a/Test/Y01completion.ztst
|
||||||
|
+++ b/Test/Y01completion.ztst
|
||||||
|
@@ -1,16 +1,7 @@
|
||||||
|
# Tests for completion system.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
- unset -m LC_\*
|
||||||
|
- ZSH_TEST_LANG=
|
||||||
|
- langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
|
||||||
|
- $(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
|
||||||
|
- for LANG in $langs; do
|
||||||
|
- if [[ é = ? ]]; then
|
||||||
|
- ZSH_TEST_LANG=$LANG
|
||||||
|
- break;
|
||||||
|
- fi
|
||||||
|
- done
|
||||||
|
+ ZSH_TEST_LANG=$(ZTST_find_UTF8)
|
||||||
|
if ( zmodload zsh/zpty 2>/dev/null ); then
|
||||||
|
. $ZTST_srcdir/comptest
|
||||||
|
mkdir comp.tmp
|
||||||
|
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
|
||||||
|
index aca275c..d95b726 100755
|
||||||
|
--- a/Test/ztst.zsh
|
||||||
|
+++ b/Test/ztst.zsh
|
||||||
|
@@ -37,6 +37,21 @@ emulate -R zsh
|
||||||
|
# LANG must be passed to child zsh.
|
||||||
|
export LANG
|
||||||
|
|
||||||
|
+# find UTF-8 locale
|
||||||
|
+ZTST_find_UTF8 () {
|
||||||
|
+ setopt multibyte
|
||||||
|
+ # Don't let LC_* override our choice of locale.
|
||||||
|
+ unset -m LC_\*
|
||||||
|
+ local langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
|
||||||
|
+ ${(M)$(locale -a 2>/dev/null):#*.(utf8|UTF-8)})
|
||||||
|
+ for LANG in $langs; do
|
||||||
|
+ if [[ é = ? ]]; then
|
||||||
|
+ echo $LANG
|
||||||
|
+ return
|
||||||
|
+ fi
|
||||||
|
+ done
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
# Don't propagate variables that are set by default in the shell.
|
||||||
|
typeset +x WORDCHARS
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
@ -0,0 +1,541 @@
|
|||||||
|
commit ab4d62eb975a4c4c51dd35822665050e2ddc6918
|
||||||
|
Author: Nicholas Vinson <nvinson234@gmail.com>
|
||||||
|
Date: Wed Sep 21 09:22:11 2022 +0900
|
||||||
|
|
||||||
|
50641: use 'int main()' in test C-codes in configure
|
||||||
|
|
||||||
|
diff --git a/aczsh.m4 b/aczsh.m4
|
||||||
|
index 1209ac614..b31236020 100644
|
||||||
|
--- a/aczsh.m4
|
||||||
|
+++ b/aczsh.m4
|
||||||
|
@@ -44,6 +44,7 @@ AC_DEFUN(zsh_64_BIT_TYPE,
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
$1 foo = 0;
|
||||||
|
@@ -118,7 +119,6 @@ AC_TRY_COMMAND($DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS
|
||||||
|
AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&AS_MESSAGE_LOG_FD) &&
|
||||||
|
AC_TRY_COMMAND($DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&AS_MESSAGE_LOG_FD); then
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -146,29 +146,30 @@ char *zsh_gl_sym_addr ;
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
void *handle1, *handle2;
|
||||||
|
void *(*zsh_getaddr1)(), *(*zsh_getaddr2)();
|
||||||
|
void *sym1, *sym2;
|
||||||
|
handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle1) exit(1);
|
||||||
|
+ if(!handle1) return(1);
|
||||||
|
handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle2) exit(1);
|
||||||
|
+ if(!handle2) return(1);
|
||||||
|
zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
|
||||||
|
zsh_getaddr2 = (void *(*)()) dlsym(handle2, "${us}zsh_getaddr2");
|
||||||
|
sym1 = zsh_getaddr1();
|
||||||
|
sym2 = zsh_getaddr2();
|
||||||
|
- if(!sym1 || !sym2) exit(1);
|
||||||
|
- if(sym1 != sym2) exit(1);
|
||||||
|
+ if(!sym1 || !sym2) return(1);
|
||||||
|
+ if(sym1 != sym2) return(1);
|
||||||
|
dlclose(handle1);
|
||||||
|
handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle1) exit(1);
|
||||||
|
+ if(!handle1) return(1);
|
||||||
|
zsh_getaddr1 = (void *(*)()) dlsym(handle1, "${us}zsh_getaddr1");
|
||||||
|
sym1 = zsh_getaddr1();
|
||||||
|
- if(!sym1) exit(1);
|
||||||
|
- if(sym1 != sym2) exit(1);
|
||||||
|
- exit(0);
|
||||||
|
+ if(!sym1) return(1);
|
||||||
|
+ if(sym1 != sym2) return(1);
|
||||||
|
+ return(0);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_shared_$1=yes],
|
||||||
|
[zsh_cv_shared_$1=no],
|
||||||
|
@@ -200,7 +201,6 @@ AC_TRY_COMMAND($DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS
|
||||||
|
AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&AS_MESSAGE_LOG_FD) &&
|
||||||
|
AC_TRY_COMMAND($DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&AS_MESSAGE_LOG_FD); then
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -228,19 +228,19 @@ char *zsh_gl_sym_addr ;
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
void *handle1, *handle2;
|
||||||
|
int (*fred1)(), (*fred2)();
|
||||||
|
handle1 = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle1) exit(1);
|
||||||
|
+ if(!handle1) return(1);
|
||||||
|
handle2 = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle2) exit(1);
|
||||||
|
+ if(!handle2) return(1);
|
||||||
|
fred1 = (int (*)()) dlsym(handle1, "${us}fred");
|
||||||
|
fred2 = (int (*)()) dlsym(handle2, "${us}fred");
|
||||||
|
- if(!fred1 || !fred2) exit(1);
|
||||||
|
- exit((*fred1)() != 42 || (*fred2)() != 69);
|
||||||
|
+ if(!fred1 || !fred2) return(1);
|
||||||
|
+ return((*fred1)() != 42 || (*fred2)() != 69);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_dynamic_clash_ok=yes],
|
||||||
|
[zsh_cv_sys_dynamic_clash_ok=no],
|
||||||
|
@@ -276,7 +276,6 @@ AC_TRY_COMMAND($DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS
|
||||||
|
AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest2.c 1>&AS_MESSAGE_LOG_FD) &&
|
||||||
|
AC_TRY_COMMAND($DLLD -o conftest2.$DL_EXT $LDFLAGS $DLLDFLAGS conftest2.o $LIBS 1>&AS_MESSAGE_LOG_FD); then
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -304,17 +303,18 @@ char *zsh_gl_sym_addr ;
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
void *handle;
|
||||||
|
int (*barneysym)();
|
||||||
|
handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle) exit(1);
|
||||||
|
+ if(!handle) return(1);
|
||||||
|
handle = dlopen("./conftest2.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle) exit(1);
|
||||||
|
+ if(!handle) return(1);
|
||||||
|
barneysym = (int (*)()) dlsym(handle, "${us}barney");
|
||||||
|
- if(!barneysym) exit(1);
|
||||||
|
- exit((*barneysym)() != 69);
|
||||||
|
+ if(!barneysym) return(1);
|
||||||
|
+ return((*barneysym)() != 69);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_dynamic_rtld_global=yes],
|
||||||
|
[zsh_cv_sys_dynamic_rtld_global=no],
|
||||||
|
@@ -346,7 +346,6 @@ AC_TRY_COMMAND($DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS conftest1.o $LIBS
|
||||||
|
save_ldflags=$LDFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -374,15 +373,16 @@ char *zsh_gl_sym_addr ;
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
void *handle;
|
||||||
|
int (*barneysym)();
|
||||||
|
handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle) exit(1);
|
||||||
|
+ if(!handle) return(1);
|
||||||
|
barneysym = (int (*)()) dlsym(handle, "${us}barney");
|
||||||
|
- if(!barneysym) exit(1);
|
||||||
|
- exit((*barneysym)() != 69);
|
||||||
|
+ if(!barneysym) return(1);
|
||||||
|
+ return((*barneysym)() != 69);
|
||||||
|
}
|
||||||
|
|
||||||
|
int fred () { return 42; }
|
||||||
|
@@ -420,7 +420,6 @@ elif
|
||||||
|
save_ldflags=$LDFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS -s"
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -448,15 +447,16 @@ char *zsh_gl_sym_addr ;
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
void *handle;
|
||||||
|
int (*barneysym)();
|
||||||
|
handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle) exit(1);
|
||||||
|
+ if(!handle) return(1);
|
||||||
|
barneysym = (int (*)()) dlsym(handle, "${us}barney");
|
||||||
|
- if(!barneysym) exit(1);
|
||||||
|
- exit((*barneysym)() != 69);
|
||||||
|
+ if(!barneysym) return(1);
|
||||||
|
+ return((*barneysym)() != 69);
|
||||||
|
}
|
||||||
|
|
||||||
|
int fred () { return 42; }
|
||||||
|
@@ -488,7 +488,6 @@ echo 'int fred () { return 42; }' > conftest1.c
|
||||||
|
if AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest1.c 1>&AS_MESSAGE_LOG_FD) &&
|
||||||
|
AC_TRY_COMMAND($DLLD -o conftest1.$DL_EXT $LDFLAGS $DLLDFLAGS -s conftest1.o $LIBS 1>&AS_MESSAGE_LOG_FD); then
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -516,15 +515,16 @@ char *zsh_gl_sym_addr ;
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+int
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
void *handle;
|
||||||
|
int (*fredsym)();
|
||||||
|
handle = dlopen("./conftest1.$DL_EXT", RTLD_LAZY | RTLD_GLOBAL);
|
||||||
|
- if(!handle) exit(1);
|
||||||
|
+ if(!handle) return(1);
|
||||||
|
fredsym = (int (*)()) dlsym(handle, "${us}fred");
|
||||||
|
- if(!fredsym) exit(1);
|
||||||
|
- exit((*fredsym)() != 42);
|
||||||
|
+ if(!fredsym) return(1);
|
||||||
|
+ return((*fredsym)() != 42);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_dynamic_strip_lib=yes],
|
||||||
|
[zsh_cv_sys_dynamic_strip_lib=no],
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 890ef8dd2..074141d38 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -585,7 +585,7 @@ fi
|
||||||
|
dnl Checking if compiler correctly cast signed to unsigned.
|
||||||
|
AC_CACHE_CHECK(if signed to unsigned casting is broken,
|
||||||
|
zsh_cv_c_broken_signed_to_unsigned_casting,
|
||||||
|
-[AC_RUN_IFELSE([AC_LANG_SOURCE([[main(){return((int)(unsigned char)((char) -1) == 255);}]])],[zsh_cv_c_broken_signed_to_unsigned_casting=yes],[zsh_cv_c_broken_signed_to_unsigned_casting=no],[zsh_cv_c_broken_signed_to_unsigned_casting=no])])
|
||||||
|
+[AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(){return((int)(unsigned char)((char) -1) == 255);}]])],[zsh_cv_c_broken_signed_to_unsigned_casting=yes],[zsh_cv_c_broken_signed_to_unsigned_casting=no],[zsh_cv_c_broken_signed_to_unsigned_casting=no])])
|
||||||
|
AH_TEMPLATE([BROKEN_SIGNED_TO_UNSIGNED_CASTING],
|
||||||
|
[Define to 1 if compiler incorrectly cast signed to unsigned.])
|
||||||
|
if test x$zsh_cv_c_broken_signed_to_unsigned_casting = xyes; then
|
||||||
|
@@ -1046,7 +1046,7 @@ else
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
-main() { return sizeof(off_t) < 8; }
|
||||||
|
+int main() { return sizeof(off_t) < 8; }
|
||||||
|
]])],[zsh_cv_off_t_is_64_bit=yes],[zsh_cv_off_t_is_64_bit=no],[zsh_cv_off_t_is_64_bit=no])])
|
||||||
|
if test x$zsh_cv_off_t_is_64_bit = xyes; then
|
||||||
|
AC_DEFINE(OFF_T_IS_64_BIT)
|
||||||
|
@@ -1056,7 +1056,7 @@ main() { return sizeof(off_t) < 8; }
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
-main() { return sizeof(ino_t) < 8; }
|
||||||
|
+int main() { return sizeof(ino_t) < 8; }
|
||||||
|
]])],[zsh_cv_ino_t_is_64_bit=yes],[zsh_cv_ino_t_is_64_bit=no],[zsh_cv_ino_t_is_64_bit=no])])
|
||||||
|
if test x$zsh_cv_ino_t_is_64_bit = xyes; then
|
||||||
|
AC_DEFINE(INO_T_IS_64_BIT)
|
||||||
|
@@ -1369,7 +1369,7 @@ zsh_cv_func_realpath_accepts_null,
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <limits.h>
|
||||||
|
],[
|
||||||
|
-exit(!realpath("/", (char*)0));
|
||||||
|
+return(!realpath("/", (char*)0));
|
||||||
|
])],
|
||||||
|
[zsh_cv_func_realpath_accepts_null=yes],
|
||||||
|
[zsh_cv_func_realpath_accepts_null=no],
|
||||||
|
@@ -1393,10 +1393,9 @@ AC_CACHE_CHECK(if tgetent accepts NULL,
|
||||||
|
zsh_cv_func_tgetent_accepts_null,
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
int tgetent(char *, char *);
|
||||||
|
char *tgetstr(char *, char **);
|
||||||
|
-main()
|
||||||
|
+int main()
|
||||||
|
{
|
||||||
|
char buf[4096];
|
||||||
|
int r1 = tgetent(buf, "vt100");
|
||||||
|
@@ -1407,7 +1406,7 @@ main()
|
||||||
|
tgetstr("cl", &u);
|
||||||
|
creat("conftest.tgetent", 0640);
|
||||||
|
}
|
||||||
|
- exit((r1 != r2) || r2 == -1);
|
||||||
|
+ return((r1 != r2) || r2 == -1);
|
||||||
|
}
|
||||||
|
]])],[if test -f conftest.tgetent; then
|
||||||
|
zsh_cv_func_tgetent_accepts_null=yes
|
||||||
|
@@ -1421,10 +1420,9 @@ AC_CACHE_CHECK(if tgetent returns 0 on success,
|
||||||
|
zsh_cv_func_tgetent_zero_success,
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
int tgetent(char *, char*);
|
||||||
|
char *tgetstr(char *, char **);
|
||||||
|
-main()
|
||||||
|
+int main()
|
||||||
|
{
|
||||||
|
char buf[4096];
|
||||||
|
int r1 = tgetent(buf, "!@#$%^&*");
|
||||||
|
@@ -1435,7 +1433,7 @@ main()
|
||||||
|
tgetstr("cl", &u);
|
||||||
|
creat("conftest.tgetent0", 0640);
|
||||||
|
}
|
||||||
|
- exit(r1 == r2);
|
||||||
|
+ return(r1 == r2);
|
||||||
|
}
|
||||||
|
]])],[if test -f conftest.tgetent0; then
|
||||||
|
zsh_cv_func_tgetent_zero_success=yes
|
||||||
|
@@ -1869,8 +1867,7 @@ zsh_cv_rlim_t_is_longer,
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/resource.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
-main(){struct rlimit r;exit(sizeof(r.rlim_cur) <= sizeof(long));}]])],[zsh_cv_rlim_t_is_longer=yes],[zsh_cv_rlim_t_is_longer=no],[zsh_cv_rlim_t_is_longer=yes])])
|
||||||
|
+int main(){struct rlimit r;return(sizeof(r.rlim_cur) <= sizeof(long));}]])],[zsh_cv_rlim_t_is_longer=yes],[zsh_cv_rlim_t_is_longer=no],[zsh_cv_rlim_t_is_longer=yes])])
|
||||||
|
if test x$zsh_cv_rlim_t_is_longer = xyes; then
|
||||||
|
AC_CACHE_CHECK(if rlim_t is a quad,
|
||||||
|
zsh_cv_rlim_t_is_quad_t,
|
||||||
|
@@ -1880,13 +1877,12 @@ if test x$zsh_cv_rlim_t_is_longer = xyes; then
|
||||||
|
#endif
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
-main() {
|
||||||
|
+int main() {
|
||||||
|
struct rlimit r;
|
||||||
|
char buf[20];
|
||||||
|
r.rlim_cur = 0;
|
||||||
|
sprintf(buf, "%qd", r.rlim_cur);
|
||||||
|
- exit(strcmp(buf, "0"));
|
||||||
|
+ return(strcmp(buf, "0"));
|
||||||
|
}]])],[zsh_cv_rlim_t_is_quad_t=yes],[zsh_cv_rlim_t_is_quad_t=no],[zsh_cv_rlim_t_is_quad_t=no])])
|
||||||
|
if test x$zsh_cv_rlim_t_is_quad_t = xyes; then
|
||||||
|
AC_DEFINE(RLIM_T_IS_QUAD_T)
|
||||||
|
@@ -1903,8 +1899,7 @@ else
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/resource.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
- main(){struct rlimit r;r.rlim_cur=-1;exit(r.rlim_cur<0);}]])],[zsh_cv_type_rlim_t_is_unsigned=yes],[zsh_cv_type_rlim_t_is_unsigned=no],[zsh_cv_type_rlim_t_is_unsigned=no])])
|
||||||
|
+ int main(){struct rlimit r;r.rlim_cur=-1;return(r.rlim_cur<0);}]])],[zsh_cv_type_rlim_t_is_unsigned=yes],[zsh_cv_type_rlim_t_is_unsigned=no],[zsh_cv_type_rlim_t_is_unsigned=no])])
|
||||||
|
if test x$zsh_cv_type_rlim_t_is_unsigned = xyes; then
|
||||||
|
AC_DEFINE(RLIM_T_IS_UNSIGNED)
|
||||||
|
DEFAULT_RLIM_T="unsigned $DEFAULT_RLIM_T"
|
||||||
|
@@ -2187,9 +2182,8 @@ zsh_cv_sys_fifo,
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
-main()
|
||||||
|
+int main()
|
||||||
|
{
|
||||||
|
char c;
|
||||||
|
int fd;
|
||||||
|
@@ -2200,18 +2194,18 @@ main()
|
||||||
|
#else
|
||||||
|
if(mknod("/tmp/fifo$$", 0010600, 0) < 0)
|
||||||
|
#endif
|
||||||
|
- exit(1);
|
||||||
|
+ return(1);
|
||||||
|
pid = fork();
|
||||||
|
if(pid < 0)
|
||||||
|
- exit(1);
|
||||||
|
+ return(1);
|
||||||
|
if(pid) {
|
||||||
|
fd = open("/tmp/fifo$$", O_RDONLY);
|
||||||
|
- exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
|
||||||
|
+ return(fd < 0 || read(fd, &c, 1) != 1 || c != 'x');
|
||||||
|
}
|
||||||
|
fd = open("/tmp/fifo$$", O_WRONLY);
|
||||||
|
ret = (fd < 0 || write(fd, "x", 1) < 1);
|
||||||
|
unlink("/tmp/fifo$$");
|
||||||
|
- exit(ret);
|
||||||
|
+ return(ret);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_fifo=yes],[zsh_cv_sys_fifo=no],[zsh_cv_sys_fifo=yes])
|
||||||
|
])
|
||||||
|
@@ -2289,8 +2283,7 @@ zsh_cv_sys_link,
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
-main()
|
||||||
|
+int main()
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
char *tmpfile, *newfile;
|
||||||
|
@@ -2299,11 +2292,11 @@ main()
|
||||||
|
unlink(tmpfile);
|
||||||
|
unlink(newfile);
|
||||||
|
if(creat(tmpfile, 0644) < 0)
|
||||||
|
- exit(1);
|
||||||
|
+ return(1);
|
||||||
|
ret = link(tmpfile, newfile);
|
||||||
|
unlink(tmpfile);
|
||||||
|
unlink(newfile);
|
||||||
|
- exit(ret<0);
|
||||||
|
+ return(ret<0);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_link=yes],[zsh_cv_sys_link=no],[zsh_cv_sys_link=yes])])
|
||||||
|
AH_TEMPLATE([HAVE_LINK],
|
||||||
|
@@ -2322,12 +2315,11 @@ zsh_cv_sys_killesrch,
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <errno.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
-main()
|
||||||
|
+int main()
|
||||||
|
{
|
||||||
|
int pid = (getpid() + 10000) & 0xffffff;
|
||||||
|
while (pid && (kill(pid, 0) == 0 || errno != ESRCH)) pid >>= 1;
|
||||||
|
- exit(errno!=ESRCH);
|
||||||
|
+ return(errno!=ESRCH);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_killesrch=yes],[zsh_cv_sys_killesrch=no],[zsh_cv_sys_killesrch=yes])])
|
||||||
|
AH_TEMPLATE([BROKEN_KILL_ESRCH],
|
||||||
|
@@ -2348,12 +2340,11 @@ if test x$signals_style = xPOSIX_SIGNALS; then
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <signal.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
int child=0;
|
||||||
|
void handler(sig)
|
||||||
|
int sig;
|
||||||
|
{if(sig==SIGCHLD) child=1;}
|
||||||
|
-main() {
|
||||||
|
+int main() {
|
||||||
|
struct sigaction act;
|
||||||
|
sigset_t set;
|
||||||
|
int pid, ret;
|
||||||
|
@@ -2368,7 +2359,7 @@ main() {
|
||||||
|
if(pid>0) {
|
||||||
|
sigemptyset(&set);
|
||||||
|
ret=sigsuspend(&set);
|
||||||
|
- exit(child==0);
|
||||||
|
+ return(child==0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_sigsuspend=yes],[zsh_cv_sys_sigsuspend=no],[zsh_cv_sys_sigsuspend=yes])])
|
||||||
|
@@ -2400,15 +2391,14 @@ case "x$zsh_working_tcsetpgrp" in
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
-main() {
|
||||||
|
+int main() {
|
||||||
|
int fd;
|
||||||
|
int ret;
|
||||||
|
fd=open("/dev/tty", O_RDWR);
|
||||||
|
- if (fd < 0) exit(2);
|
||||||
|
+ if (fd < 0) return(2);
|
||||||
|
ret=tcsetpgrp(fd, tcgetpgrp(fd));
|
||||||
|
- if (ret < 0) exit(1);
|
||||||
|
- exit(0);
|
||||||
|
+ if (ret < 0) return(1);
|
||||||
|
+ return(0);
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_tcsetpgrp=yes],[
|
||||||
|
case $? in
|
||||||
|
@@ -2448,7 +2438,7 @@ if test x$ac_cv_func_getpwnam = xyes; then
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
-main() {
|
||||||
|
+int main() {
|
||||||
|
struct passwd *pw1, *pw2;
|
||||||
|
char buf[1024], name[1024];
|
||||||
|
sprintf(buf, "%d:%d", getpid(), rand());
|
||||||
|
@@ -2456,7 +2446,7 @@ main() {
|
||||||
|
if (pw1) strcpy(name, pw1->pw_name);
|
||||||
|
sprintf(buf, "%d:%d", rand(), getpid());
|
||||||
|
pw2=getpwnam(buf);
|
||||||
|
- exit(pw1!=0 && pw2!=0 && !strcmp(name, pw2->pw_name));
|
||||||
|
+ return(pw1!=0 && pw2!=0 && !strcmp(name, pw2->pw_name));
|
||||||
|
}
|
||||||
|
]])],[zsh_cv_sys_getpwnam_faked=no],[zsh_cv_sys_getpwnam_faked=yes],[zsh_cv_sys_getpwnam_faked=no])])
|
||||||
|
if test x$zsh_cv_sys_getpwnam_faked = xyes; then
|
||||||
|
@@ -2775,20 +2765,17 @@ elif test "x$dynamic" = xyes; then
|
||||||
|
zsh_cv_sys_elf,
|
||||||
|
[AC_RUN_IFELSE([AC_LANG_SOURCE([[/* Test for whether ELF binaries are produced */
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
-main(argc, argv)
|
||||||
|
-int argc;
|
||||||
|
-char *argv[];
|
||||||
|
+int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
char b[4];
|
||||||
|
int i = open(argv[0],O_RDONLY);
|
||||||
|
if(i == -1)
|
||||||
|
- exit(1); /* fail */
|
||||||
|
+ return(1); /* fail */
|
||||||
|
if(read(i,b,4)==4 && b[0]==127 && b[1]=='E' && b[2]=='L' && b[3]=='F')
|
||||||
|
- exit(0); /* succeed (yes, it's ELF) */
|
||||||
|
+ return(0); /* succeed (yes, it's ELF) */
|
||||||
|
else
|
||||||
|
- exit(1); /* fail */
|
||||||
|
+ return(1); /* fail */
|
||||||
|
}]])],[zsh_cv_sys_elf=yes],[zsh_cv_sys_elf=no],[zsh_cv_sys_elf=yes])])
|
||||||
|
|
||||||
|
# We use [0-9]* in case statements, so need to change quoting
|
||||||
|
@@ -2924,13 +2911,12 @@ LDFLAGS="$old_LDFLAGS")
|
||||||
|
AC_CACHE_CHECK(if your dlsym() needs a leading underscore,
|
||||||
|
zsh_cv_func_dlsym_needs_underscore,
|
||||||
|
[echo failed >conftestval && cat >conftest.c <<EOM
|
||||||
|
-fred () { }
|
||||||
|
+void fred () { }
|
||||||
|
EOM
|
||||||
|
AC_TRY_COMMAND($CC -c $CFLAGS $CPPFLAGS $DLCFLAGS conftest.c 1>&AS_MESSAGE_LOG_FD) &&
|
||||||
|
AC_TRY_COMMAND($DLLD $LDFLAGS $DLLDFLAGS -o conftest.$DL_EXT conftest.o 1>&AS_MESSAGE_LOG_FD) &&
|
||||||
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
|
#include <stdio.h>
|
||||||
|
-#include <stdlib.h>
|
||||||
|
#ifdef HPUX10DYNAMIC
|
||||||
|
#include <dl.h>
|
||||||
|
#define RTLD_LAZY BIND_DEFERRED
|
||||||
|
@@ -2957,16 +2943,16 @@ char *zsh_gl_sym_addr ;
|
||||||
|
|
||||||
|
extern int fred() ;
|
||||||
|
|
||||||
|
-main()
|
||||||
|
+int main()
|
||||||
|
{
|
||||||
|
void * handle ;
|
||||||
|
void * symbol ;
|
||||||
|
FILE *f=fopen("conftestval", "w");
|
||||||
|
- if (!f) exit(1);
|
||||||
|
+ if (!f) return(1);
|
||||||
|
handle = dlopen("./conftest.$DL_EXT", RTLD_LAZY) ;
|
||||||
|
if (handle == NULL) {
|
||||||
|
fprintf (f, "dlopen failed") ;
|
||||||
|
- exit(1);
|
||||||
|
+ return(1);
|
||||||
|
}
|
||||||
|
symbol = dlsym(handle, "fred") ;
|
||||||
|
if (symbol == NULL) {
|
||||||
|
@@ -2974,13 +2960,13 @@ main()
|
||||||
|
symbol = dlsym(handle, "_fred") ;
|
||||||
|
if (symbol == NULL) {
|
||||||
|
fprintf (f, "dlsym failed") ;
|
||||||
|
- exit(1);
|
||||||
|
+ return(1);
|
||||||
|
}
|
||||||
|
fprintf (f, "yes") ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
fprintf (f, "no") ;
|
||||||
|
- exit(0);
|
||||||
|
+ return(0);
|
||||||
|
}]])],[zsh_cv_func_dlsym_needs_underscore=`cat conftestval`],[zsh_cv_func_dlsym_needs_underscore=failed
|
||||||
|
dynamic=no],[zsh_cv_func_dlsym_needs_underscore=no])])
|
||||||
|
if test "x$zsh_cv_func_dlsym_needs_underscore" = xyes; then
|
@ -0,0 +1,69 @@
|
|||||||
|
From a84fdd7c8f77935ecce99ff2b0bdba738821ed79 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
Date: Mon, 26 Jun 2023 17:13:04 +0900
|
||||||
|
Subject: [PATCH] 51889: fix module loading problem with full RELRO
|
||||||
|
|
||||||
|
If full RELRO (relocation read-only, one of the security enhancement
|
||||||
|
methods for ELF-based systems) is used when building zsh (as in binary
|
||||||
|
packages of most Linuxes), loading a module (e.g. zsh/zftp) fails unless
|
||||||
|
all the modules it depends on are already loaded. With this patch the
|
||||||
|
necessary modules are automatically loaded.
|
||||||
|
|
||||||
|
Upstream-commit: a84fdd7c8f77935ecce99ff2b0bdba738821ed79
|
||||||
|
Signed-off-by: Lukáš Zaoral <lzaoral@redhat.com>
|
||||||
|
---
|
||||||
|
Src/Modules/zftp.c | 2 +-
|
||||||
|
Src/mkbltnmlst.sh | 24 ++++++++++++++++++++++++
|
||||||
|
2 files changed, 25 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
|
||||||
|
index 49b3ffa89..47a5e9de9 100644
|
||||||
|
--- a/Src/Modules/zftp.c
|
||||||
|
+++ b/Src/Modules/zftp.c
|
||||||
|
@@ -3172,7 +3172,7 @@ static struct features module_features = {
|
||||||
|
int
|
||||||
|
setup_(UNUSED(Module m))
|
||||||
|
{
|
||||||
|
- return (require_module("zsh/net/tcp", NULL, 0) == 1);
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**/
|
||||||
|
diff --git a/Src/mkbltnmlst.sh b/Src/mkbltnmlst.sh
|
||||||
|
index c4611d8b3..067ecdaf9 100644
|
||||||
|
--- a/Src/mkbltnmlst.sh
|
||||||
|
+++ b/Src/mkbltnmlst.sh
|
||||||
|
@@ -76,6 +76,30 @@ for x_mod in $x_mods; do
|
||||||
|
test "x$linked" = xno && echo "#endif"
|
||||||
|
done
|
||||||
|
|
||||||
|
+# if dynamic module 'mod' with load=no has moddeps in its .mdd,
|
||||||
|
+# then output add_dep(mod, dep) for each 'dep' in moddeps.
|
||||||
|
+dyn_mods="`grep ' link=dynamic .* load=no ' $CFMOD | \
|
||||||
|
+ sed -e '/^#/d' -e 's/ .*/ /' -e 's/^name=/ /'`"
|
||||||
|
+
|
||||||
|
+for mod in $dyn_mods; do
|
||||||
|
+ modfile="`grep '^name='$mod' ' $CFMOD | \
|
||||||
|
+ sed -e 's/^.* modfile=//' -e 's/ .*//'`"
|
||||||
|
+ if test "x$modfile" = x; then
|
||||||
|
+ echo >&2 "WARNING: no name for \`$mod' in $CFMOD (ignored)"
|
||||||
|
+ continue
|
||||||
|
+ fi
|
||||||
|
+ unset moddeps
|
||||||
|
+ . $srcdir/../$modfile
|
||||||
|
+ if test -n "$moddeps"; then
|
||||||
|
+ echo '#ifdef DYNAMIC'
|
||||||
|
+ echo "/* non-linked-in known module \`$mod' */"
|
||||||
|
+ for dep in $moddeps; do
|
||||||
|
+ echo " add_dep(\"$mod\", \"$dep\");"
|
||||||
|
+ done
|
||||||
|
+ echo '#endif'
|
||||||
|
+ fi
|
||||||
|
+done
|
||||||
|
+
|
||||||
|
echo
|
||||||
|
done_mods=" "
|
||||||
|
for bin_mod in $bin_mods; do
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
@ -0,0 +1,64 @@
|
|||||||
|
From 1b421e4978440234fb73117c8505dad1ccc68d46 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
Date: Mon, 26 Sep 2022 10:52:50 +0900
|
||||||
|
Subject: [PATCH] 50658 + test: Enable to switch between C/UTF-8 locales in
|
||||||
|
PCRE
|
||||||
|
|
||||||
|
---
|
||||||
|
Src/Modules/pcre.c | 10 ++--------
|
||||||
|
Test/V07pcre.ztst | 11 +++++++++++
|
||||||
|
2 files changed, 13 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c
|
||||||
|
index 6289e003e..46875a59b 100644
|
||||||
|
--- a/Src/Modules/pcre.c
|
||||||
|
+++ b/Src/Modules/pcre.c
|
||||||
|
@@ -47,8 +47,6 @@ zpcre_utf8_enabled(void)
|
||||||
|
#if defined(MULTIBYTE_SUPPORT) && defined(HAVE_NL_LANGINFO) && defined(CODESET)
|
||||||
|
static int have_utf8_pcre = -1;
|
||||||
|
|
||||||
|
- /* value can toggle based on MULTIBYTE, so don't
|
||||||
|
- * be too eager with caching */
|
||||||
|
if (have_utf8_pcre < -1)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
@@ -56,15 +54,11 @@ zpcre_utf8_enabled(void)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if ((have_utf8_pcre == -1) &&
|
||||||
|
- (!strcmp(nl_langinfo(CODESET), "UTF-8"))) {
|
||||||
|
-
|
||||||
|
- if (pcre_config(PCRE_CONFIG_UTF8, &have_utf8_pcre))
|
||||||
|
+ (pcre_config(PCRE_CONFIG_UTF8, &have_utf8_pcre))) {
|
||||||
|
have_utf8_pcre = -2; /* erk, failed to ask */
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (have_utf8_pcre < 0)
|
||||||
|
- return 0;
|
||||||
|
- return have_utf8_pcre;
|
||||||
|
+ return (have_utf8_pcre == 1) && (!strcmp(nl_langinfo(CODESET), "UTF-8"));
|
||||||
|
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
|
||||||
|
index ca13419e5..22a0b64c7 100644
|
||||||
|
--- a/Test/V07pcre.ztst
|
||||||
|
+++ b/Test/V07pcre.ztst
|
||||||
|
@@ -162,3 +162,14 @@
|
||||||
|
echo $match[2] )
|
||||||
|
0:regression for segmentation fault, workers/38307
|
||||||
|
>test
|
||||||
|
+
|
||||||
|
+ LANG_SAVE=$LANG
|
||||||
|
+ [[ é =~ '^.\z' ]]; echo $?
|
||||||
|
+ LANG=C
|
||||||
|
+ [[ é =~ '^..\z' ]]; echo $?
|
||||||
|
+ LANG=$LANG_SAVE
|
||||||
|
+ [[ é =~ '^.\z' ]]; echo $?
|
||||||
|
+0:swich between C/UTF-8 locales
|
||||||
|
+>0
|
||||||
|
+>0
|
||||||
|
+>0
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
@ -0,0 +1,641 @@
|
|||||||
|
From b62e911341c8ec7446378b477c47da4256053dc0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Oliver Kiddle <opk@zsh.org>
|
||||||
|
Date: Sat, 13 May 2023 00:53:32 +0200
|
||||||
|
Subject: [PATCH] 51723: migrate pcre module to pcre2
|
||||||
|
|
||||||
|
Cherry-picked-by: Lukáš Zaoral <lzaoral@redhat.com>
|
||||||
|
---
|
||||||
|
Src/Modules/pcre.c | 223 ++++++++++++++++++---------------------------
|
||||||
|
Test/V07pcre.ztst | 13 ++-
|
||||||
|
configure.ac | 20 ++--
|
||||||
|
3 files changed, 109 insertions(+), 149 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c
|
||||||
|
index 46875a59b..079ecc2c5 100644
|
||||||
|
--- a/Src/Modules/pcre.c
|
||||||
|
+++ b/Src/Modules/pcre.c
|
||||||
|
@@ -34,11 +34,11 @@
|
||||||
|
#define CPCRE_PLAIN 0
|
||||||
|
|
||||||
|
/**/
|
||||||
|
-#if defined(HAVE_PCRE_COMPILE) && defined(HAVE_PCRE_EXEC)
|
||||||
|
-#include <pcre.h>
|
||||||
|
+#if defined(HAVE_PCRE2_COMPILE_8) && defined(HAVE_PCRE2_H)
|
||||||
|
+#define PCRE2_CODE_UNIT_WIDTH 8
|
||||||
|
+#include <pcre2.h>
|
||||||
|
|
||||||
|
-static pcre *pcre_pattern;
|
||||||
|
-static pcre_extra *pcre_hints;
|
||||||
|
+static pcre2_code *pcre_pattern;
|
||||||
|
|
||||||
|
/**/
|
||||||
|
static int
|
||||||
|
@@ -54,8 +54,8 @@ zpcre_utf8_enabled(void)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if ((have_utf8_pcre == -1) &&
|
||||||
|
- (pcre_config(PCRE_CONFIG_UTF8, &have_utf8_pcre))) {
|
||||||
|
- have_utf8_pcre = -2; /* erk, failed to ask */
|
||||||
|
+ (pcre2_config(PCRE2_CONFIG_UNICODE, &have_utf8_pcre))) {
|
||||||
|
+ have_utf8_pcre = -2; /* erk, failed to ask */
|
||||||
|
}
|
||||||
|
|
||||||
|
return (have_utf8_pcre == 1) && (!strcmp(nl_langinfo(CODESET), "UTF-8"));
|
||||||
|
@@ -69,115 +69,87 @@ zpcre_utf8_enabled(void)
|
||||||
|
static int
|
||||||
|
bin_pcre_compile(char *nam, char **args, Options ops, UNUSED(int func))
|
||||||
|
{
|
||||||
|
- int pcre_opts = 0, pcre_errptr, target_len;
|
||||||
|
- const char *pcre_error;
|
||||||
|
+ uint32_t pcre_opts = 0;
|
||||||
|
+ int target_len;
|
||||||
|
+ int pcre_error;
|
||||||
|
+ PCRE2_SIZE pcre_offset;
|
||||||
|
char *target;
|
||||||
|
|
||||||
|
- if(OPT_ISSET(ops,'a')) pcre_opts |= PCRE_ANCHORED;
|
||||||
|
- if(OPT_ISSET(ops,'i')) pcre_opts |= PCRE_CASELESS;
|
||||||
|
- if(OPT_ISSET(ops,'m')) pcre_opts |= PCRE_MULTILINE;
|
||||||
|
- if(OPT_ISSET(ops,'x')) pcre_opts |= PCRE_EXTENDED;
|
||||||
|
- if(OPT_ISSET(ops,'s')) pcre_opts |= PCRE_DOTALL;
|
||||||
|
+ if (OPT_ISSET(ops, 'a')) pcre_opts |= PCRE2_ANCHORED;
|
||||||
|
+ if (OPT_ISSET(ops, 'i')) pcre_opts |= PCRE2_CASELESS;
|
||||||
|
+ if (OPT_ISSET(ops, 'm')) pcre_opts |= PCRE2_MULTILINE;
|
||||||
|
+ if (OPT_ISSET(ops, 'x')) pcre_opts |= PCRE2_EXTENDED;
|
||||||
|
+ if (OPT_ISSET(ops, 's')) pcre_opts |= PCRE2_DOTALL;
|
||||||
|
|
||||||
|
if (zpcre_utf8_enabled())
|
||||||
|
- pcre_opts |= PCRE_UTF8;
|
||||||
|
-
|
||||||
|
-#ifdef HAVE_PCRE_STUDY
|
||||||
|
- if (pcre_hints)
|
||||||
|
-#ifdef PCRE_CONFIG_JIT
|
||||||
|
- pcre_free_study(pcre_hints);
|
||||||
|
-#else
|
||||||
|
- pcre_free(pcre_hints);
|
||||||
|
-#endif
|
||||||
|
- pcre_hints = NULL;
|
||||||
|
-#endif
|
||||||
|
+ pcre_opts |= PCRE2_UTF;
|
||||||
|
|
||||||
|
if (pcre_pattern)
|
||||||
|
- pcre_free(pcre_pattern);
|
||||||
|
+ pcre2_code_free(pcre_pattern);
|
||||||
|
pcre_pattern = NULL;
|
||||||
|
|
||||||
|
target = ztrdup(*args);
|
||||||
|
unmetafy(target, &target_len);
|
||||||
|
|
||||||
|
- if ((int)strlen(target) != target_len) {
|
||||||
|
- zwarnnam(nam, "embedded NULs in PCRE pattern terminate pattern");
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- pcre_pattern = pcre_compile(target, pcre_opts, &pcre_error, &pcre_errptr, NULL);
|
||||||
|
+ pcre_pattern = pcre2_compile((PCRE2_SPTR) target, (PCRE2_SIZE) target_len,
|
||||||
|
+ pcre_opts, &pcre_error, &pcre_offset, NULL);
|
||||||
|
|
||||||
|
free(target);
|
||||||
|
|
||||||
|
if (pcre_pattern == NULL)
|
||||||
|
{
|
||||||
|
- zwarnnam(nam, "error in regex: %s", pcre_error);
|
||||||
|
+ PCRE2_UCHAR buffer[256];
|
||||||
|
+ pcre2_get_error_message(pcre_error, buffer, sizeof(buffer));
|
||||||
|
+ zwarnnam(nam, "error in regex: %s", buffer);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-/**/
|
||||||
|
-#ifdef HAVE_PCRE_STUDY
|
||||||
|
-
|
||||||
|
/**/
|
||||||
|
static int
|
||||||
|
bin_pcre_study(char *nam, UNUSED(char **args), UNUSED(Options ops), UNUSED(int func))
|
||||||
|
{
|
||||||
|
- const char *pcre_error;
|
||||||
|
-
|
||||||
|
if (pcre_pattern == NULL)
|
||||||
|
{
|
||||||
|
zwarnnam(nam, "no pattern has been compiled for study");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- if (pcre_hints)
|
||||||
|
-#ifdef PCRE_CONFIG_JIT
|
||||||
|
- pcre_free_study(pcre_hints);
|
||||||
|
-#else
|
||||||
|
- pcre_free(pcre_hints);
|
||||||
|
-#endif
|
||||||
|
- pcre_hints = NULL;
|
||||||
|
|
||||||
|
- pcre_hints = pcre_study(pcre_pattern, 0, &pcre_error);
|
||||||
|
- if (pcre_error != NULL)
|
||||||
|
- {
|
||||||
|
- zwarnnam(nam, "error while studying regex: %s", pcre_error);
|
||||||
|
- return 1;
|
||||||
|
+ int jit = 0;
|
||||||
|
+ if (!pcre2_config(PCRE2_CONFIG_JIT, &jit) && jit) {
|
||||||
|
+ if (pcre2_jit_compile(pcre_pattern, PCRE2_JIT_COMPLETE) < 0) {
|
||||||
|
+ zwarnnam(nam, "error while studying regex");
|
||||||
|
+ return 1;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-/**/
|
||||||
|
-#else /* !HAVE_PCRE_STUDY */
|
||||||
|
-
|
||||||
|
-# define bin_pcre_study bin_notavail
|
||||||
|
-
|
||||||
|
-/**/
|
||||||
|
-#endif /* !HAVE_PCRE_STUDY */
|
||||||
|
-
|
||||||
|
-/**/
|
||||||
|
static int
|
||||||
|
-zpcre_get_substrings(char *arg, int *ovec, int captured_count, char *matchvar,
|
||||||
|
- char *substravar, int want_offset_pair, int matchedinarr,
|
||||||
|
- int want_begin_end)
|
||||||
|
+zpcre_get_substrings(char *arg, pcre2_match_data *mdata, int captured_count,
|
||||||
|
+ char *matchvar, char *substravar, int want_offset_pair,
|
||||||
|
+ int matchedinarr, int want_begin_end)
|
||||||
|
{
|
||||||
|
- char **captures, *match_all, **matches;
|
||||||
|
+ PCRE2_SIZE *ovec;
|
||||||
|
+ char *match_all, **matches;
|
||||||
|
char offset_all[50];
|
||||||
|
int capture_start = 1;
|
||||||
|
|
||||||
|
if (matchedinarr) {
|
||||||
|
- /* bash-style captures[0] entire-matched string in the array */
|
||||||
|
+ /* bash-style ovec[0] entire-matched string in the array */
|
||||||
|
capture_start = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
- /* captures[0] will be entire matched string, [1] first substring */
|
||||||
|
- if (!pcre_get_substring_list(arg, ovec, captured_count, (const char ***)&captures)) {
|
||||||
|
- int nelem = arrlen(captures)-1;
|
||||||
|
+ /* ovec[0] will be entire matched string, [1] first substring */
|
||||||
|
+ ovec = pcre2_get_ovector_pointer(mdata);
|
||||||
|
+ if (ovec) {
|
||||||
|
+ int nelem = captured_count - 1;
|
||||||
|
/* Set to the offsets of the complete match */
|
||||||
|
if (want_offset_pair) {
|
||||||
|
- sprintf(offset_all, "%d %d", ovec[0], ovec[1]);
|
||||||
|
+ sprintf(offset_all, "%ld %ld", ovec[0], ovec[1]);
|
||||||
|
setsparam("ZPCRE_OP", ztrdup(offset_all));
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
@@ -186,7 +158,7 @@ zpcre_get_substrings(char *arg, int *ovec, int captured_count, char *matchvar,
|
||||||
|
* ovec is length 2*(1+capture_list_length)
|
||||||
|
*/
|
||||||
|
if (matchvar) {
|
||||||
|
- match_all = metafy(captures[0], ovec[1] - ovec[0], META_DUP);
|
||||||
|
+ match_all = metafy(arg + ovec[0], ovec[1] - ovec[0], META_DUP);
|
||||||
|
setsparam(matchvar, match_all);
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
@@ -201,16 +173,12 @@ zpcre_get_substrings(char *arg, int *ovec, int captured_count, char *matchvar,
|
||||||
|
*/
|
||||||
|
if (substravar &&
|
||||||
|
(!want_begin_end || nelem)) {
|
||||||
|
- char **x, **y;
|
||||||
|
+ char **x;
|
||||||
|
int vec_off, i;
|
||||||
|
- y = &captures[capture_start];
|
||||||
|
matches = x = (char **) zalloc(sizeof(char *) * (captured_count+1-capture_start));
|
||||||
|
- for (i = capture_start; i < captured_count; i++, y++) {
|
||||||
|
+ for (i = capture_start; i < captured_count; i++) {
|
||||||
|
vec_off = 2*i;
|
||||||
|
- if (*y)
|
||||||
|
- *x++ = metafy(*y, ovec[vec_off+1]-ovec[vec_off], META_DUP);
|
||||||
|
- else
|
||||||
|
- *x++ = NULL;
|
||||||
|
+ *x++ = metafy(arg + ovec[vec_off], ovec[vec_off+1]-ovec[vec_off], META_DUP);
|
||||||
|
}
|
||||||
|
*x = NULL;
|
||||||
|
setaparam(substravar, matches);
|
||||||
|
@@ -247,7 +215,8 @@ zpcre_get_substrings(char *arg, int *ovec, int captured_count, char *matchvar,
|
||||||
|
setiparam("MEND", offs + !isset(KSHARRAYS) - 1);
|
||||||
|
if (nelem) {
|
||||||
|
char **mbegin, **mend, **bptr, **eptr;
|
||||||
|
- int i, *ipair;
|
||||||
|
+ int i;
|
||||||
|
+ size_t *ipair;
|
||||||
|
|
||||||
|
bptr = mbegin = zalloc(sizeof(char*)*(nelem+1));
|
||||||
|
eptr = mend = zalloc(sizeof(char*)*(nelem+1));
|
||||||
|
@@ -287,8 +256,6 @@ zpcre_get_substrings(char *arg, int *ovec, int captured_count, char *matchvar,
|
||||||
|
setaparam("mend", mend);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- pcre_free_substring_list((const char **)captures);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
@@ -314,7 +281,8 @@ getposint(char *instr, char *nam)
|
||||||
|
static int
|
||||||
|
bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
|
||||||
|
{
|
||||||
|
- int ret, capcount, *ovec, ovecsize, c;
|
||||||
|
+ int ret, c;
|
||||||
|
+ pcre2_match_data *pcre_mdata = NULL;
|
||||||
|
char *matched_portion = NULL;
|
||||||
|
char *plaintext = NULL;
|
||||||
|
char *receptacle = NULL;
|
||||||
|
@@ -344,36 +312,30 @@ bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
|
||||||
|
/* For the entire match, 'Return' the offset byte positions instead of the matched string */
|
||||||
|
if(OPT_ISSET(ops,'b')) want_offset_pair = 1;
|
||||||
|
|
||||||
|
- if ((ret = pcre_fullinfo(pcre_pattern, pcre_hints, PCRE_INFO_CAPTURECOUNT, &capcount)))
|
||||||
|
- {
|
||||||
|
- zwarnnam(nam, "error %d in fullinfo", ret);
|
||||||
|
- return 1;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- ovecsize = (capcount+1)*3;
|
||||||
|
- ovec = zalloc(ovecsize*sizeof(int));
|
||||||
|
-
|
||||||
|
plaintext = ztrdup(*args);
|
||||||
|
unmetafy(plaintext, &subject_len);
|
||||||
|
|
||||||
|
if (offset_start > 0 && offset_start >= subject_len)
|
||||||
|
- ret = PCRE_ERROR_NOMATCH;
|
||||||
|
- else
|
||||||
|
- ret = pcre_exec(pcre_pattern, pcre_hints, plaintext, subject_len, offset_start, 0, ovec, ovecsize);
|
||||||
|
+ ret = PCRE2_ERROR_NOMATCH;
|
||||||
|
+ else {
|
||||||
|
+ pcre_mdata = pcre2_match_data_create_from_pattern(pcre_pattern, NULL);
|
||||||
|
+ ret = pcre2_match(pcre_pattern, (PCRE2_SPTR) plaintext, subject_len,
|
||||||
|
+ offset_start, 0, pcre_mdata, NULL);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (ret==0) return_value = 0;
|
||||||
|
- else if (ret==PCRE_ERROR_NOMATCH) /* no match */;
|
||||||
|
+ else if (ret == PCRE2_ERROR_NOMATCH) /* no match */;
|
||||||
|
else if (ret>0) {
|
||||||
|
- zpcre_get_substrings(plaintext, ovec, ret, matched_portion, receptacle,
|
||||||
|
+ zpcre_get_substrings(plaintext, pcre_mdata, ret, matched_portion, receptacle,
|
||||||
|
want_offset_pair, 0, 0);
|
||||||
|
return_value = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
- zwarnnam(nam, "error in pcre_exec [%d]", ret);
|
||||||
|
+ zwarnnam(nam, "error in pcre2_match [%d]", ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (ovec)
|
||||||
|
- zfree(ovec, ovecsize*sizeof(int));
|
||||||
|
+ if (pcre_mdata)
|
||||||
|
+ pcre2_match_data_free(pcre_mdata);
|
||||||
|
zsfree(plaintext);
|
||||||
|
|
||||||
|
return return_value;
|
||||||
|
@@ -383,17 +345,19 @@ bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
|
||||||
|
static int
|
||||||
|
cond_pcre_match(char **a, int id)
|
||||||
|
{
|
||||||
|
- pcre *pcre_pat;
|
||||||
|
- const char *pcre_err;
|
||||||
|
+ pcre2_code *pcre_pat = NULL;
|
||||||
|
+ int pcre_err;
|
||||||
|
+ PCRE2_SIZE pcre_erroff;
|
||||||
|
char *lhstr, *rhre, *lhstr_plain, *rhre_plain, *avar, *svar;
|
||||||
|
- int r = 0, pcre_opts = 0, pcre_errptr, capcnt, *ov, ovsize;
|
||||||
|
+ int r = 0, pcre_opts = 0;
|
||||||
|
+ pcre2_match_data *pcre_mdata = NULL;
|
||||||
|
int lhstr_plain_len, rhre_plain_len;
|
||||||
|
int return_value = 0;
|
||||||
|
|
||||||
|
if (zpcre_utf8_enabled())
|
||||||
|
- pcre_opts |= PCRE_UTF8;
|
||||||
|
+ pcre_opts |= PCRE2_UTF;
|
||||||
|
if (isset(REMATCHPCRE) && !isset(CASEMATCH))
|
||||||
|
- pcre_opts |= PCRE_CASELESS;
|
||||||
|
+ pcre_opts |= PCRE2_CASELESS;
|
||||||
|
|
||||||
|
lhstr = cond_str(a,0,0);
|
||||||
|
rhre = cond_str(a,1,0);
|
||||||
|
@@ -401,9 +365,6 @@ cond_pcre_match(char **a, int id)
|
||||||
|
rhre_plain = ztrdup(rhre);
|
||||||
|
unmetafy(lhstr_plain, &lhstr_plain_len);
|
||||||
|
unmetafy(rhre_plain, &rhre_plain_len);
|
||||||
|
- pcre_pat = NULL;
|
||||||
|
- ov = NULL;
|
||||||
|
- ovsize = 0;
|
||||||
|
|
||||||
|
if (isset(BASHREMATCH)) {
|
||||||
|
svar = NULL;
|
||||||
|
@@ -415,27 +376,27 @@ cond_pcre_match(char **a, int id)
|
||||||
|
|
||||||
|
switch(id) {
|
||||||
|
case CPCRE_PLAIN:
|
||||||
|
- if ((int)strlen(rhre_plain) != rhre_plain_len) {
|
||||||
|
- zwarn("embedded NULs in PCRE pattern terminate pattern");
|
||||||
|
- }
|
||||||
|
- pcre_pat = pcre_compile(rhre_plain, pcre_opts, &pcre_err, &pcre_errptr, NULL);
|
||||||
|
- if (pcre_pat == NULL) {
|
||||||
|
- zwarn("failed to compile regexp /%s/: %s", rhre, pcre_err);
|
||||||
|
+ if (!(pcre_pat = pcre2_compile((PCRE2_SPTR) rhre_plain,
|
||||||
|
+ (PCRE2_SIZE) rhre_plain_len, pcre_opts,
|
||||||
|
+ &pcre_err, &pcre_erroff, NULL)))
|
||||||
|
+ {
|
||||||
|
+ PCRE2_UCHAR buffer[256];
|
||||||
|
+ pcre2_get_error_message(pcre_err, buffer, sizeof(buffer));
|
||||||
|
+ zwarn("failed to compile regexp /%s/: %s", rhre, buffer);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
- pcre_fullinfo(pcre_pat, NULL, PCRE_INFO_CAPTURECOUNT, &capcnt);
|
||||||
|
- ovsize = (capcnt+1)*3;
|
||||||
|
- ov = zalloc(ovsize*sizeof(int));
|
||||||
|
- r = pcre_exec(pcre_pat, NULL, lhstr_plain, lhstr_plain_len, 0, 0, ov, ovsize);
|
||||||
|
- /* r < 0 => error; r==0 match but not enough size in ov
|
||||||
|
+ pcre_mdata = pcre2_match_data_create_from_pattern(pcre_pat, NULL);
|
||||||
|
+ r = pcre2_match(pcre_pat, (PCRE2_SPTR8) lhstr_plain, lhstr_plain_len,
|
||||||
|
+ 0, 0, pcre_mdata, NULL);
|
||||||
|
+ /* r < 0 => error; r==0 match but not enough size in match data
|
||||||
|
* r > 0 => (r-1) substrings found; r==1 => no substrings
|
||||||
|
*/
|
||||||
|
if (r==0) {
|
||||||
|
- zwarn("reportable zsh problem: pcre_exec() returned 0");
|
||||||
|
+ zwarn("reportable zsh problem: pcre2_match() returned 0");
|
||||||
|
return_value = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
- else if (r==PCRE_ERROR_NOMATCH) {
|
||||||
|
+ else if (r == PCRE2_ERROR_NOMATCH) {
|
||||||
|
return_value = 0; /* no match */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
@@ -444,7 +405,7 @@ cond_pcre_match(char **a, int id)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (r>0) {
|
||||||
|
- zpcre_get_substrings(lhstr_plain, ov, r, svar, avar, 0,
|
||||||
|
+ zpcre_get_substrings(lhstr_plain, pcre_mdata, r, svar, avar, 0,
|
||||||
|
isset(BASHREMATCH),
|
||||||
|
!isset(BASHREMATCH));
|
||||||
|
return_value = 1;
|
||||||
|
@@ -457,10 +418,10 @@ cond_pcre_match(char **a, int id)
|
||||||
|
free(lhstr_plain);
|
||||||
|
if(rhre_plain)
|
||||||
|
free(rhre_plain);
|
||||||
|
+ if (pcre_mdata)
|
||||||
|
+ pcre2_match_data_free(pcre_mdata);
|
||||||
|
if (pcre_pat)
|
||||||
|
- pcre_free(pcre_pat);
|
||||||
|
- if (ov)
|
||||||
|
- zfree(ov, ovsize*sizeof(int));
|
||||||
|
+ pcre2_code_free(pcre_pat);
|
||||||
|
|
||||||
|
return return_value;
|
||||||
|
}
|
||||||
|
@@ -489,11 +450,11 @@ static struct builtin bintab[] = {
|
||||||
|
|
||||||
|
static struct features module_features = {
|
||||||
|
bintab, sizeof(bintab)/sizeof(*bintab),
|
||||||
|
-#if defined(HAVE_PCRE_COMPILE) && defined(HAVE_PCRE_EXEC)
|
||||||
|
+#if defined(HAVE_PCRE2_COMPILE_8) && defined(HAVE_PCRE2_H)
|
||||||
|
cotab, sizeof(cotab)/sizeof(*cotab),
|
||||||
|
-#else /* !(HAVE_PCRE_COMPILE && HAVE_PCRE_EXEC) */
|
||||||
|
+#else /* !(HAVE_PCRE2_COMPILE_8 && HAVE_PCRE2_H) */
|
||||||
|
NULL, 0,
|
||||||
|
-#endif /* !(HAVE_PCRE_COMPILE && HAVE_PCRE_EXEC) */
|
||||||
|
+#endif /* !(HAVE_PCRE2_COMPILE_8 && HAVE_PCRE2_H) */
|
||||||
|
NULL, 0,
|
||||||
|
NULL, 0,
|
||||||
|
0
|
||||||
|
@@ -540,19 +501,9 @@ cleanup_(Module m)
|
||||||
|
int
|
||||||
|
finish_(UNUSED(Module m))
|
||||||
|
{
|
||||||
|
-#if defined(HAVE_PCRE_COMPILE) && defined(HAVE_PCRE_EXEC)
|
||||||
|
-#ifdef HAVE_PCRE_STUDY
|
||||||
|
- if (pcre_hints)
|
||||||
|
-#ifdef PCRE_CONFIG_JIT
|
||||||
|
- pcre_free_study(pcre_hints);
|
||||||
|
-#else
|
||||||
|
- pcre_free(pcre_hints);
|
||||||
|
-#endif
|
||||||
|
- pcre_hints = NULL;
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
+#if defined(HAVE_PCRE2_COMPILE_8) && defined(HAVE_PCRE2_H)
|
||||||
|
if (pcre_pattern)
|
||||||
|
- pcre_free(pcre_pattern);
|
||||||
|
+ pcre2_code_free(pcre_pattern);
|
||||||
|
pcre_pattern = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
|
||||||
|
index 22a0b64c7..6eb366964 100644
|
||||||
|
--- a/Test/V07pcre.ztst
|
||||||
|
+++ b/Test/V07pcre.ztst
|
||||||
|
@@ -117,12 +117,17 @@
|
||||||
|
>78884; ZPCRE_OP: 25 30
|
||||||
|
>90210; ZPCRE_OP: 31 36
|
||||||
|
|
||||||
|
-# Embedded NULs allowed in plaintext, but not in RE (although \0 as two-chars allowed)
|
||||||
|
+# Embedded NULs allowed in plaintext, in RE, pcre supports \0 as two-chars
|
||||||
|
[[ $'a\0bc\0d' =~ '^(a\0.)(.+)$' ]]
|
||||||
|
print "${#MATCH}; ${#match[1]}; ${#match[2]}"
|
||||||
|
0:ensure ASCII NUL passes in and out of matched plaintext
|
||||||
|
>6; 3; 3
|
||||||
|
|
||||||
|
+# PCRE2 supports NULs also in the RE
|
||||||
|
+ [[ $'a\0b\0c' =~ $'^(.\0)+' ]] && print "${#MATCH}; ${#match[1]}"
|
||||||
|
+0:ensure ASCII NUL works also in the regex
|
||||||
|
+>4; 2
|
||||||
|
+
|
||||||
|
# Ensure the long-form infix operator works
|
||||||
|
[[ foo -pcre-match ^f..$ ]]
|
||||||
|
print $?
|
||||||
|
@@ -169,7 +174,11 @@
|
||||||
|
[[ é =~ '^..\z' ]]; echo $?
|
||||||
|
LANG=$LANG_SAVE
|
||||||
|
[[ é =~ '^.\z' ]]; echo $?
|
||||||
|
-0:swich between C/UTF-8 locales
|
||||||
|
+0:switch between C/UTF-8 locales
|
||||||
|
>0
|
||||||
|
>0
|
||||||
|
>0
|
||||||
|
+
|
||||||
|
+ [[ abc =~ 'a(d*)bc' ]] && print "$#MATCH; $#match; ${#match[1]}"
|
||||||
|
+0:empty capture
|
||||||
|
+>3; 1; 0
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index d8a17791a..4710d1659 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -438,7 +438,7 @@ fi],
|
||||||
|
|
||||||
|
dnl Do you want to look for pcre support?
|
||||||
|
AC_ARG_ENABLE(pcre,
|
||||||
|
-AS_HELP_STRING([--enable-pcre],[enable the search for the pcre library (may create run-time library dependencies)]))
|
||||||
|
+AS_HELP_STRING([--enable-pcre],[enable the search for the pcre2 library (may create run-time library dependencies)]))
|
||||||
|
|
||||||
|
dnl Do you want to look for capability support?
|
||||||
|
AC_ARG_ENABLE(cap,
|
||||||
|
@@ -652,13 +652,12 @@ AC_HEADER_SYS_WAIT
|
||||||
|
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
if test x$enable_pcre = xyes; then
|
||||||
|
-AC_CHECK_PROG([PCRECONF], pcre-config, pcre-config)
|
||||||
|
-dnl Typically (meaning on this single RedHat 9 box in front of me)
|
||||||
|
-dnl pcre-config --cflags produces a -I output which needs to go into
|
||||||
|
+AC_CHECK_PROG([PCRECONF], pcre2-config, pcre2-config)
|
||||||
|
+dnl pcre2-config --cflags may produce a -I output which needs to go into
|
||||||
|
dnl CPPFLAGS else configure's preprocessor tests don't pick it up,
|
||||||
|
dnl producing a warning.
|
||||||
|
-if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
|
||||||
|
- CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
|
||||||
|
+if test "x$ac_cv_prog_PCRECONF" = xpcre2-config; then
|
||||||
|
+ CPPFLAGS="$CPPFLAGS `pcre2-config --cflags`"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -668,9 +667,10 @@ AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
|
||||||
|
locale.h errno.h stdio.h stdarg.h varargs.h stdlib.h \
|
||||||
|
unistd.h sys/capability.h \
|
||||||
|
utmp.h utmpx.h sys/types.h pwd.h grp.h poll.h sys/mman.h \
|
||||||
|
- netinet/in_systm.h pcre.h langinfo.h wchar.h stddef.h \
|
||||||
|
+ netinet/in_systm.h langinfo.h wchar.h stddef.h \
|
||||||
|
sys/stropts.h iconv.h ncurses.h ncursesw/ncurses.h \
|
||||||
|
ncurses/ncurses.h)
|
||||||
|
+AC_CHECK_HEADERS([pcre2.h],,,[#define PCRE2_CODE_UNIT_WIDTH 8])
|
||||||
|
if test x$dynamic = xyes; then
|
||||||
|
AC_CHECK_HEADERS(dlfcn.h)
|
||||||
|
AC_CHECK_HEADERS(dl.h)
|
||||||
|
@@ -948,9 +948,7 @@ if test "x$ac_found_iconv" = "xyes"; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$enable_pcre = xyes; then
|
||||||
|
-dnl pcre-config should probably be employed here
|
||||||
|
-dnl AC_SEARCH_LIBS(pcre_compile, pcre)
|
||||||
|
- LIBS="`$ac_cv_prog_PCRECONF --libs` $LIBS"
|
||||||
|
+ LIBS="`$ac_cv_prog_PCRECONF --libs8` $LIBS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl ---------------------
|
||||||
|
@@ -1313,7 +1311,7 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
|
||||||
|
pathconf sysconf \
|
||||||
|
tgetent tigetflag tigetnum tigetstr setupterm initscr resize_term \
|
||||||
|
getcchar setcchar waddwstr wget_wch win_wch use_default_colors \
|
||||||
|
- pcre_compile pcre_study pcre_exec \
|
||||||
|
+ pcre2_compile_8 \
|
||||||
|
nl_langinfo \
|
||||||
|
erand48 open_memstream \
|
||||||
|
posix_openpt \
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
||||||
|
From 10bdbd8b5b0b43445aff23dcd412f25cf6aa328a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
Date: Tue, 20 Jun 2023 18:14:27 +0900
|
||||||
|
Subject: [PATCH] 51877: do not build pcre module if pcre2-config is not found
|
||||||
|
|
||||||
|
Cherry-picked-by: Lukáš Zaoral <lzaoral@redhat.com>
|
||||||
|
---
|
||||||
|
Src/Modules/pcre.mdd | 2 +-
|
||||||
|
configure.ac | 31 +++++++++++++++++++------------
|
||||||
|
2 files changed, 20 insertions(+), 13 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Src/Modules/pcre.mdd b/Src/Modules/pcre.mdd
|
||||||
|
index 6eb3c691b..3e1579117 100644
|
||||||
|
--- a/Src/Modules/pcre.mdd
|
||||||
|
+++ b/Src/Modules/pcre.mdd
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
name=zsh/pcre
|
||||||
|
-link=`if test x$enable_pcre = xyes && (pcre-config --version >/dev/null 2>/dev/null); then echo dynamic; else echo no; fi`
|
||||||
|
+link=`if test x$enable_pcre = xyes; then echo dynamic; else echo no; fi`
|
||||||
|
load=no
|
||||||
|
|
||||||
|
autofeatures="b:pcre_compile b:pcre_study b:pcre_match"
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index ba76f9a60..c5263035e 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -440,6 +440,17 @@ dnl Do you want to look for pcre support?
|
||||||
|
AC_ARG_ENABLE(pcre,
|
||||||
|
AS_HELP_STRING([--enable-pcre],[enable the search for the pcre2 library (may create run-time library dependencies)]))
|
||||||
|
|
||||||
|
+AC_ARG_VAR(PCRE_CONFIG, [pathname of pcre2-config if it is not in PATH])
|
||||||
|
+if test "x$enable_pcre" = xyes; then
|
||||||
|
+ AC_CHECK_PROG([PCRE_CONFIG], pcre2-config, pcre2-config)
|
||||||
|
+ if test "x$PCRE_CONFIG" = x; then
|
||||||
|
+ enable_pcre=no
|
||||||
|
+ AC_MSG_WARN([pcre2-config not found: pcre module is disabled.])
|
||||||
|
+ AC_MSG_NOTICE(
|
||||||
|
+ [Set PCRE_CONFIG to pathname of pcre2-config if it is not in PATH.])
|
||||||
|
+ fi
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
dnl Do you want to look for capability support?
|
||||||
|
AC_ARG_ENABLE(cap,
|
||||||
|
AS_HELP_STRING([--enable-cap],[enable the search for POSIX capabilities (may require additional headers to be added by hand)]))
|
||||||
|
@@ -655,15 +666,12 @@ AC_HEADER_DIRENT
|
||||||
|
AC_HEADER_STAT
|
||||||
|
AC_HEADER_SYS_WAIT
|
||||||
|
|
||||||
|
-oldcflags="$CFLAGS"
|
||||||
|
-if test x$enable_pcre = xyes; then
|
||||||
|
-AC_CHECK_PROG([PCRECONF], pcre2-config, pcre2-config)
|
||||||
|
dnl pcre2-config --cflags may produce a -I output which needs to go into
|
||||||
|
dnl CPPFLAGS else configure's preprocessor tests don't pick it up,
|
||||||
|
dnl producing a warning.
|
||||||
|
-if test "x$ac_cv_prog_PCRECONF" = xpcre2-config; then
|
||||||
|
- CPPFLAGS="$CPPFLAGS `pcre2-config --cflags`"
|
||||||
|
-fi
|
||||||
|
+if test "x$enable_pcre" = xyes; then
|
||||||
|
+ CPPFLAGS="`$PCRE_CONFIG --cflags` $CPPFLAGS"
|
||||||
|
+ AC_CHECK_HEADERS([pcre2.h],,,[#define PCRE2_CODE_UNIT_WIDTH 8])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
|
||||||
|
@@ -675,7 +683,6 @@ AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
|
||||||
|
netinet/in_systm.h langinfo.h wchar.h stddef.h \
|
||||||
|
sys/stropts.h iconv.h ncurses.h ncursesw/ncurses.h \
|
||||||
|
ncurses/ncurses.h)
|
||||||
|
-AC_CHECK_HEADERS([pcre2.h],,,[#define PCRE2_CODE_UNIT_WIDTH 8])
|
||||||
|
if test x$dynamic = xyes; then
|
||||||
|
AC_CHECK_HEADERS(dlfcn.h)
|
||||||
|
AC_CHECK_HEADERS(dl.h)
|
||||||
|
@@ -952,10 +959,6 @@ if test "x$ac_found_iconv" = "xyes"; then
|
||||||
|
[Define as const if the declaration of iconv() needs const.])
|
||||||
|
fi
|
||||||
|
|
||||||
|
-if test x$enable_pcre = xyes; then
|
||||||
|
- LIBS="`$ac_cv_prog_PCRECONF --libs8` $LIBS"
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
dnl ---------------------
|
||||||
|
dnl CHECK TERMCAP LIBRARY
|
||||||
|
dnl ---------------------
|
||||||
|
@@ -1316,7 +1319,6 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
|
||||||
|
pathconf sysconf \
|
||||||
|
tgetent tigetflag tigetnum tigetstr setupterm initscr resize_term \
|
||||||
|
getcchar setcchar waddwstr wget_wch win_wch use_default_colors \
|
||||||
|
- pcre2_compile_8 \
|
||||||
|
nl_langinfo \
|
||||||
|
erand48 open_memstream \
|
||||||
|
posix_openpt \
|
||||||
|
@@ -1371,6 +1373,11 @@ if test x$zsh_cv_func_realpath_accepts_null = xyes; then
|
||||||
|
AC_DEFINE(REALPATH_ACCEPTS_NULL)
|
||||||
|
fi
|
||||||
|
|
||||||
|
+if test x$enable_pcre = xyes; then
|
||||||
|
+ LIBS="`$PCRE_CONFIG --libs8` $LIBS"
|
||||||
|
+ AC_CHECK_FUNCS(pcre2_compile_8)
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
if test x$enable_cap = xyes; then
|
||||||
|
AC_CHECK_FUNCS(cap_get_proc)
|
||||||
|
fi
|
||||||
|
--
|
||||||
|
2.42.0
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
From ecd3f9c9506c7720dc6c0833dc5d5eb00e4459c4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
Date: Mon, 19 Jun 2023 11:19:25 +0900
|
||||||
|
Subject: [PATCH] 51862: support texinfo-7.0
|
||||||
|
|
||||||
|
Upstream-commit: ecd3f9c9506c7720dc6c0833dc5d5eb00e4459c4
|
||||||
|
Cherry-picked-by: Lukáš Zaoral <lzaoral@redhat.com>
|
||||||
|
---
|
||||||
|
Doc/Makefile.in | 3 ++-
|
||||||
|
configure.ac | 5 +++++
|
||||||
|
2 files changed, 7 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Doc/Makefile.in b/Doc/Makefile.in
|
||||||
|
index 136b080d6..dabe11fe3 100644
|
||||||
|
--- a/Doc/Makefile.in
|
||||||
|
+++ b/Doc/Makefile.in
|
||||||
|
@@ -43,6 +43,7 @@ TEXI2DVI = @TEXI2DVI@
|
||||||
|
DVIPS = dvips
|
||||||
|
TEXI2PDF = @TEXI2PDF@
|
||||||
|
TEXI2HTML = @TEXI2HTML@
|
||||||
|
+SET_TEXI2ANY_VAR = @SET_TEXI2ANY_VAR@
|
||||||
|
PAPERSIZE = @PAPERSIZE@
|
||||||
|
|
||||||
|
.SUFFIXES: .yo .1
|
||||||
|
@@ -266,7 +267,7 @@ texi2html.conf: $(sdir_top)/Config/version.mk
|
||||||
|
d=`echo $(VERSION_DATE)`; \
|
||||||
|
v="<font size=\"-1\">Zsh version $(VERSION), released on $$d.</font>"; \
|
||||||
|
case '$(TEXI2HTML)' in \
|
||||||
|
- *texi2any*) echo "set_from_init_file('PRE_BODY_CLOSE','$$v');" ;; \
|
||||||
|
+ *texi2any*) echo "$(SET_TEXI2ANY_VAR)('PRE_BODY_CLOSE','$$v');" ;; \
|
||||||
|
*) echo "\$$PRE_BODY_CLOSE = '$$v';" ;; \
|
||||||
|
esac > $@
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 4710d1659..ba76f9a60 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -623,7 +623,12 @@ fi
|
||||||
|
|
||||||
|
if test x"$TEXI2HTML" = xtexi2any; then
|
||||||
|
TEXI2HTML='texi2any -c TEXI2HTML=1'
|
||||||
|
+ case `texi2any --version 2>/dev/null | sed -e 's/^.*) *//' -e 1q` in
|
||||||
|
+ [[1-6]].*) SET_TEXI2ANY_VAR=set_from_init_file ;;
|
||||||
|
+ *) SET_TEXI2ANY_VAR=texinfo_set_from_init_file ;;
|
||||||
|
+ esac
|
||||||
|
fi
|
||||||
|
+AC_SUBST(SET_TEXI2ANY_VAR)
|
||||||
|
|
||||||
|
case "$LC_PAPER" in
|
||||||
|
??_US*) PAPERSIZE=us ;;
|
||||||
|
--
|
||||||
|
2.42.0
|
||||||
|
|
@ -0,0 +1,44 @@
|
|||||||
|
Avoid incompatible pointer types in terminfo global variable checks.
|
||||||
|
Some compilers reject these incompatible pointer types, causing the
|
||||||
|
checks to always fail, when these variables are in fact available.
|
||||||
|
|
||||||
|
Submitted upstream: <https://www.zsh.org/mla/workers/2023/msg01112.html>
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index a58242f453b4a8f3..5534f42df14eb28c 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -1769,27 +1769,27 @@ if test x$zsh_cv_path_term_header != xnone; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if boolcodes is available)
|
||||||
|
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = boolcodes; puts(*test);]])],[AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes],[boolcodes=no])
|
||||||
|
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = (char **)boolcodes; puts(*test);]])],[AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes],[boolcodes=no])
|
||||||
|
AC_MSG_RESULT($boolcodes)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if numcodes is available)
|
||||||
|
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = numcodes; puts(*test);]])],[AC_DEFINE(HAVE_NUMCODES) numcodes=yes],[numcodes=no])
|
||||||
|
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = (char **)numcodes; puts(*test);]])],[AC_DEFINE(HAVE_NUMCODES) numcodes=yes],[numcodes=no])
|
||||||
|
AC_MSG_RESULT($numcodes)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if strcodes is available)
|
||||||
|
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = strcodes; puts(*test);]])],[AC_DEFINE(HAVE_STRCODES) strcodes=yes],[strcodes=no])
|
||||||
|
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = (char **)strcodes; puts(*test);]])],[AC_DEFINE(HAVE_STRCODES) strcodes=yes],[strcodes=no])
|
||||||
|
AC_MSG_RESULT($strcodes)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if boolnames is available)
|
||||||
|
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = boolnames; puts(*test);]])],[AC_DEFINE(HAVE_BOOLNAMES) boolnames=yes],[boolnames=no])
|
||||||
|
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = (char **)boolnames; puts(*test);]])],[AC_DEFINE(HAVE_BOOLNAMES) boolnames=yes],[boolnames=no])
|
||||||
|
AC_MSG_RESULT($boolnames)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if numnames is available)
|
||||||
|
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = numnames; puts(*test);]])],[AC_DEFINE(HAVE_NUMNAMES) numnames=yes],[numnames=no])
|
||||||
|
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = (char **)numnames; puts(*test);]])],[AC_DEFINE(HAVE_NUMNAMES) numnames=yes],[numnames=no])
|
||||||
|
AC_MSG_RESULT($numnames)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(if strnames is available)
|
||||||
|
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = strnames; puts(*test);]])],[AC_DEFINE(HAVE_STRNAMES) strnames=yes],[strnames=no])
|
||||||
|
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$term_includes]], [[char **test = (char **)strnames; puts(*test);]])],[AC_DEFINE(HAVE_STRNAMES) strnames=yes],[strnames=no])
|
||||||
|
AC_MSG_RESULT($strnames)
|
||||||
|
|
||||||
|
dnl There are apparently defective terminal library headers on some
|
@ -0,0 +1,42 @@
|
|||||||
|
From d3edf318306e37d2d96c4e4ea442d10207722e94 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Bart Schaefer <schaefer@zsh.org>
|
||||||
|
Date: Sun, 12 Feb 2023 09:52:39 -0800
|
||||||
|
Subject: [PATCH] 51404: Nullify filelist after deleting (fix segfault)
|
||||||
|
|
||||||
|
Cherry-picked-by: Lukáš Zaoral <lzaoral@redhat.com>
|
||||||
|
Upstream-commit: d3edf318306e37d2d96c4e4ea442d10207722e94
|
||||||
|
---
|
||||||
|
Src/jobs.c | 8 ++++++--
|
||||||
|
1 files changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Src/jobs.c b/Src/jobs.c
|
||||||
|
index 4863962b9..59ddd952e 100644
|
||||||
|
--- a/Src/jobs.c
|
||||||
|
+++ b/Src/jobs.c
|
||||||
|
@@ -1372,8 +1372,10 @@ cleanfilelists(void)
|
||||||
|
|
||||||
|
DPUTS(shell_exiting >= 0, "BUG: cleanfilelists() before exit");
|
||||||
|
|
||||||
|
- for (i = 1; i <= maxjob; i++)
|
||||||
|
+ for (i = 1; i <= maxjob; i++) {
|
||||||
|
deletefilelist(jobtab[i].filelist, 0);
|
||||||
|
+ jobtab[i].filelist = 0;
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
/**/
|
||||||
|
@@ -1531,8 +1533,10 @@ havefiles(void)
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 1; i <= maxjob; i++)
|
||||||
|
- if (jobtab[i].stat && jobtab[i].filelist)
|
||||||
|
+ if (jobtab[i].stat && jobtab[i].filelist &&
|
||||||
|
+ peekfirst(jobtab[i].filelist)) {
|
||||||
|
return 1;
|
||||||
|
+ }
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
@ -0,0 +1,12 @@
|
|||||||
|
# this file is installed as ~/.zprofile for newly created users
|
||||||
|
|
||||||
|
# prepend ~/.local/bin and ~/bin to $PATH unless it is already there
|
||||||
|
if ! [[ "$PATH" =~ "$HOME/bin" ]]
|
||||||
|
then
|
||||||
|
PATH="$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
if ! [[ "$PATH" =~ "$HOME/.local/bin:" ]]
|
||||||
|
then
|
||||||
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
export PATH
|
@ -0,0 +1,34 @@
|
|||||||
|
#
|
||||||
|
# .zshrc is sourced in interactive shells.
|
||||||
|
# It should contain commands to set up aliases,
|
||||||
|
# functions, options, key bindings, etc.
|
||||||
|
#
|
||||||
|
|
||||||
|
autoload -U compinit
|
||||||
|
compinit
|
||||||
|
|
||||||
|
#allow tab completion in the middle of a word
|
||||||
|
setopt COMPLETE_IN_WORD
|
||||||
|
|
||||||
|
## keep background processes at full speed
|
||||||
|
#setopt NOBGNICE
|
||||||
|
## restart running processes on exit
|
||||||
|
#setopt HUP
|
||||||
|
|
||||||
|
## history
|
||||||
|
#setopt APPEND_HISTORY
|
||||||
|
## for sharing history between zsh processes
|
||||||
|
#setopt INC_APPEND_HISTORY
|
||||||
|
#setopt SHARE_HISTORY
|
||||||
|
|
||||||
|
## never ever beep ever
|
||||||
|
#setopt NO_BEEP
|
||||||
|
|
||||||
|
## automatically decide when to page a list of completions
|
||||||
|
#LISTMAX=0
|
||||||
|
|
||||||
|
## disable mail checking
|
||||||
|
#MAILCHECK=0
|
||||||
|
|
||||||
|
# autoload -U colors
|
||||||
|
#colors
|
@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# /etc/zlogin and .zlogin are sourced in login shells. It should
|
||||||
|
# contain commands that should be executed only in
|
||||||
|
# login shells. It should be used to set the terminal
|
||||||
|
# type and run a series of external commands (fortune,
|
||||||
|
# msgs, from, etc).
|
||||||
|
#
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
#
|
||||||
|
# /etc/zlogout and ~/.zlogout are run when an interactive session ends
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
clear
|
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# /etc/zprofile and ~/.zprofile are run for login shells
|
||||||
|
#
|
||||||
|
|
||||||
|
_src_etc_profile()
|
||||||
|
{
|
||||||
|
# Make /etc/profile happier, and have possible ~/.zshenv options like
|
||||||
|
# NOMATCH ignored.
|
||||||
|
#
|
||||||
|
emulate -L ksh
|
||||||
|
|
||||||
|
# source profile
|
||||||
|
if [ -f /etc/profile ]; then
|
||||||
|
source /etc/profile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
_src_etc_profile
|
||||||
|
|
||||||
|
unset -f _src_etc_profile
|
@ -0,0 +1,14 @@
|
|||||||
|
# /etc/zsh/zshenv: system-wide .zshenv file for zsh(1).
|
||||||
|
#
|
||||||
|
# This file is sourced on all invocations of the shell.
|
||||||
|
# If the -f flag is present or if the NO_RCS option is
|
||||||
|
# set within this file, all other initialization files
|
||||||
|
# are skipped.
|
||||||
|
#
|
||||||
|
# This file should contain commands to set the command
|
||||||
|
# search path, plus other important environment variables.
|
||||||
|
# This file should not contain commands that produce
|
||||||
|
# output or assume the shell is attached to a tty.
|
||||||
|
#
|
||||||
|
# Global Order: zshenv, zprofile, zshrc, zlogin
|
||||||
|
|
@ -0,0 +1,50 @@
|
|||||||
|
#
|
||||||
|
# /etc/zshrc is sourced in interactive shells. It
|
||||||
|
# should contain commands to set up aliases, functions,
|
||||||
|
# options, key bindings, etc.
|
||||||
|
#
|
||||||
|
|
||||||
|
## shell functions
|
||||||
|
#setenv() { export $1=$2 } # csh compatibility
|
||||||
|
|
||||||
|
# Set prompts
|
||||||
|
[[ "$PROMPT" = "%m%# " ]] && PROMPT='[%n@%m]%~%# ' # default prompt
|
||||||
|
#RPROMPT=' %~' # prompt for right side of screen
|
||||||
|
|
||||||
|
# bindkey -v # vi key bindings
|
||||||
|
# bindkey -e # emacs key bindings
|
||||||
|
bindkey ' ' magic-space # also do history expansion on space
|
||||||
|
|
||||||
|
# Provide pathmunge for /etc/profile.d scripts
|
||||||
|
pathmunge()
|
||||||
|
{
|
||||||
|
if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)" ; then
|
||||||
|
if [ "$2" = "after" ] ; then
|
||||||
|
PATH=$PATH:$1
|
||||||
|
else
|
||||||
|
PATH=$1:$PATH
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
_src_etc_profile_d()
|
||||||
|
{
|
||||||
|
# Make the *.sh things happier, and have possible ~/.zshenv options like
|
||||||
|
# NOMATCH ignored.
|
||||||
|
emulate -L ksh
|
||||||
|
|
||||||
|
|
||||||
|
# from bashrc, with zsh fixes
|
||||||
|
if [[ ! -o login ]]; then # We're not a login shell
|
||||||
|
for i in /etc/profile.d/*.sh; do
|
||||||
|
if [ -r "$i" ]; then
|
||||||
|
. $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
unset i
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
_src_etc_profile_d
|
||||||
|
|
||||||
|
unset -f pathmunge _src_etc_profile_d
|
||||||
|
|
@ -0,0 +1,559 @@
|
|||||||
|
Summary: Powerful interactive shell
|
||||||
|
Name: zsh
|
||||||
|
Version: 5.9
|
||||||
|
Release: 14%{?dist}
|
||||||
|
License: MIT-Modern-Variant AND ISC AND GPL-2.0-only
|
||||||
|
URL: http://zsh.sourceforge.net/
|
||||||
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
||||||
|
Source1: zlogin.rhs
|
||||||
|
Source2: zlogout.rhs
|
||||||
|
Source3: zprofile.rhs
|
||||||
|
Source4: zshrc.rhs
|
||||||
|
Source5: zshenv.rhs
|
||||||
|
Source6: dotzshrc
|
||||||
|
Source7: dotzprofile
|
||||||
|
|
||||||
|
# do not use egrep in tests to make them pass again
|
||||||
|
Patch1: 0001-zsh-5.9-do-not-use-egrep-in-tests.patch
|
||||||
|
# Upstream commit ab4d62eb975a4c4c51dd35822665050e2ddc6918
|
||||||
|
Patch2: 0002-zsh-Use-int-main-in-test-c-codes.patch
|
||||||
|
# upstream commit a84fdd7c8f77935ecce99ff2b0bdba738821ed79
|
||||||
|
Patch3: 0003-zsh-fix-module-loading-problem-with-full-RELRO.patch
|
||||||
|
# upstream commit 1b421e4978440234fb73117c8505dad1ccc68d46
|
||||||
|
Patch4: 0004-zsh-enable-PCRE-locale-switching.patch
|
||||||
|
# upstream commit b62e911341c8ec7446378b477c47da4256053dc0 and 10bdbd8b5b0b43445aff23dcd412f25cf6aa328a
|
||||||
|
Patch5: 0005-zsh-port-to-pcre2.patch
|
||||||
|
# upstream commit ecd3f9c9506c7720dc6c0833dc5d5eb00e4459c4
|
||||||
|
Patch6: 0006-zsh-support-texinfo-7.0.patch
|
||||||
|
# upstream commit 4c89849c98172c951a9def3690e8647dae76308f
|
||||||
|
Patch7: 0007-zsh-configure-c99.patch
|
||||||
|
# upstream commit d3edf318306e37d2d96c4e4ea442d10207722e94
|
||||||
|
Patch8: 0008-zsh-deletefilelist-segfault.patch
|
||||||
|
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: gawk
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gdbm-devel
|
||||||
|
BuildRequires: glibc-langpack-ja
|
||||||
|
BuildRequires: libcap-devel
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: pcre2-devel
|
||||||
|
BuildRequires: sed
|
||||||
|
BuildRequires: texi2html
|
||||||
|
BuildRequires: texinfo
|
||||||
|
Requires(post): grep
|
||||||
|
Requires(postun): coreutils grep
|
||||||
|
|
||||||
|
# the hostname package is not available on RHEL-6
|
||||||
|
%if 12 < 0%{?fedora} || 6 < 0%{?rhel}
|
||||||
|
BuildRequires: hostname
|
||||||
|
%else
|
||||||
|
# /bin and /usr/bin are separate directories on RHEL-6
|
||||||
|
%define _bindir /bin
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Provides: /bin/zsh
|
||||||
|
|
||||||
|
%description
|
||||||
|
The zsh shell is a command interpreter usable as an interactive login
|
||||||
|
shell and as a shell script command processor. Zsh resembles the ksh
|
||||||
|
shell (the Korn shell), but includes many enhancements. Zsh supports
|
||||||
|
command line editing, built-in spelling correction, programmable
|
||||||
|
command completion, shell functions (with autoloading), a history
|
||||||
|
mechanism, and more.
|
||||||
|
|
||||||
|
%package html
|
||||||
|
Summary: Zsh shell manual in html format
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description html
|
||||||
|
The zsh shell is a command interpreter usable as an interactive login
|
||||||
|
shell and as a shell script command processor. Zsh resembles the ksh
|
||||||
|
shell (the Korn shell), but includes many enhancements. Zsh supports
|
||||||
|
command line editing, built-in spelling correction, programmable
|
||||||
|
command completion, shell functions (with autoloading), a history
|
||||||
|
mechanism, and more.
|
||||||
|
|
||||||
|
This package contains the Zsh manual in html format.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
autoreconf -fiv
|
||||||
|
|
||||||
|
# enable parallel build
|
||||||
|
sed -e 's|^\.NOTPARALLEL|#.NOTPARALLEL|' -i 'Config/defs.mk.in'
|
||||||
|
|
||||||
|
%build
|
||||||
|
# make build of run-time loadable modules work again (#1535422)
|
||||||
|
%undefine _strict_symbol_defs_build
|
||||||
|
|
||||||
|
# avoid build failure in case we have working ypcat (#1687574)
|
||||||
|
export zsh_cv_sys_nis='no'
|
||||||
|
|
||||||
|
%configure \
|
||||||
|
--enable-etcdir=%{_sysconfdir} \
|
||||||
|
--with-tcsetpgrp \
|
||||||
|
--enable-maildir-support \
|
||||||
|
--enable-pcre
|
||||||
|
|
||||||
|
# prevent the build from failing while running in parallel
|
||||||
|
make -C Src headers
|
||||||
|
make -C Src -f Makemod zsh{path,xmod}s.h version.h
|
||||||
|
|
||||||
|
%make_build all html
|
||||||
|
|
||||||
|
%check
|
||||||
|
# avoid unnecessary failure of the test-suite in case ${RPS1} is set
|
||||||
|
unset RPS1
|
||||||
|
|
||||||
|
# run the test-suite
|
||||||
|
make check
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install install.info \
|
||||||
|
fndir=%{_datadir}/%{name}/%{version}/functions \
|
||||||
|
sitefndir=%{_datadir}/%{name}/site-functions \
|
||||||
|
scriptdir=%{_datadir}/%{name}/%{version}/scripts \
|
||||||
|
sitescriptdir=%{_datadir}/%{name}/scripts \
|
||||||
|
runhelpdir=%{_datadir}/%{name}/%{version}/help
|
||||||
|
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_bindir}/zsh-%{version}
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
|
|
||||||
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
|
||||||
|
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do
|
||||||
|
install -m 644 $i $RPM_BUILD_ROOT%{_sysconfdir}/"$(basename $i .rhs)"
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
|
||||||
|
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.zshrc
|
||||||
|
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.zprofile
|
||||||
|
|
||||||
|
# This is just here to shut up rpmlint, and is very annoying.
|
||||||
|
# Note that we can't chmod everything as then rpmlint will complain about
|
||||||
|
# those without a she-bang line.
|
||||||
|
for i in checkmail harden run-help test-repo-git-rebase-{apply,merge} zcalc zkbd; do
|
||||||
|
sed -i -e 's!/usr/local/bin/zsh!%{_bindir}/zsh!' \
|
||||||
|
$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
|
||||||
|
chmod +x $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ "$1" = 1 ]; then
|
||||||
|
if [ ! -f %{_sysconfdir}/shells ] ; then
|
||||||
|
echo "%{_bindir}/%{name}" > %{_sysconfdir}/shells
|
||||||
|
echo "/bin/%{name}" >> %{_sysconfdir}/shells
|
||||||
|
else
|
||||||
|
grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells || echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
|
||||||
|
grep -q "^/bin/%{name}$" %{_sysconfdir}/shells || echo "/bin/%{name}" >> %{_sysconfdir}/shells
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
|
||||||
|
sed -i '\!^%{_bindir}/%{name}$!d' %{_sysconfdir}/shells
|
||||||
|
sed -i '\!^/bin/%{name}$!d' %{_sysconfdir}/shells
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES
|
||||||
|
%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide
|
||||||
|
%attr(755,root,root) %{_bindir}/zsh
|
||||||
|
%{_mandir}/*/*
|
||||||
|
%{_infodir}/*
|
||||||
|
%{_datadir}/zsh
|
||||||
|
%{_libdir}/zsh
|
||||||
|
%config(noreplace) %{_sysconfdir}/skel/.z*
|
||||||
|
%config(noreplace) %{_sysconfdir}/z*
|
||||||
|
|
||||||
|
%files html
|
||||||
|
%doc Doc/*.html
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 5.9-14
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.9-14
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.9-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 17 2024 Lukáš Zaoral <lzaoral@redhat.com> - 5.9-12
|
||||||
|
- fix segfault in delerefilelist (rhbz#2245462)
|
||||||
|
|
||||||
|
* Fri Dec 8 2023 Florian Weimer <fweimer@redhat.com> - 5.9-11
|
||||||
|
- Fix C compatibility issue in the configure script
|
||||||
|
|
||||||
|
* Tue Nov 21 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.9-10
|
||||||
|
- fix FTBFS caused by texinfo 7.1
|
||||||
|
- fix build of the PCRE module
|
||||||
|
|
||||||
|
* Mon Aug 21 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.9-9
|
||||||
|
- port to PCRE 2 (rhbz#1938979)
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.9-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 13 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.9-7
|
||||||
|
- Make zsh/{tcp,zftp} compatible with full RELRO (rhbz#2212160)
|
||||||
|
|
||||||
|
* Wed May 17 2023 David Cantrell <dcantrell@redhat.com> - 5.9-6
|
||||||
|
- Update the License tag to use SPDX identifiers
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.9-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 13 2023 Timm Bäder <tbaeder@redhat.com> - 5.9-4
|
||||||
|
- use 'int main()' in test C-codes in configure
|
||||||
|
|
||||||
|
* Mon Jan 09 2023 Kamil Dudka <kdudka@redhat.com> - 5.9-3
|
||||||
|
- do not use egrep in tests to make them pass again
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.9-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun May 15 2022 Kamil Dudka <kdudka@redhat.com> - 5.9-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Sun Feb 13 2022 Kamil Dudka <kdudka@redhat.com> - 5.8.1-1
|
||||||
|
- update to latest upstream release (fixes CVE-2021-45444)
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 04 2022 Kamil Dudka <kdudka@redhat.com> - 5.8-8
|
||||||
|
- prepend ~/.local/bin and ~/bin to $PATH for newly created users (#1900809)
|
||||||
|
|
||||||
|
* Thu Nov 25 2021 Debarshi Ray <rishi@fedoraproject.org> - 5.8-7
|
||||||
|
- Overwrite PROMPT only if it's set to the built-in default (#2026749)
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Mar 25 2021 Kamil Dudka <kdudka@redhat.com> - 5.8-5
|
||||||
|
- complete file arguments after rpmbuild -r/-b/-t
|
||||||
|
|
||||||
|
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 5.8-2
|
||||||
|
- Use make macros
|
||||||
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||||
|
|
||||||
|
* Mon Feb 24 2020 Kamil Dudka <kdudka@redhat.com> - 5.8-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Kamil Dudka <kdudka@redhat.com> - 5.7.1-4
|
||||||
|
- make failed searches of history in Zle robust (#1722703)
|
||||||
|
|
||||||
|
* Tue Mar 12 2019 Kamil Dudka <kdudka@redhat.com> - 5.7.1-3
|
||||||
|
- avoid build failure in case we have working ypcat (#1687574)
|
||||||
|
|
||||||
|
* Fri Mar 8 2019 Tim Landscheidt <tim@tim-landscheidt.de> - 5.7.1-2
|
||||||
|
- Remove obsolete requirements for %%post/%%preun scriptlets
|
||||||
|
|
||||||
|
* Mon Feb 04 2019 Kamil Dudka <kdudka@redhat.com> - 5.7.1-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 28 2019 Jason L Tibbitts III <tibbs@math.uh.edu> - 5.7-1
|
||||||
|
- Update to latest upstream release.
|
||||||
|
|
||||||
|
* Fri Nov 30 2018 Kamil Dudka <kdudka@redhat.com> - 5.6.2-3
|
||||||
|
- return non-zero exit status on nested parse error (#1654989)
|
||||||
|
|
||||||
|
* Mon Nov 12 2018 Kamil Dudka <kdudka@redhat.com> - 5.6.2-2
|
||||||
|
- fix programming mistakes detected by static analysis
|
||||||
|
|
||||||
|
* Fri Sep 14 2018 Kamil Dudka <kdudka@redhat.com> - 5.6.2-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Mon Sep 10 2018 Kamil Dudka <kdudka@redhat.com> - 5.6.1-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Tue Sep 04 2018 Kamil Dudka <kdudka@redhat.com> - 5.6-1
|
||||||
|
- update to latest upstream release (fixes CVE-2018-0502 and CVE-2018-13259)
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Apr 17 2018 Kamil Dudka <kdudka@redhat.com> - 5.5.1-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Mon Apr 09 2018 Kamil Dudka <kdudka@redhat.com> - 5.5-1
|
||||||
|
- update to latest upstream release, which fixes the following vulnerabilities:
|
||||||
|
CVE-2018-1100 - stack-based buffer overflow in utils.c:checkmailpath()
|
||||||
|
CVE-2018-1083 - stack-based buffer overflow in compctl.c:gen_matches_files()
|
||||||
|
CVE-2018-1071 - stack-based buffer overflow in exec.c:hashcmd()
|
||||||
|
|
||||||
|
* Tue Mar 06 2018 Kamil Dudka <kdudka@redhat.com> - 5.4.2-7
|
||||||
|
- avoid crash when copying empty hash table (CVE-2018-7549)
|
||||||
|
- avoid NULL dereference when using ${(PA)...} on an empty array (CVE-2018-7548)
|
||||||
|
|
||||||
|
* Mon Feb 19 2018 Kamil Dudka <kdudka@redhat.com> - 5.4.2-6
|
||||||
|
- add explicit BR for the gcc compiler
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 22 2018 Kamil Dudka <kdudka@redhat.com> - 5.4.2-4
|
||||||
|
- make build of run-time loadable modules work again (#1535422)
|
||||||
|
|
||||||
|
* Tue Jan 16 2018 Kamil Dudka <kdudka@redhat.com> - 5.4.2-3
|
||||||
|
- rebuild against latest gdbm-devel (#1533176)
|
||||||
|
|
||||||
|
* Wed Oct 04 2017 Kamil Dudka <kdudka@redhat.com> - 5.4.2-2
|
||||||
|
- make the call depth limit configurable by $FUNCNEST (#1441092)
|
||||||
|
|
||||||
|
* Mon Aug 28 2017 Kamil Dudka <kdudka@redhat.com> - 5.4.2-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Wed Aug 09 2017 Kamil Dudka <kdudka@redhat.com> - 5.4.1-1
|
||||||
|
- update to latest upstream release
|
||||||
|
|
||||||
|
* Tue Aug 01 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-12
|
||||||
|
- use %%make_install instead of %%makeinstall, which is deprecated
|
||||||
|
- modernize spec file (Group tag, %%clean, %%defattr)
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 07 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-10
|
||||||
|
- enable parallel build
|
||||||
|
|
||||||
|
* Wed Jun 14 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-9
|
||||||
|
- fix unsafe use of a static buffer in history isearch (#1461483)
|
||||||
|
|
||||||
|
* Thu Jun 08 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-8
|
||||||
|
- make the zsh-html subpackage noarch (#1459657)
|
||||||
|
|
||||||
|
* Thu May 25 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-7
|
||||||
|
- drop unmaintained and undocumented zshprompt.pl script
|
||||||
|
|
||||||
|
* Wed May 17 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-6
|
||||||
|
- drop workaround for broken terminals over serial port (#56353)
|
||||||
|
|
||||||
|
* Thu May 11 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-5
|
||||||
|
- compile with -fconserve-stack to prevent stack overflow (#1441092)
|
||||||
|
|
||||||
|
* Fri Mar 31 2017 Jason L Tibbitts III <tibbs@math.uh.edu> - 5.3.1-4
|
||||||
|
- Add build deps on gdbm-devel and pcre-devel. Pass --enable-pcre to
|
||||||
|
configure. These should ensure that the pcre and gdbm modules are built.
|
||||||
|
(#1438009)
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Dec 22 2016 Kamil Dudka <kdudka@redhat.com> - 5.3.1-2
|
||||||
|
- do not require the hostname package when being built on RHEL-6
|
||||||
|
|
||||||
|
* Wed Dec 21 2016 Kamil Dudka <kdudka@redhat.com> - 5.3.1-1
|
||||||
|
- Update to latest upstream release: Zsh 5.3.1
|
||||||
|
|
||||||
|
* Wed Dec 14 2016 Kamil Dudka <kdudka@redhat.com> - 5.3-2
|
||||||
|
- drop zsh-4.3.6-8bit-prompts.patch which was superseeded by an upstream patch
|
||||||
|
(see http://www.zsh.org/mla/users/2007/msg00468.html for details)
|
||||||
|
- drop undocumented zsh-test-C02-dev_fd-mock.patch
|
||||||
|
|
||||||
|
* Tue Dec 13 2016 Kamil Dudka <kdudka@redhat.com> - 5.3-1
|
||||||
|
- apply patches automatically to ease maintenance
|
||||||
|
- Update to latest upstream release: Zsh 5.3
|
||||||
|
|
||||||
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 27 2016 Kamil Dudka <kdudka@redhat.com> - 5.2-4
|
||||||
|
- prevent zsh from crashing when printing the "out of memory" message (#1300958)
|
||||||
|
|
||||||
|
* Thu Jan 07 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 5.2-3
|
||||||
|
- Add patch to fix VCS_INFO_nbvsformats bug.
|
||||||
|
|
||||||
|
* Fri Dec 25 2015 Adrien Vergé <adrienverge@gmail.com> - 5.2-2
|
||||||
|
- update zsh completion script for dnf to the latest upstream version
|
||||||
|
|
||||||
|
* Thu Dec 03 2015 Kamil Dudka <kdudka@redhat.com> - 5.2-1
|
||||||
|
- Update to latest upstream release: Zsh 5.2
|
||||||
|
|
||||||
|
* Thu Nov 05 2015 Kamil Dudka <kdudka@redhat.com> - 5.1.1-3
|
||||||
|
- make loading of module's dependencies work again (#1277996)
|
||||||
|
|
||||||
|
* Thu Oct 08 2015 Kamil Dudka <kdudka@redhat.com> - 5.1.1-2
|
||||||
|
- fix crash in ksh mode with -n and $HOME (#1269883)
|
||||||
|
|
||||||
|
* Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> - 5.1.1-1
|
||||||
|
- Update to latest upstream release: Zsh 5.1.1
|
||||||
|
|
||||||
|
* Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> - 5.1-1
|
||||||
|
- Update to latest upstream release: Zsh 5.1
|
||||||
|
- remove outdated workarounds in %%check
|
||||||
|
|
||||||
|
* Thu Jul 30 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-6
|
||||||
|
- fix handling of command substitution in math context
|
||||||
|
|
||||||
|
* Wed Jul 22 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-5
|
||||||
|
- prevent infinite recursion in ihungetc() (#1245712)
|
||||||
|
|
||||||
|
* Tue Jul 07 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-4
|
||||||
|
- backport completion for dnf (#1239337)
|
||||||
|
|
||||||
|
* Thu Jul 02 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-3
|
||||||
|
- backport completion-related upstream fixes (#1238544)
|
||||||
|
|
||||||
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.8-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 03 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.8-1
|
||||||
|
- Update to latest upstream release: Zsh 5.0.8
|
||||||
|
|
||||||
|
* Fri May 22 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-8
|
||||||
|
- fix SIGSEGV of the syntax check in ksh emulation mode (#1222867)
|
||||||
|
|
||||||
|
* Mon Apr 20 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-7
|
||||||
|
- fix SIGSEGV when handling heredocs and keyboard interrupt (#972624)
|
||||||
|
- queue signals when manipulating global state to avoid deadlock
|
||||||
|
|
||||||
|
* Sun Jan 25 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-6
|
||||||
|
- use correct allocation function in the new 'cd' code (#1183238)
|
||||||
|
|
||||||
|
* Fri Jan 23 2015 Kamil Dudka <kdudka@redhat.com> - 5.0.7-5
|
||||||
|
- suppress a warning about closing an already closed file descriptor (#1184002)
|
||||||
|
- improve handling of NULL in the 'cd' built-in (#1183238)
|
||||||
|
|
||||||
|
* Wed Nov 19 2014 Kamil Dudka <kdudka@redhat.com> - 5.0.7-4
|
||||||
|
- update documentation of POSIX_JOBS in the zshoptions.1 man page (#1162198)
|
||||||
|
|
||||||
|
* Tue Nov 18 2014 Kamil Dudka <kdudka@redhat.com> - 5.0.7-3
|
||||||
|
- replace an incorrect comment in /etc/zshenv (#1164313)
|
||||||
|
|
||||||
|
* Mon Nov 10 2014 Kamil Dudka <kdudka@redhat.com> - 5.0.7-2
|
||||||
|
- make the wait built-in work for already exited processes (#1162198)
|
||||||
|
|
||||||
|
* Wed Oct 08 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.7-1
|
||||||
|
- Update to latest upstream release: Zsh 5.0.7
|
||||||
|
|
||||||
|
* Thu Aug 28 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.6-1
|
||||||
|
- Update to latest upstream release: Zsh 5.0.6
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.5-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 17 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-7
|
||||||
|
- apply upstream patch which fixes CPU load issue (RHBZ#1120424)
|
||||||
|
|
||||||
|
* Wed Jul 09 2014 Adam Jackson <ajax@redhat.com> 5.0.5-6
|
||||||
|
- Fix missing 'fi' in %%post
|
||||||
|
|
||||||
|
* Thu Jul 03 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-5
|
||||||
|
- improve handling of /etc/shells
|
||||||
|
|
||||||
|
* Wed Jul 02 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-4
|
||||||
|
- fix FTBFS issue (RHBZ#1106713)
|
||||||
|
- remove individual _bindir setting; install to /usr/bin/ (RHBZ#1034060)
|
||||||
|
- require info package instead of /sbin/install-info binary
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Apr 08 2014 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.5-1
|
||||||
|
- Update to latest upstream release: Zsh 5.0.5
|
||||||
|
|
||||||
|
* Thu Jan 16 2014 James Antill <james@fedoraproject.org> - 5.0.2-8
|
||||||
|
- Remove unneeded build require on tetex.
|
||||||
|
|
||||||
|
* Sat Oct 26 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-7
|
||||||
|
- Require hostname package instead of /bin/hostname
|
||||||
|
|
||||||
|
* Tue Oct 22 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-6
|
||||||
|
- remove systemd completion, it delivers it's own now (RHBZ#1022039)
|
||||||
|
|
||||||
|
* Thu Aug 01 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-5
|
||||||
|
- update systemd completion (adds machinectl command)
|
||||||
|
|
||||||
|
* Tue Jun 25 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-4
|
||||||
|
- up-to-date systemd completion (#949003)
|
||||||
|
- apply patch for building for aarch64 (#926864)
|
||||||
|
|
||||||
|
* Mon Apr 15 2013 James Antill <james@fedoraproject.org> - 5.0.2-3
|
||||||
|
- Fix the changelog dates.
|
||||||
|
- Fix the texi itemx bug.
|
||||||
|
- Resolves: bug#927863
|
||||||
|
|
||||||
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 08 2013 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.2-1
|
||||||
|
- Update to new upstream version: Zsh 5.0.2
|
||||||
|
|
||||||
|
* Wed Nov 21 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 5.0.0-1
|
||||||
|
- Update to new upstream version: Zsh 5.0.0
|
||||||
|
|
||||||
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.17-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Mar 04 2012 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.17-1
|
||||||
|
- Update to new upstream version: Zsh 4.3.17
|
||||||
|
|
||||||
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.15-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Dec 24 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.15-1
|
||||||
|
- Update to new upstream version: Zsh 4.3.15
|
||||||
|
|
||||||
|
* Sat Dec 17 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-2
|
||||||
|
- change the License field to MIT (RHBZ#768548)
|
||||||
|
|
||||||
|
* Sat Dec 10 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.14-1
|
||||||
|
- Update to new upstream version: Zsh 4.3.14
|
||||||
|
|
||||||
|
* Sat Dec 03 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.13-1
|
||||||
|
- Update to new upstream version: Zsh 4.3.13
|
||||||
|
|
||||||
|
* Sat Aug 13 2011 Dominic Hopf <dmaphy@fedoraproject.org> - 4.3.12-1
|
||||||
|
- Update to new upstream version: Zsh 4.3.12
|
||||||
|
|
||||||
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.11-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 20 2011 Christopher Ailon <caillon@redhat.com> - 4.3.11-1
|
||||||
|
- Rebase to upstream version 4.3.11
|
||||||
|
|
||||||
|
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.3.10-6
|
||||||
|
- Rebuild for FTBFS https://bugzilla.redhat.com/show_bug.cgi?id=631197
|
||||||
|
- Remove deprecated PreReq, the packages aren't needed at runtime and they're
|
||||||
|
already in Requires(post,preun,etc): lines.
|
||||||
|
|
||||||
|
* Mon Mar 22 2010 James Antill <james@fedoraproject.org> - 4.3.10-5
|
||||||
|
- Add pathmunge to our /etc/zshrc, for profile.d compat.
|
||||||
|
- Resolves: bug#548960
|
||||||
|
|
||||||
|
* Fri Aug 7 2009 James Antill <james@fedoraproject.org> - 4.3.10-4
|
||||||
|
- Allow --excludedocs command to work!
|
||||||
|
- Resolves: bug#515986
|
||||||
|
|
||||||
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.10-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 20 2009 James Antill <james@fedoraproject.org> - 4.3.10-1
|
||||||
|
- Import new upstream 4.3.10
|
||||||
|
|
||||||
|
* Wed Jun 10 2009 Karsten Hopp <karsten@redhat.com> 4.3.9-4.1
|
||||||
|
- skip D02glob test on s390, too
|
||||||
|
|
||||||
|
* Mon Mar 2 2009 James Antill <james@fedoraproject.org> - 4.3.9-4
|
||||||
|
- Remove D02glob testcase on ppc/ppc64, and hope noone cares
|
||||||
|
|
||||||
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.9-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
Loading…
Reference in new issue