-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove sourcing of /etc/profile for zsh Fix errors from bash scripts that are incompatible with zsh and sourcing bash scripts the user did not intend for zsh
- Loading branch information
Tracey Clark
authored and
Tracey Clark
committed
Oct 24, 2024
1 parent
5f148f6
commit 3e44b2f
Showing
6 changed files
with
113 additions
and
10 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
packages/z/zsh/files/006-52383-Avoid-incompatible-pointer-types-in-terminfo-g.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
From 4c89849c98172c951a9def3690e8647dae76308f Mon Sep 17 00:00:00 2001 | ||
From: Florian Weimer <[email protected]> | ||
Date: Fri, 8 Dec 2023 21:58:07 +0100 | ||
Subject: [PATCH] 52383: Avoid incompatible pointer types in terminfo global | ||
variable checks | ||
|
||
--- | ||
configure.ac | 12 ++++++------ | ||
1 file changed, 6 insertions(+), 6 deletions(-) | ||
|
||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -1766,27 +1766,27 @@ if test x$zsh_cv_path_term_header != xno | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/Src/Modules/pcre.c | ||
+++ b/Src/Modules/pcre.c | ||
@@ -152,7 +152,7 @@ zpcre_get_substrings(pcre2_code *pat, ch | ||
int nelem = captured_count - 1; | ||
/* Set to the offsets of the complete match */ | ||
if (want_offset_pair) { | ||
- sprintf(offset_all, "%ld %ld", ovec[0], ovec[1]); | ||
+ sprintf(offset_all, "%zd %zd", ovec[0], ovec[1]); | ||
setsparam("ZPCRE_OP", ztrdup(offset_all)); | ||
} | ||
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
<Name>zsh</Name> | ||
<Homepage>https://www.zsh.org/</Homepage> | ||
<Packager> | ||
<Name>Reilly Brogan</Name> | ||
<Email>[email protected]</Email> | ||
<Name>Tracey Clark</Name> | ||
<Email>[email protected]</Email> | ||
</Packager> | ||
<License>MIT</License> | ||
<PartOf>system.utils</PartOf> | ||
|
@@ -1397,12 +1397,12 @@ | |
</Files> | ||
</Package> | ||
<History> | ||
<Update release="32"> | ||
<Date>2024-05-11</Date> | ||
<Update release="33"> | ||
<Date>2024-08-05</Date> | ||
<Version>5.9</Version> | ||
<Comment>Packaging update</Comment> | ||
<Name>Reilly Brogan</Name> | ||
<Email>[email protected]</Email> | ||
<Name>Tracey Clark</Name> | ||
<Email>[email protected]</Email> | ||
</Update> | ||
</History> | ||
</PISI> |