[packages/tcsh] Up to 6.24.16

arekm arekm at pld-linux.org
Thu Oct 29 09:10:17 CET 2026


commit f5b8c31279a484e55b987ca28ed47e7d9fae3561
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 29 01:27:57 2026 +0100

    Up to 6.24.16
    
    flocks is upstream maxlocks

 tcsh-6.21.00-fno-common.patch   | 22 ----------------
 tcsh-format-security.patch      | 12 ---------
 tcsh-misc.patch                 | 39 ++++++----------------------
 tcsh-no-timestamp-history.patch | 13 +++++-----
 tcsh-rlimit_locks.patch         | 56 -----------------------------------------
 tcsh-termios.patch              | 12 ---------
 tcsh-time.patch                 | 12 ---------
 tcsh.spec                       | 44 ++++++++++----------------------
 8 files changed, 27 insertions(+), 183 deletions(-)
---
diff --git a/tcsh.spec b/tcsh.spec
index d18a152..83694e4 100644
--- a/tcsh.spec
+++ b/tcsh.spec
@@ -16,32 +16,27 @@ Summary(ru.UTF-8):	Улучшеная версия csh
 Summary(tr.UTF-8):	Gelişmiş c-kabuğu (c-shell)
 Summary(uk.UTF-8):	Покращена верся csh
 Name:		tcsh
-Version:	6.20.00
-Release:	3
+Version:	6.24.16
+Release:	1
 License:	distributable
 Group:		Applications/Shells
-Source0:	ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.tar.gz
-# Source0-md5:	59d40ef40a68e790d95e182069431834
+Source0:	https://astron.com/pub/tcsh/%{name}-%{version}.tar.gz
+# Source0-md5:	448f53f12544abb627c9f078373b8ff5
 Source1:	csh.cshrc
 Source2:	csh.login
 Source3:	%{name}-skel-.login
 Patch0:		%{name}-misc.patch
-Patch1:		%{name}-termios.patch
 Patch2:		%{name}-no-timestamp-history.patch
-Patch3:		%{name}-time.patch
-Patch4:		%{name}-rlimit_locks.patch
 Patch5:		%{name}-no_TERMCAP.patch
-Patch6:		%{name}-format-security.patch
-Patch7:         tcsh-6.21.00-fno-common.patch
-URL:		http://www.tcsh.org/Home
-BuildRequires:	autoconf >= 2.59
-BuildRequires:	automake
+URL:		https://www.tcsh.org/
 BuildRequires:	groff
 # for gencat
 BuildRequires:	iconv
+BuildRequires:	libxcrypt-devel
 BuildRequires:	ncurses-devel >= 5.0
 %if %{with static}
 BuildRequires:	glibc-static
+BuildRequires:	libxcrypt-static
 BuildRequires:	ncurses-static
 %endif
 Requires(post,preun):	grep
@@ -117,30 +112,18 @@ W tym pakiecie jest statycznie skonsolidowany tcsh.
 %prep
 %setup -q
 %patch -P0 -p1
-%patch -P1	-p1
-%{!?with_working_history:%patch2 -p1}
-%patch -P3	-p1
-%patch -P4	-p1
+%{!?with_working_history:%patch -P2 -p1}
 %patch -P5 -p1
-%patch -P6 -p1
-%patch -P7 -p1
 
 %build
-cp /usr/share/automake/config.sub .
-%{__aclocal}
-%{__autoconf}
 %configure
 %if %{with static}
 %{__make} \
-	LDFLAGS="-static %{rpmldflags}" \
-	LIBES="-lncurses -lcrypt"
+	LDFLAGS="-static %{rpmldflags}"
 mv -f tcsh tcsh.static
 %endif
 %{__make} \
-	LDFLAGS="%{rpmldflags}" \
-	LIBES="-lncurses -lcrypt"
-
-%{__make} -C nls
+	LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -149,10 +132,10 @@ install -d $RPM_BUILD_ROOT/etc/skel
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# fix lang code
-%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{gr,el}
 # it's Ukrainian in UTF-8, not Russian in KOI8-U
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{ru_UA,uk}
+# untranslated strings
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/locale/C/LC_MESSAGES/tcsh.cat
 
 %if %{with static}
 install tcsh.static $RPM_BUILD_ROOT%{_bindir}
