Accepting request 888711 from shells

- Update to tcsh bug fix version V6.22.04 - 20210426
  * Don't crash with 'bindkey "^0" clear-screen' (Karl Jeacle)
  * Fix $x:q:h and $x:q:t return the whole string for strings
    not containing /
- Port patches
  * tcsh-6.16.00-norm-cmd.dif
  * tcsh-6.17.06-dspmbyte.dif
  * tcsh-6.18.03-colorls.dif
  * tcsh-6.22.02-local-dotlock.dif
- Delete patch now upstream fixed
  * tcsh-6.22.03-unintentional.patch
- Add keyring and signature
  * tcsh-6.22.04.tar.gz.asc
  * tcsh.keyring

- Fix the fix tcsh-6.22.03-unintentional.patch
  * It changes the expected results

- Add patch  tcsh-6.22.03-unintentional.patch
  * fix unintentional bug of the head/tail modifiers

OBS-URL: https://build.opensuse.org/request/show/888711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tcsh?expand=0&rev=75
This commit is contained in:
Dominique Leuenberger 2021-04-29 20:44:25 +00:00 committed by Git OBS Bridge
commit 226663808f
10 changed files with 106 additions and 21 deletions

View File

@ -1,5 +1,9 @@
---
ed.defns.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
--- ed.defns.c --- ed.defns.c
+++ ed.defns.c 2007-08-28 10:02:42.862588122 +0000 +++ ed.defns.c 2021-04-27 07:32:34.710964878 +0000
@@ -1404,16 +1404,6 @@ editinit(void) @@ -1404,16 +1404,6 @@ editinit(void)
f->desc = CSAVS(3, 52, "Execute command"); f->desc = CSAVS(3, 52, "Execute command");

View File

@ -6,7 +6,7 @@
4 files changed, 22 insertions(+), 15 deletions(-) 4 files changed, 22 insertions(+), 15 deletions(-)
--- sh.c --- sh.c
+++ sh.c 2016-11-25 08:02:39.616478025 +0000 +++ sh.c 2021-04-27 07:35:35.059651991 +0000
@@ -863,9 +863,9 @@ main(int argc, char **argv) @@ -863,9 +863,9 @@ main(int argc, char **argv)
/* PATCH IDEA FROM Issei.Suzuki VERY THANKS */ /* PATCH IDEA FROM Issei.Suzuki VERY THANKS */
#if defined(DSPMBYTE) #if defined(DSPMBYTE)
@ -20,7 +20,7 @@
{ {
autoset_dspmbyte(str2short(tcp)); autoset_dspmbyte(str2short(tcp));
--- sh.func.c --- sh.func.c
+++ sh.func.c 2016-11-25 08:02:39.616478025 +0000 +++ sh.func.c 2021-04-27 07:36:57.210162751 +0000
@@ -1420,14 +1420,6 @@ dosetenv(Char **v, struct command *c) @@ -1420,14 +1420,6 @@ dosetenv(Char **v, struct command *c)
} }
#endif /* apollo */ #endif /* apollo */
@ -28,7 +28,7 @@
- /* dspkanji/dspmbyte autosetting */ - /* dspkanji/dspmbyte autosetting */
- /* PATCH IDEA FROM Issei.Suzuki VERY THANKS */ - /* PATCH IDEA FROM Issei.Suzuki VERY THANKS */
-#if defined(DSPMBYTE) -#if defined(DSPMBYTE)
- if(eq(vp, STRLANG) && !adrof(CHECK_MBYTEVAR)) { - if (eq(vp, STRLANG) && !adrof(CHECK_MBYTEVAR)) {
- autoset_dspmbyte(lp); - autoset_dspmbyte(lp);
- } - }
-#endif -#endif
@ -51,10 +51,10 @@
dont_free = 0; dont_free = 0;
# endif /* SETLOCALEBUG */ # endif /* SETLOCALEBUG */
--- sh.set.c --- sh.set.c
+++ sh.set.c 2016-11-25 08:02:39.616478025 +0000 +++ sh.set.c 2021-04-27 07:38:12.412808424 +0000
@@ -1160,11 +1160,11 @@ update_dspmbyte_vars(void) @@ -1160,11 +1160,11 @@ update_dspmbyte_vars(void)
dstr1 = vp->vec[0]; dstr1 = vp->vec[0];
if(eq (dstr1, STRsjis)) if (eq (dstr1, STRsjis))
iskcode = 1; iskcode = 1;
- else if (eq(dstr1, STReuc)) - else if (eq(dstr1, STReuc))
+ else if (eq(dstr1, STReuc) || eq(dstr1, STReucjp) || eq(dstr1, STRGB2312)) + else if (eq(dstr1, STReuc) || eq(dstr1, STReucjp) || eq(dstr1, STRGB2312))
@ -112,7 +112,7 @@
if (*codeset != '\0') { if (*codeset != '\0') {
for (i = 0; dspmc[i].n; i++) { for (i = 0; dspmc[i].n; i++) {
--- tc.const.c --- tc.const.c
+++ tc.const.c 2016-11-25 08:02:39.616478025 +0000 +++ tc.const.c 2021-04-27 07:35:35.059651991 +0000
@@ -130,10 +130,12 @@ Char STRmmliteral[] = { '-', 'G', '\0' } @@ -130,10 +130,12 @@ Char STRmmliteral[] = { '-', 'G', '\0' }
Char STRmmliteral[] = { '-', '-', 'l', 'i', 't', 'e', 'r', 'a', 'l', '\0' }; Char STRmmliteral[] = { '-', '-', 'l', 'i', 't', 'e', 'r', 'a', 'l', '\0' };
# endif # endif

View File

@ -12,7 +12,7 @@
}; };
#define nvariables (sizeof(variables)/sizeof(variables[0])) #define nvariables (sizeof(variables)/sizeof(variables[0]))
@@ -321,7 +322,7 @@ parseLS_COLORS(const Char *value) @@ -323,7 +324,7 @@ parseLS_COLORS(const Char *value)
size_t i, len; size_t i, len;
const Char *v; /* pointer in value */ const Char *v; /* pointer in value */
char *c; /* pointer in colors */ char *c; /* pointer in colors */
@ -21,7 +21,7 @@
jmp_buf_t osetexit; jmp_buf_t osetexit;
size_t omark; size_t omark;
@@ -378,13 +379,10 @@ parseLS_COLORS(const Char *value) @@ -380,13 +381,10 @@ parseLS_COLORS(const Char *value)
if ((Char)variables[i].variable[0] == (v[0] & CHAR) && if ((Char)variables[i].variable[0] == (v[0] & CHAR) &&
(Char)variables[i].variable[1] == (v[1] & CHAR)) (Char)variables[i].variable[1] == (v[1] & CHAR))
break; break;
@ -38,7 +38,7 @@
} }
break; break;
} }
@@ -443,12 +441,13 @@ print_color(const Char *fname, size_t le @@ -445,12 +443,13 @@ print_color(const Char *fname, size_t le
break; break;
} }
if (i == nvariables) { if (i == nvariables) {

View File

@ -172,7 +172,7 @@ Avoid left over dot lock file after reboot
#endif /* #ifndef _DOTLOCK_H_ */ #endif /* #ifndef _DOTLOCK_H_ */
--- sh.hist.c --- sh.hist.c
+++ sh.hist.c 2020-02-19 09:48:57.640589111 +0000 +++ sh.hist.c 2020-02-19 09:48:57.640589111 +0000
@@ -1209,9 +1209,11 @@ fmthist(int fmt, ptr_t ptr) @@ -1219,9 +1219,11 @@ fmthist(int fmt, ptr_t ptr)
} }
static void static void
@ -186,7 +186,7 @@ Avoid left over dot lock file after reboot
} }
/* Save history before exiting the shell. */ /* Save history before exiting the shell. */
@@ -1288,11 +1290,12 @@ rechist(Char *fname, int ref) @@ -1300,11 +1302,12 @@ rechist(Char *fname, int ref)
jmp_buf_t osetexit; jmp_buf_t osetexit;
if (lock) { if (lock) {
#ifndef WINNT_NATIVE #ifndef WINNT_NATIVE

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be2cfd653d2a0c7f506d2dd14c12324ba749bd484037be6df44a3973f52262b7
size 1012758

3
tcsh-6.22.04.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eb16356243218c32f39e07258d72bf8b21e62ce94bb0e8a95e318b151397e231
size 1012977

6
tcsh-6.22.04.tar.gz.asc Normal file
View File

@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iEYEABECAAYFAmCG8OgACgkQcREqsWyzOzpG9gCfamrA+lSmiEOdpSe2VhLDf53K
PQIAoMv2/YXJONISwE0uUGXyI6MpB0tr
=Rw/9
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Tue Apr 27 07:43:18 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Update to tcsh bug fix version V6.22.04 - 20210426
* Don't crash with 'bindkey "^0" clear-screen' (Karl Jeacle)
* Fix $x:q:h and $x:q:t return the whole string for strings
not containing /
- Port patches
* tcsh-6.16.00-norm-cmd.dif
* tcsh-6.17.06-dspmbyte.dif
* tcsh-6.18.03-colorls.dif
* tcsh-6.22.02-local-dotlock.dif
- Delete patch now upstream fixed
* tcsh-6.22.03-unintentional.patch
- Add keyring and signature
* tcsh-6.22.04.tar.gz.asc
* tcsh.keyring
-------------------------------------------------------------------
Thu Apr 22 10:32:44 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Fix the fix tcsh-6.22.03-unintentional.patch
* It changes the expected results
-------------------------------------------------------------------
Mon Nov 30 13:26:45 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- Add patch tcsh-6.22.03-unintentional.patch
* fix unintentional bug of the head/tail modifiers
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 20 11:48:50 UTC 2020 - Dr. Werner Fink <werner@suse.de> Fri Nov 20 11:48:50 UTC 2020 - Dr. Werner Fink <werner@suse.de>

43
tcsh.keyring Normal file
View File

@ -0,0 +1,43 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGiBEg60Q8RBAC89+Oyi+iU1dMftAqXKh9Ml2PDCRk+Q6gwSY2BwmnKrPYvLSx9
/YApjDp4BzhjaMCiDtDkbVDO3JuLQqUsCUWRJr9UxgfkQPMx3obkgoyCCvUcG5eK
9CHeztjz5UK3jOzD939UtupUXs+5z4dK1oAFFEL3sV6m5O4cuHyeWpjLCwCg9LYw
mG2wIB65/2619W2kRMShDwkD/1KweB5mmXdQCDpzSg02Q4kGOzWmN2Dpv5kvKd9L
j/qxkj5PFOJ56Rmm04K0lPE6AnDgvEeuSqO8pkA8OY5IQNIjlgg3tshoMBRdsj9J
LKv67smQXy01eQmadJWoiIZFuSLX7nrRLm3x3i1K4/tcKorXoD5QBgOWaYFzkOcQ
5jrwA/9tn0MEkkVqez88xGhOjq6jooRWrP2lhNWb+Q7ayEvW9Wm9CYS0dXxlCCJf
qBOc+cZo8iVVbqiOzwAQ7uAAUv8azuaeRWpOD7MSjkXjYtkPwZevEd6xFKODaB2B
DO4WMlxO9mp3Q/gPfrM41v9n33tYsAzQMW7c9W5mX/XH2Cv/57QyQ2hyaXN0b3Mg
Wm91bGFzIChOZXRCU0Qga2V5KSA8Y2hyaXN0b3NAbmV0YnNkLm9yZz6IZAQTEQIA
JAIbAwYLCQgHAwIDFQIDAxYCAQIeAQIXgAUCV7RsLgUJIkWeFwAKCRBxESqxbLM7
Oi/LA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7bpOz3nlDvVBLnysJfF4s/3+ZumbeQLBesC
RkezasfZrAs6Dqnxq3Y0kKfnoCSV0rU/JW0vRC+XucQ576VxQup8s0RsYSDN6/5k
rS/pKjqUDa2Lx16sXleQgzMIV2NwLWt5m9/A2fF3+lDO4x9k58+M8Po4poERadY1
mxxT+5w2SBCm/4zaEICloLc1o2JeXRNawOnv3zVZJad/phlFOMsrI5t0aamjtn4L
25W7YNtGVSJEAPdrMGji3TcRlUFcyj/Wim6rHJToUtVbSbEsjbCHYzUm39EC9cub
n9n3Mac+rAA5vGQDnXx7vVBfIz4ZD4zwrKk8evTSgL7fY+sqcUAMjezWgrnMxfS2
NdvS+gCBdNY0WyaL55+PsDfC3obXlqLvSk5JO4WX2RsGqYIjg2YPnBX64hH+NyZN
/uNkpflA+MNIl10nkR4Cw9e26vTAVn0nA8zYXI1p4v3YGNFhA9YL29G0BSMlrY9I
uh8wNoSz5UPvpZEjcTyQ8gmIV5Ko4uKdyWjV7jWrefKPkkGfCDnQLCyFbuDD9tT4
hvMvR5kWMnt+0n5eL++Ua19vGO4q6HIPY8zcM1/25eZwhXiV0QnPCHDYqYhPBBgR
AgAPAhsMBQJXtGxGBQkiRZ0QAAoJEHERKrFsszs6IlQAnjLT4D/+k6uneuOjbxTK
3fhT6pGrAJ42qJm0ptKqlSBwuYo2Ci36ZIQCaQ==
=IJYi
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -1,7 +1,7 @@
# #
# spec file for package tcsh # spec file for package tcsh
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,17 @@
Name: tcsh Name: tcsh
Version: 6.22.03 Version: 6.22.04
Release: 0 Release: 0
Summary: The C SHell Summary: The C SHell
License: BSD-3-Clause License: BSD-3-Clause
Group: System/Shells Group: System/Shells
URL: http://www.tcsh.org/ URL: http://www.tcsh.org/
Source: ftp.astron.com:/pub/%{name}/%{name}-%{version}.tar.gz Source0: ftp.astron.com:/pub/%{name}/%{name}-%{version}.tar.gz
Source1: ftp.astron.com:/pub/%{name}/%{name}-%{version}.tar.gz.asc
Source2: bindkey.tcsh Source2: bindkey.tcsh
Source3: complete.tcsh Source3: complete.tcsh
Source4: tcsh.keyring
Patch0: tcsh-6.21.00.dif Patch0: tcsh-6.21.00.dif
Patch1: tcsh-6.15.00-pipe.dif Patch1: tcsh-6.15.00-pipe.dif
Patch2: tcsh-6.16.00-norm-cmd.dif Patch2: tcsh-6.16.00-norm-cmd.dif