packages: nss_extrausers/nss_extrausers.spec, nss_extrausers/lfs.patch (NEW...
glen
glen at pld-linux.org
Tue Feb 23 15:25:35 CET 2010
Author: glen Date: Tue Feb 23 14:25:35 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- add large offset bits patch from debian
---- Files affected:
packages/nss_extrausers:
nss_extrausers.spec (1.3 -> 1.4) , lfs.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nss_extrausers/nss_extrausers.spec
diff -u packages/nss_extrausers/nss_extrausers.spec:1.3 packages/nss_extrausers/nss_extrausers.spec:1.4
--- packages/nss_extrausers/nss_extrausers.spec:1.3 Sat Jul 18 15:23:25 2009
+++ packages/nss_extrausers/nss_extrausers.spec Tue Feb 23 15:25:30 2010
@@ -3,13 +3,14 @@
Summary(pl.UTF-8): Moduł NSS dostarczający dodatkowe pliki passwd, group i shadow
Name: nss_extrausers
Version: 0.2
-Release: 1
+Release: 3
License: LGPL
Group: Base
Source0: http://ftp.debian.org/debian/pool/main/libn/libnss-extrausers/libnss-extrausers_%{version}.orig.tar.gz
# Source0-md5: 68f13e0dd0523a77182cac165dc5491b
Patch0: %{name}-makefile.patch
Patch1: %{name}-pld.patch
+Patch2: lfs.patch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -26,6 +27,7 @@
%setup -q -n libnss-extrausers-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
CC="%{__cc}"
@@ -55,7 +57,7 @@
%files
%defattr(644,root,root,755)
%doc README
-%attr(755,root,root) /%{_libdir}/*.so*
+%attr(755,root,root) /%{_libdir}/*.so.2
%dir %{_var}/lib/extrausers
%config(noreplace) %verify(not md5 mtime size) %{_var}/lib/extrausers/passwd
%config(noreplace) %verify(not md5 mtime size) %{_var}/lib/extrausers/group
@@ -67,6 +69,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2010/02/23 14:25:30 glen
+- add large offset bits patch from debian
+
Revision 1.3 2009/07/18 13:23:25 hawk
- fixed for PLD, now it works, release 1
@@ -75,4 +80,3 @@
Revision 1.1 2009/07/16 21:12:21 hawk
- initial, doesn't work yet
-
================================================================
Index: packages/nss_extrausers/lfs.patch
diff -u /dev/null packages/nss_extrausers/lfs.patch:1.1
--- /dev/null Tue Feb 23 15:25:35 2010
+++ packages/nss_extrausers/lfs.patch Tue Feb 23 15:25:30 2010
@@ -0,0 +1,36 @@
+--- libnss-extrausers-0.2.orig/group.c
++++ libnss-extrausers-0.2/group.c
+@@ -29,6 +29,7 @@
+ Lesser General Public License for more details.
+ */
+ #define _GNU_SOURCE 1
++#define _FILE_OFFSET_BITS 64
+
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -119,7 +120,9 @@
+ gid_t t_gid;
+ char *t_name,*t_passwd;
+ char **t_mem;
++ off_t last_position;
+
++ last_position = ftello(stream);
+ flockfile(stream);
+ while( 1 ) {
+ buffer[buflen - 1] = '\xff';
+@@ -139,6 +142,7 @@
+ if( buffer[buflen - 1] != '\xff' || h == NULL ) {
+ funlockfile(stream);
+ *errnop = ERANGE;
++ fseeko(stream, last_position, SEEK_SET);
+ return NSS_STATUS_TRYAGAIN;
+ }
+ while( isspace(*h) && h != p ) {
+@@ -177,6 +181,7 @@
+ t_mem = parse_list(h,buffer,buflen,errnop);
+ if( t_mem == NULL ){
+ funlockfile(stream);
++ fseeko(stream, last_position, SEEK_SET);
+ return NSS_STATUS_TRYAGAIN;
+ }
+ if( t_gid < MINGID ) {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nss_extrausers/nss_extrausers.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list