From 5c082f8e2c635fb38e1ed2dd03faf0301c720894 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 27 Jun 2016 18:53:02 +0200 Subject: [PATCH] update to 2.21 --- .gitignore | 1 + sources | 1 + which-2.19-afs.patch | 41 ----------------------------------------- which.spec | 10 +++++----- which2.csh | 2 -- which2.sh | 1 - 6 files changed, 7 insertions(+), 49 deletions(-) delete mode 100644 which-2.19-afs.patch diff --git a/.gitignore b/.gitignore index f15ce18..e93fa2c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ which-2.16.tar.gz which-2.18.tar.gz which-2.19.tar.gz /which-2.20.tar.gz +/which-2.21.tar.gz diff --git a/sources b/sources index 6e1301b..3f5daa9 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 95be0501a466e515422cde4af46b2744 which-2.20.tar.gz +097ff1a324ae02e0a3b0369f07a7544a which-2.21.tar.gz diff --git a/which-2.19-afs.patch b/which-2.19-afs.patch deleted file mode 100644 index f9acce1..0000000 --- a/which-2.19-afs.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -up which-2.19/bash.c.afs which-2.19/bash.c ---- which-2.19/bash.c.afs 2008-01-18 19:03:40.000000000 +0100 -+++ which-2.19/bash.c 2008-01-25 11:41:14.000000000 +0100 -@@ -34,7 +34,6 @@ - */ - #define HAVE_GETGROUPS - #undef SHELL --#undef AFS - #undef NOGROUP - - /* -@@ -251,7 +250,7 @@ file_status (char const* name) - - r = FS_EXISTS; - --#if defined (AFS) -+ if (getenv("AFS")) { - /* We have to use access(2) to determine access because AFS does not - support Unix file system semantics. This may produce wrong - answers for non-AFS files when ruid != euid. I hate AFS. */ -@@ -261,8 +260,9 @@ file_status (char const* name) - r |= FS_READABLE; - - return r; --#else /* !AFS */ -- -+ } -+ else /* !AFS */ -+ { - /* Find out if the file is actually executable. By definition, the - only other criteria is that the file has an execute bit set that - we can use. The same with whether or not a file is readable. */ -@@ -305,7 +305,7 @@ file_status (char const* name) - } - - return r; --#endif /* !AFS */ -+ } /* !AFS */ - } - - /* From bash-3.2 / general.c / line 534 ; Changes: Using 'strchr' instead of 'xstrchr'. */ diff --git a/which.spec b/which.spec index 52b8daf..6183969 100644 --- a/which.spec +++ b/which.spec @@ -1,14 +1,13 @@ Summary: Displays where a particular program in your path is located Name: which -Version: 2.20 -Release: 13%{?dist} +Version: 2.21 +Release: 1%{?dist} License: GPLv3 Group: Applications/System Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh Source2: which2.csh Url: https://savannah.gnu.org/projects/which/ -Patch: which-2.19-afs.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: readline-devel Requires(preun): /sbin/install-info @@ -21,8 +20,6 @@ the specified program is in your PATH. %prep %setup -q -%patch -p1 -b .afs - %build %configure @@ -60,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/*/* %changelog +* Mon Jun 27 2016 Than Ngo - 2.21-1 +- update to 2.21 + * Fri Feb 05 2016 Fedora Release Engineering - 2.20-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/which2.csh b/which2.csh index 7845784..da9655e 100644 --- a/which2.csh +++ b/which2.csh @@ -1,5 +1,3 @@ # Initialization script for csh -# export AFS if you are in AFS environment - # alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' diff --git a/which2.sh b/which2.sh index 234861e..fe1afc8 100644 --- a/which2.sh +++ b/which2.sh @@ -1,4 +1,3 @@ # Initialization script for bash and sh -# export AFS if you are in AFS environment alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot'