-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zsh: fix - do not source bash files and fix build (#3431)
**Summary** Remove sourcing of /etc/profile for zsh Fix errors from sourcing bash scripts that are incompatible with zsh Add patches to correct make error **Test Plan** After reboot - Log into TTY, verify there are no errors, ran htop - Launch Konsole, verify there are no errors. Verify I can call commands from `solus-monorepo-helpers.zsh` - Verified `onefetch` and `mpv`, which rely on zsh functions, work as expected - Verify `which snap` returns the binary location for snap - Verify `/var/lib/snapd/desktop` is in $XDG_DATA_DIRS once and only once - Installed the Spotify snap via command line. Verify it is shown in the app menu and that it launches. - Verify flatpaks are seen in the app menu and can be launched from there. - Verified $XDG_DATA_DIRS was correct ``` /home/$user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop/:/var/lib/snapd/desktop ``` **Checklist** - [x] Package was built and tested against unstable
- Loading branch information
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 <fweimer@redhat.com> | ||
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