From eff28e87fb3cab855aaf2d6ce6494fd298ba069957c02239f82299494479bdc7 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 20 Nov 2020 11:54:44 +0000 Subject: [PATCH] Update to tcsh V6.22.03 OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=106 --- tcsh-6.15.00-pipe.dif | 2 +- tcsh-6.17.06-dspmbyte.dif | 10 +++++----- tcsh-6.18.03-catalogs.dif | 4 ++-- tcsh-6.22.02-double_tilde.dif | 21 --------------------- tcsh-6.22.02-history-merge.dif | 20 -------------------- tcsh-6.22.02-local-dotlock.dif | 2 +- tcsh-6.22.02.tar.gz | 3 --- tcsh-6.22.03.tar.gz | 3 +++ tcsh.changes | 22 ++++++++++++++++++++++ tcsh.spec | 6 +----- 10 files changed, 35 insertions(+), 58 deletions(-) delete mode 100644 tcsh-6.22.02-double_tilde.dif delete mode 100644 tcsh-6.22.02-history-merge.dif delete mode 100644 tcsh-6.22.02.tar.gz create mode 100644 tcsh-6.22.03.tar.gz diff --git a/tcsh-6.15.00-pipe.dif b/tcsh-6.15.00-pipe.dif index ecb1fc0..46b903c 100644 --- a/tcsh-6.15.00-pipe.dif +++ b/tcsh-6.15.00-pipe.dif @@ -4,7 +4,7 @@ --- sh.dol.c +++ sh.dol.c 2016-11-25 08:00:30.455106978 +0000 -@@ -426,6 +426,8 @@ Dgetdol(void) +@@ -428,6 +428,8 @@ Dgetdol(void) size_t cbp = 0; int old_pintr_disabled; diff --git a/tcsh-6.17.06-dspmbyte.dif b/tcsh-6.17.06-dspmbyte.dif index 994279a..ab24f5d 100644 --- a/tcsh-6.17.06-dspmbyte.dif +++ b/tcsh-6.17.06-dspmbyte.dif @@ -52,7 +52,7 @@ # endif /* SETLOCALEBUG */ --- sh.set.c +++ sh.set.c 2016-11-25 08:02:39.616478025 +0000 -@@ -1164,11 +1164,11 @@ update_dspmbyte_vars(void) +@@ -1160,11 +1160,11 @@ update_dspmbyte_vars(void) dstr1 = vp->vec[0]; if(eq (dstr1, STRsjis)) iskcode = 1; @@ -66,7 +66,7 @@ iskcode = 4; else if ((dstr1[0] - '0') >= 0 && (dstr1[0] - '0') <= 3) { iskcode = 0; -@@ -1252,7 +1252,7 @@ update_dspmbyte_vars(void) +@@ -1248,7 +1248,7 @@ update_dspmbyte_vars(void) _enable_mbdisp = 0; dspmbyte_ls = 0; } @@ -75,7 +75,7 @@ { Char mbmapstr[300]; for (lp = 0; lp < 256; lp++) -@@ -1260,7 +1260,7 @@ update_dspmbyte_vars(void) +@@ -1256,7 +1256,7 @@ update_dspmbyte_vars(void) mbmapstr[lp] = 0; setcopy(STRmbytemap, mbmapstr, VAR_READWRITE); } @@ -84,7 +84,7 @@ } /* dspkanji/dspmbyte autosetting */ -@@ -1269,6 +1269,7 @@ void +@@ -1265,6 +1265,7 @@ void autoset_dspmbyte(const Char *pcp) { int i; @@ -92,7 +92,7 @@ static const struct dspm_autoset_Table { Char *n; Char *v; -@@ -1291,13 +1292,18 @@ autoset_dspmbyte(const Char *pcp) +@@ -1287,13 +1288,18 @@ autoset_dspmbyte(const Char *pcp) #if defined(HAVE_NL_LANGINFO) && defined(CODESET) static const struct dspm_autoset_Table dspmc[] = { { STRstarutfstar8, STRutf8 }, diff --git a/tcsh-6.18.03-catalogs.dif b/tcsh-6.18.03-catalogs.dif index 6e26969..c5d6d7d 100644 --- a/tcsh-6.18.03-catalogs.dif +++ b/tcsh-6.18.03-catalogs.dif @@ -143,8 +143,8 @@ if (path == NULL) return; -- (void) xsnprintf(trypath, sizeof(trypath), "%s/en/LC_MESSAGES/tcsh.cat", -+ (void) xsnprintf(trypath, sizeof(trypath), "%s/en/LC_MESSAGES/tcsh", +- (void) xsnprintf(trypath, sizeof(trypath), "%s/C/LC_MESSAGES/tcsh.cat", ++ (void) xsnprintf(trypath, sizeof(trypath), "%s/C/LC_MESSAGES/tcsh", path); if (stat(trypath, &st) == -1) return; diff --git a/tcsh-6.22.02-double_tilde.dif b/tcsh-6.22.02-double_tilde.dif deleted file mode 100644 index c01c330..0000000 --- a/tcsh-6.22.02-double_tilde.dif +++ /dev/null @@ -1,21 +0,0 @@ -Date: Fri, 10 Jul 2020 18:13:45 +0200 -From tcsh-bounces@astron.com Fri Jul 10 16:49:57 2020 -From: Hans Rosenfeld -To: tcsh@astron.com -Subject: [Tcsh] ~~ expansion broken again -Return-Path: -User-Agent: Mutt/1.12.2 (2019-09-21) -Sender: Tcsh - ---- sh.glob.c -+++ sh.glob.c 2017-04-05 12:54:37.623870649 +0000 -@@ -74,6 +74,9 @@ globtilde(Char *s) - { - Char *name, *u, *home, *res; - -+ if (s[1] == '~') -+ return s; -+ - u = s; - for (s++; *s && *s != '/' && *s != ':'; s++) - continue; diff --git a/tcsh-6.22.02-history-merge.dif b/tcsh-6.22.02-history-merge.dif deleted file mode 100644 index 6b9b2d6..0000000 --- a/tcsh-6.22.02-history-merge.dif +++ /dev/null @@ -1,20 +0,0 @@ -Subject: [Tcsh] tcsh 6.22.00 does not merge history (was: Re: tcsh Deadlock with SIGHUP) -Message-ID: <20200223205556.GA2917@panix.com> -References: <20200120140836.GA3123@panix.com> - - ---- - sh.hist.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- sh.hist.c -+++ sh.hist.c 2020-02-24 12:21:37.003639844 +0000 -@@ -1295,7 +1295,7 @@ rechist(Char *fname, int ref) - #endif - } - getexit(osetexit); -- if (setexit()) -+ if (!setexit()) - loadhist(fname, 1); - resexit(osetexit); - } diff --git a/tcsh-6.22.02-local-dotlock.dif b/tcsh-6.22.02-local-dotlock.dif index b269f46..5932922 100644 --- a/tcsh-6.22.02-local-dotlock.dif +++ b/tcsh-6.22.02-local-dotlock.dif @@ -186,7 +186,7 @@ Avoid left over dot lock file after reboot } /* Save history before exiting the shell. */ -@@ -1284,11 +1286,12 @@ rechist(Char *fname, int ref) +@@ -1288,11 +1290,12 @@ rechist(Char *fname, int ref) jmp_buf_t osetexit; if (lock) { #ifndef WINNT_NATIVE diff --git a/tcsh-6.22.02.tar.gz b/tcsh-6.22.02.tar.gz deleted file mode 100644 index 41bb1ea..0000000 --- a/tcsh-6.22.02.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed287158ca1b00ba477e8ea57bac53609838ebcfd05fcb05ca95021b7ebe885b -size 1006405 diff --git a/tcsh-6.22.03.tar.gz b/tcsh-6.22.03.tar.gz new file mode 100644 index 0000000..33493ee --- /dev/null +++ b/tcsh-6.22.03.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be2cfd653d2a0c7f506d2dd14c12324ba749bd484037be6df44a3973f52262b7 +size 1012758 diff --git a/tcsh.changes b/tcsh.changes index 244c254..e530894 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Fri Nov 20 11:48:50 UTC 2020 - Dr. Werner Fink + +- Update to tcsh bug fix version V6.22.03 - 20201118 + * Fix $x:q:h and $x:q:t to not crash (alzwded) with strings containing / + * Block SIGHUP while writing history/directory stack (Brett Frankenberger) + * Fixed reversed test that broke history merging (Brett Frankenberger) + * Prevent recursive entry for writing history (Brett Frankenberger) + * alxwded@github, keep track of the :g and :a modifiers per modifier they + affect. + * alzwded@github, fix infinite loop with :gas variable modifier + * PR/88: Add a Q: modifier that preserves empty arguments leaving :q + alone. +- Port the patches to V6.22.03 + * tcsh-6.15.00-pipe.dif + * tcsh-6.17.06-dspmbyte.dif + * tcsh-6.18.03-catalogs.dif + * tcsh-6.22.02-local-dotlock.dif +- Remove patches now upstream + * tcsh-6.22.02-double_tilde.dif + * tcsh-6.22.02-history-merge.dif + ------------------------------------------------------------------- Wed Jul 15 07:34:33 UTC 2020 - Dr. Werner Fink diff --git a/tcsh.spec b/tcsh.spec index f27f91a..1c76943 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -17,7 +17,7 @@ Name: tcsh -Version: 6.22.02 +Version: 6.22.03 Release: 0 Summary: The C SHell License: BSD-3-Clause @@ -34,8 +34,6 @@ Patch5: tcsh-6.17.06-dspmbyte.dif Patch6: tcsh-6.18.03-catalogs.dif Patch7: tcsh-6.22.02-workaround-common.patch Patch8: tcsh-6.22.02-local-dotlock.dif -Patch9: tcsh-6.22.02-history-merge.dif -Patch10: tcsh-6.22.02-double_tilde.dif BuildRequires: autoconf BuildRequires: fdupes BuildRequires: ncurses-devel @@ -63,8 +61,6 @@ correction, a history mechanism, job control, and a C-like syntax. %patch6 -b .catalogs %patch7 -p 1 -b .workaround %patch8 -p 0 -b .dotlock -%patch9 -p 0 -b .histmrg -%patch10 -p0 -b .dbltilde %patch0 -b .0 %build