ABF is currently being migrated to new servers. Pull requests are currently not operational due to git upgrade, they will be fixed as soon as possible.
avatar
Rosa has added af7e169497
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "which-2.20.tar.bz2": 0eb8bf189c2957f50cacba744fe9304c565989b8
view file @ af7e169497
... ... --- /dev/null
... ... +++ b/which-2.12-fixinfo.patch
... ... @@ -0,0 +1,13 @@
1
--- which.info	2008-08-06 17:20:56.000000000 +0200
2
+++ which.info.oden	2008-12-25 22:31:44.000000000 +0100
3
@@ -6,6 +6,10 @@
4
 * Which: (which).                               Show full path of commands.
5
 END-INFO-DIR-ENTRY
6
 
7
+INFO-DIR-SECTION Utilities
8
+START-INFO-DIR-ENTRY
9
+* GNU/Which: (which).   The which command.
10
+END-INFO-DIR-ENTRY
11
 
12
 This file documents `which' version 2.x.
13
 
view file @ af7e169497
... ... --- /dev/null
... ... +++ b/which-2.19-afs.patch
... ... @@ -0,0 +1,41 @@
1
diff -Naur which-2.19/bash.c which-2.19.tpg/bash.c
2
--- which-2.19/bash.c	2008-01-18 18:03:40.000000000 +0000
3
+++ which-2.19.tpg/bash.c	2008-01-23 15:22:11.000000000 +0000
4
@@ -34,7 +34,6 @@
5
  */
6
 #define HAVE_GETGROUPS
7
 #undef SHELL
8
-#undef AFS
9
 #undef NOGROUP
10
 
11
 /*
12
@@ -251,7 +250,8 @@
13
 
14
   r = FS_EXISTS;
15
 
16
-#if defined (AFS)
17
+    if (getenv("AFS"))
18
+	{
19
   /* We have to use access(2) to determine access because AFS does not
20
      support Unix file system semantics.  This may produce wrong
21
      answers for non-AFS files when ruid != euid.  I hate AFS. */
22
@@ -261,7 +261,9 @@
23
     r |= FS_READABLE;
24
 
25
   return r;
26
-#else /* !AFS */
27
+	}
28
+    else
29
+	{ /* !AFS */
30
 
31
   /* Find out if the file is actually executable.  By definition, the
32
      only other criteria is that the file has an execute bit set that
33
@@ -305,7 +307,7 @@
34
     }
35
 
36
   return r;
37
-#endif /* !AFS */
38
+    } /* !AFS */
39
 }
40
 
41
 /* From bash-3.2 / general.c / line 534 ; Changes: Using 'strchr' instead of 'xstrchr'. */
view file @ af7e169497
... ... --- /dev/null
... ... +++ b/which-2.6.jbj.patch
... ... @@ -0,0 +1,11 @@
1
--- which-2.6/tilde/shell.c.jbj	Sat Jun 12 17:13:47 1999
2
+++ which-2.6/tilde/shell.c	Sat Jun 12 17:16:42 1999
3
@@ -62,7 +62,7 @@
4
   char *home_dir;
5
   struct passwd *entry;
6
 
7
-  home_dir = (char *)NULL;
8
+  home_dir = (char *)0;
9
   entry = getpwuid (getuid ());
10
   if (entry)
11
     home_dir = entry->pw_dir;
... ... --- /dev/null
... ... +++ b/which.spec
... ... @@ -0,0 +1,218 @@
1
Name:		which
2
Summary:	Displays where a particular program in your path is located
3
Version:	2.20
4
Release:	%mkrel 7
5
License:	GPLv3
6
Group:		System/Base
7
Source0:	ftp://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.bz2
8
URL:		ftp://ftp.gnu.org/gnu/which/
9
Patch0:		which-2.6.jbj.patch
10
Patch1:		which-2.12-fixinfo.patch
11
Patch2:		which-2.19-afs.patch
12
# (tpg) liberty-devel
13
BuildRequires:	binutils-devel
14
BuildRequires:	readline-devel
15
Requires(post):	info-install
16
Requires(preun): info-install
17
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
18
%description
19
The which command shows the full pathname of a specified program, if
20
the specified program is in your PATH.
21
22
%prep
23
%setup -q
24
%patch0 -p1
25
%patch1 -p0
26
%patch2 -p1
27
28
%build
29
%configure2_5x
30
%make
31
32
%install
33
rm -rf %{buildroot}
34
%makeinstall_std
35
36
rm -rf %{buildroot}%{_infodir}/dir
37
38
%clean
39
rm -rf %{buildroot}
40
41
%post
42
%_install_info %{name}.info
43
44
%preun
45
%_remove_install_info %{name}.info
46
47
%files
48
%defattr(-, root, root)
49
%doc README* AUTHORS EXAMPLES INSTALL NEWS
50
%{_bindir}/which
51
%{_mandir}/man1/which.1*
52
%{_infodir}/*
53
54
55
%changelog
56
* Fri May 06 2011 Oden Eriksson <oeriksson@mandriva.com> 2.20-7mdv2011.0
57
+ Revision: 670807
58
- mass rebuild
59
60
* Sat Dec 04 2010 Oden Eriksson <oeriksson@mandriva.com> 2.20-6mdv2011.0
61
+ Revision: 608168
62
- rebuild
63
64
* Mon Mar 15 2010 Oden Eriksson <oeriksson@mandriva.com> 2.20-5mdv2010.1
65
+ Revision: 520291
66
- rebuilt for 2010.1
67
68
* Sat Oct 03 2009 Funda Wang <fwang@mandriva.org> 2.20-4mdv2010.0
69
+ Revision: 452793
70
- rebuild
71
72
* Thu Dec 25 2008 Oden Eriksson <oeriksson@mandriva.com> 2.20-3mdv2009.1
73
+ Revision: 319106
74
- rediffed one fuzzy patch
75
76
* Thu Aug 07 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.20-1mdv2009.0
77
+ Revision: 265359
78
- update to new version 2.20
79
80
* Wed Jun 18 2008 Thierry Vignaud <tv@mandriva.org> 2.19-3mdv2009.0
81
+ Revision: 225925
82
- rebuild
83
84
* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 2.19-2mdv2008.1
85
+ Revision: 171172
86
- rebuild
87
88
* Wed Jan 23 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.19-1mdv2008.1
89
+ Revision: 157109
90
- new version
91
- rediff the AFS patch
92
- add missing buildrequires on binutils-devel and readline-devel
93
- new license policy
94
95
  + Olivier Blin <oblin@mandriva.com>
96
    - restore BuildRoot
97
98
  + Thierry Vignaud <tv@mandriva.org>
99
    - kill re-definition of %%buildroot on Pixel's request
100
101
* Tue Oct 16 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.17-1mdv2008.1
102
+ Revision: 98845
103
- new version
104
- bunzip patches
105
106
* Fri Aug 24 2007 Thierry Vignaud <tv@mandriva.org> 2.16-5mdv2008.0
107
+ Revision: 70944
108
- convert prereq
109
- Import which
110
111
112
113
* Sun Jul 02 2006 Stefan van der Eijk <stefan@mandriva.org> 2.16-4
114
- %%mkrel
115
116
* Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 2.16-3mdk
117
- Rebuild
118
119
* Sun Jan 23 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.16-2mdk
120
- rebuild
121
- drop .bz2 ending for man pages in %%files
122
- fix summary-ended-with-dot
123
124
* Thu Dec 11 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.16-1mdk
125
- new release
126
- rediff and simplify patch 3
127
128
* Tue Jul 22 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.14-5mdk
129
- rebuild
130
131
* Thu Jan 02 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.14-4mdk
132
- build release
133
134
* Mon Oct 28 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.14-3mdk
135
- remove useless prefix
136
- patch 2 : use access instead stat in AFS environment 
137
138
* Wed Aug 14 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.14-2mdk
139
- Automated rebuild with gcc 3.2-0.3mdk
140
141
* Fri Aug  2 2002 Jeff Garzik <jgarzik@mandrakesoft.com> 2.14-1mdk
142
- Version 2.14
143
- Use %%configure2_5x, %%makeinstall_std
144
- Do not regenerate autoconf/automake files, breaks build
145
146
* Tue May 07 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.13-5mdk
147
- Automated rebuild in gcc3.1 environment
148
149
* Fri Aug 17 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.13-4mdk
150
- new release
151
- sanitize spec file
152
153
* Sun Mar 04 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.12-4mdk
154
- Fix info files entry.
155
- Fix %%files.
156
157
* Fri Feb 23 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 2.12-3mdk
158
- Whoops, info files were not getting installed
159
160
* Fri Feb 23 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 2.12-2mdk
161
- Change specfile permissions (rpmlint warning)
162
- List more docs in doc macro
163
- Generate automake and autoconf-derived files in prep stage
164
165
* Mon Nov 13 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.12-1mdk
166
- new and shiny vesion.
167
168
* Tue Aug 22 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.11-1mdk
169
- BM
170
- 2.11
171
- Even More Cleanup Of Specs :-)
172
173
* Tue Jun 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.9-5mdk
174
- Clean up specs.
175
- Use makeinstall macros.
176
177
* Wed Apr  5 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 2.9-4mdk
178
- new group System/Base
179
- updated BuildRoot
180
181
* Fri Nov 5 1999 Damien Krotkine <damien@mandrakesoft.com>
182
- Mandrake release
183
184
* Wed Aug 18 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
185
- add defattr
186
187
* Sun Aug 08 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
188
- 2.8 :
189
	* aclocal.m4 was missing from the tar, resulting in
190
	  a build failure if autoconf isn't installed.
191
192
193
* Thu Jul 08 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
194
195
- Upgrade to the offical version of Gnu project.
196
- Rewriting the spec-files.
197
- 2.7 :
198
    * Support for aliases
199
    * Configure/compile fix in the `tilde' directory.
200
201
* Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
202
- Mandrake adaptions
203
- bzip2 man/info pages
204
- add de locale
205
- handle RPM_OPT_FLAGS
206
- Makefiles and source code are NOT docs.
207
208
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
209
- Injected new description and group.
210
211
* Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
212
- bumped spec number for initial rh 6.0 build
213
214
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
215
- translations modified for de, fr, tr
216
217
* Fri Jun 13 1997 Erik Troan <ewt@redhat.com>
218
- built against glibc

Comments