@@ -204,14 +187,13 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc NewThings FAQ eight-bit.txt complete.tcsh
+%doc FAQ Fixes README.md eight-bit.txt complete.tcsh
 
 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/csh.*
 %config(noreplace,missingok) %verify(not md5 mtime size) /etc/skel/.login
 
 %attr(755,root,root) %{_bindir}/csh
 %attr(755,root,root) %{_bindir}/tcsh
-#%{_datadir}/locale/C/LC_MESSAGES/tcsh.cat
 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/tcsh.cat
 %lang(el) %{_datadir}/locale/el/LC_MESSAGES/tcsh.cat
 %lang(es) %{_datadir}/locale/es/LC_MESSAGES/tcsh.cat
diff --git a/tcsh-6.21.00-fno-common.patch b/tcsh-6.21.00-fno-common.patch
deleted file mode 100644
index b5a0cf0..0000000
--- a/tcsh-6.21.00-fno-common.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 6974bc35a5cda6eab748e364bd76a860ca66968b Mon Sep 17 00:00:00 2001
-From: zoulasc <christos at zoulas.com>
-Date: Sat, 11 Jan 2020 11:16:51 -0500
-Subject: [PATCH] Remove extra variable definition that cause -fno-common build
- to fail (Werner Fink)
-
----
- tc.sig.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/tc.sig.c b/tc.sig.c
-index 77659ca..576605a 100644
---- a/tc.sig.c
-+++ b/tc.sig.c
-@@ -56,7 +56,6 @@ int alrmcatch_disabled; /* = 0; */
- int phup_disabled; /* = 0; */
- int pchild_disabled; /* = 0; */
- int pintr_disabled; /* = 0; */
--int handle_interrupt; /* = 0; */
- 
- int
- handle_pending_signals(void)
diff --git a/tcsh-format-security.patch b/tcsh-format-security.patch
deleted file mode 100644
index b0d0bbc..0000000
--- a/tcsh-format-security.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNpa tcsh-6.20.00.orig/sh.func.c tcsh-6.20.00/sh.func.c
---- tcsh-6.20.00.orig/sh.func.c	2018-01-12 17:44:47.000000000 +0000
-+++ tcsh-6.20.00/sh.func.c	2018-01-12 17:47:14.904085948 +0000
-@@ -2358,7 +2358,7 @@ setlim(struct limits *lp, int hard, RLIM
-     if (setrlimit(lp->limconst, &rlim) < 0) {
-        if ( ( lp->limconst == RLIMIT_LOCKS ) &&
- 	    ( errno == EINVAL ) ) {
--	       xprintf(CGETS(15, 5, "cannot set it on the current kernel\n"));
-+	       xprintf("%s", CGETS(15, 5, "cannot set it on the current kernel\n"));
- 	       return(0);
-        }
- # else /* BSDLIMIT */
diff --git a/tcsh-misc.patch b/tcsh-misc.patch
index 2acb4cc..fabe7db 100644
--- a/tcsh-misc.patch
+++ b/tcsh-misc.patch
@@ -1,7 +1,8 @@
-diff -urNpa tcsh-6.20.00.orig/config_f.h tcsh-6.20.00/config_f.h
---- tcsh-6.20.00.orig/config_f.h	2016-04-16 15:44:18.000000000 +0000
-+++ tcsh-6.20.00/config_f.h	2018-01-12 17:38:56.030115683 +0000
-@@ -74,7 +74,7 @@
+diff --git a/config_f.h b/config_f.h
+index 7c8a771..b0a8a3e 100644
+--- a/config_f.h
++++ b/config_f.h
+@@ -82,7 +82,7 @@
  /*
   * KAI          use "bye" command and rename "log" to "watchlog"
   */
@@ -10,7 +11,7 @@ diff -urNpa tcsh-6.20.00.orig/config_f.h tcsh-6.20.00/config_f.h
  
  /*
   * TESLA	drops DTR on logout. Historical note:
-@@ -86,12 +86,12 @@
+@@ -94,12 +94,12 @@
  /*
   * DOTLAST      put "." last in the default path, for security reasons
   */
@@ -25,7 +26,7 @@ diff -urNpa tcsh-6.20.00.orig/config_f.h tcsh-6.20.00/config_f.h
  
  /*
   * AUTOLOGOUT	tries to determine if it should set autologout depending
-@@ -132,7 +132,7 @@
+@@ -140,7 +140,7 @@
  /*
   * NEWGRP	Provide a newgrp builtin.
   */
@@ -34,29 +35,3 @@ diff -urNpa tcsh-6.20.00.orig/config_f.h tcsh-6.20.00/config_f.h
  
  /*
   * SYSMALLOC	Use the system provided version of malloc and friends.
-diff -urNpa tcsh-6.20.00.orig/Makefile.in tcsh-6.20.00/Makefile.in
---- tcsh-6.20.00.orig/Makefile.in	2015-08-24 20:09:04.000000000 +0000
-+++ tcsh-6.20.00/Makefile.in	2018-01-12 17:38:56.030115683 +0000
-@@ -144,8 +144,8 @@ CFLAGS = @CFLAGS@
- #DFLAGS=
- #DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"'
- ## The following is set by autoconf.
--DFLAGS = -D_PATH_TCSHELL='"${bindir}/tcsh"' @DFLAGS@ @CPPFLAGS@
--
-+#DFLAGS = -D_PATH_TCSHELL='"${bindir}/tcsh"' @DFLAGS@ @CPPFLAGS@
-+DFLAGS = @DFLAGS@ @CPPFLAGS@
- 
- ################################################################
- ## LDFLAGS.  Define something here if you need to
-diff -urNpa tcsh-6.20.00.orig/tcsh.man tcsh-6.20.00/tcsh.man
---- tcsh-6.20.00.orig/tcsh.man	2016-11-24 15:04:52.000000000 +0000
-+++ tcsh-6.20.00/tcsh.man	2018-01-12 17:38:56.031115683 +0000
-@@ -603,7 +603,7 @@ Repeating \fIdabbrev-expand\fR without a
- changes to the next previous word etc., skipping identical matches
- much like \fIhistory-search-backward\fR does.
- .TP 8
--.B delete-char \fR(not bound)
-+.B delete-char \fR(bound to `Del' if using the standard \fI/etc/csh.cshrc\fR)
- Deletes the character under the cursor.
- See also \fIdelete-char-or-list-or-eof\fR.
- Cursor behavior modified by \fBvimode\fR.
diff --git a/tcsh-no-timestamp-history.patch b/tcsh-no-timestamp-history.patch
index c650411..43917d5 100644
--- a/tcsh-no-timestamp-history.patch
+++ b/tcsh-no-timestamp-history.patch
@@ -1,12 +1,13 @@
-diff -urNpa tcsh-6.20.00.orig/sh.hist.c tcsh-6.20.00/sh.hist.c
---- tcsh-6.20.00.orig/sh.hist.c	2015-06-06 21:19:08.000000000 +0000
-+++ tcsh-6.20.00/sh.hist.c	2018-01-12 17:41:58.363104815 +0000
-@@ -1227,7 +1227,7 @@ rechist(Char *fname, int ref)
-     struct varent *shist;
+diff --git a/sh.hist.c b/sh.hist.c
+index f945aee..f1b55e1 100644
+--- a/sh.hist.c
++++ b/sh.hist.c
+@@ -1245,7 +1245,7 @@ rechist(Char *xfname, int ref)
      char path[MAXPATHLEN];
      struct stat st;
+     static Char *fname;
 -    static Char   *dumphist[] = {STRhistory, STRmhT, 0, 0};
 +    static Char   *dumphist[] = {STRhistory, STRmh, 0, 0};
  
-     if (fname == NULL && !ref) 
+     if (xfname == NULL && !ref)
  	return;
diff --git a/tcsh-rlimit_locks.patch b/tcsh-rlimit_locks.patch
deleted file mode 100644
index d78d223..0000000
--- a/tcsh-rlimit_locks.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-diff -urNpa tcsh-6.20.00.orig/nls/C/set15 tcsh-6.20.00/nls/C/set15
---- tcsh-6.20.00.orig/nls/C/set15	2006-03-02 18:46:45.000000000 +0000
-+++ tcsh-6.20.00/nls/C/set15	2018-01-12 17:43:52.104098035 +0000
-@@ -5,3 +5,4 @@ $set 15
- 2 remove
- 3 set
- 4 \040hard
-+5 cannot set it on the current kernel\n
-diff -urNpa tcsh-6.20.00.orig/sh.func.c tcsh-6.20.00/sh.func.c
---- tcsh-6.20.00.orig/sh.func.c	2016-10-18 17:26:42.000000000 +0000
-+++ tcsh-6.20.00/sh.func.c	2018-01-12 17:43:52.104098035 +0000
-@@ -2016,6 +2016,10 @@ struct limits limits[] =
-     { RLIMIT_RTTIME,	"maxrttime",	1,	"usec"		}, 
- # endif /* RLIMIT_RTTIME */ 
- 
-+# ifdef RLIMIT_LOCKS
-+    { RLIMIT_LOCKS,	"flocks",	1,	""		},
-+# endif /* RLIMIG_LOCKS */
-+
-     { -1, 		NULL, 		0, 	NULL		}
- };
- 
-@@ -2237,6 +2241,7 @@ plim(struct limits *lp, int hard)
- # endif /* BSDLIMIT */
-     RLIM_TYPE limit;
-     int     xdiv = lp->limdiv;
-+    int     limret;
- 
-     xprintf("%-13.13s", lp->limname);
- 
-@@ -2247,7 +2252,12 @@ plim(struct limits *lp, int hard)
- 	limit -= 0x20000000;
- #  endif /* aiws */
- # else /* BSDLIMIT */
--    (void) getrlimit(lp->limconst, &rlim);
-+    limret = getrlimit(lp->limconst, &rlim);
-+    if ( ( limret < 0 ) && 
-+	 ( errno == EINVAL ) &&
-+	 ( lp->limconst == RLIMIT_LOCKS ) ) {
-+	    rlim.rlim_max = rlim.rlim_cur = RLIM_INFINITY;
-+    }
-     limit = hard ? rlim.rlim_max : rlim.rlim_cur;
- # endif /* BSDLIMIT */
- 
-@@ -2347,6 +2357,11 @@ setlim(struct limits *lp, int hard, RLIM
- 	rlim.rlim_max = rlim.rlim_cur;
- 
-     if (setrlimit(lp->limconst, &rlim) < 0) {
-+       if ( ( lp->limconst == RLIMIT_LOCKS ) &&
-+	    ( errno == EINVAL ) ) {
-+	       xprintf(CGETS(15, 5, "cannot set it on the current kernel\n"));
-+	       return(0);
-+       }
- # else /* BSDLIMIT */
-     if (limit != RLIM_INFINITY && lp->limconst == RLIMIT_FSIZE)
- 	limit /= 512;
diff --git a/tcsh-termios.patch b/tcsh-termios.patch
deleted file mode 100644
index 9518d29..0000000
--- a/tcsh-termios.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNpa tcsh-6.20.00.orig/sh.h tcsh-6.20.00/sh.h
---- tcsh-6.20.00.orig/sh.h	2016-09-12 16:33:54.000000000 +0000
-+++ tcsh-6.20.00/sh.h	2018-01-12 17:40:23.463110471 +0000
-@@ -255,6 +255,8 @@ typedef long tcsh_number_t;
- # define DEV_DEV_COMPARE(x,y)   ((x) == (y))
- #endif /* DEV_DEV_COMPARE */
- 
-+#define POSIX
-+
- #ifdef _SEQUENT_
- # include <sys/procstats.h>
- #endif /* _SEQUENT_ */
diff --git a/tcsh-time.patch b/tcsh-time.patch
deleted file mode 100644
index 3ac9337..0000000
--- a/tcsh-time.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNpa tcsh-6.20.00.orig/sh.h tcsh-6.20.00/sh.h
---- tcsh-6.20.00.orig/sh.h	2018-01-12 17:40:23.000000000 +0000
-+++ tcsh-6.20.00/sh.h	2018-01-12 17:42:56.464101352 +0000
-@@ -261,7 +261,7 @@ typedef long tcsh_number_t;
- # include <sys/procstats.h>
- #endif /* _SEQUENT_ */
- #if (defined(POSIX) || SYSVREL > 0) && !defined(WINNT_NATIVE)
--# include <sys/times.h>
-+# include <time.h>
- #endif /* (POSIX || SYSVREL > 0) && !WINNT_NATIVE */
- 
- #ifdef NLS
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcsh.git/commitdiff/f5b8c31279a484e55b987ca28ed47e7d9fae3561



More information about the pld-cvs-commit mailing list