packages: ruby-xattr/ruby-xattr.spec, ruby-xattr/ruby-xattr-1.9.patch (NEW)...
aredridel
aredridel at pld-linux.org
Sat Sep 11 06:35:12 CEST 2010
Author: aredridel Date: Sat Sep 11 04:35:12 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- add 1.9 patch
---- Files affected:
packages/ruby-xattr:
ruby-xattr.spec (1.13 -> 1.14) , ruby-xattr-1.9.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/ruby-xattr/ruby-xattr.spec
diff -u packages/ruby-xattr/ruby-xattr.spec:1.13 packages/ruby-xattr/ruby-xattr.spec:1.14
--- packages/ruby-xattr/ruby-xattr.spec:1.13 Thu Mar 8 07:40:05 2007
+++ packages/ruby-xattr/ruby-xattr.spec Sat Sep 11 06:35:06 2010
@@ -8,6 +8,7 @@
Group: Development/Languages
Source0: http://www.theinternetco.net/projects/ruby/%{name}-%{version}.tar.gz
# Source0-md5: a47d8f164d6c9d88f54f853d2bd7d50a
+Patch0: %{name}-1.9.patch
URL: http://www.theinternetco.net/projects/ruby/ruby-xattr
BuildRequires: attr-devel
BuildRequires: rpmbuild(macros) >= 1.277
@@ -26,6 +27,7 @@
%prep
%setup -q
+%patch0 -p1
%build
ruby extconf.rb
@@ -61,6 +63,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.14 2010/09/11 04:35:06 aredridel
+- add 1.9 patch
+
Revision 1.13 2007/03/08 06:40:05 aredridel
- massive attack: correct ri output path for ruby 1.8.6
================================================================
Index: packages/ruby-xattr/ruby-xattr-1.9.patch
diff -u /dev/null packages/ruby-xattr/ruby-xattr-1.9.patch:1.1
--- /dev/null Sat Sep 11 06:35:12 2010
+++ packages/ruby-xattr/ruby-xattr-1.9.patch Sat Sep 11 06:35:06 2010
@@ -0,0 +1,67 @@
+diff -ur ruby-xattr-0.3.0-o//ext/xattr.c ruby-xattr-0.3.0/ext/xattr.c
+--- ruby-xattr-0.3.0-o//ext/xattr.c 2004-04-19 00:05:11.000000000 -0600
++++ ruby-xattr-0.3.0/ext/xattr.c 2010-09-10 22:34:20.000000000 -0600
+@@ -67,7 +67,7 @@
+ int lret;
+ int beg, end;
+ VALUE retval;
+- OpenFile *fptr;
++ rb_io_t *fptr;
+ FILE *f;
+
+ GetOpenFile(fobj, fptr);
+@@ -189,7 +189,7 @@
+ int lret, gret;
+ int beg, end;
+ VALUE retval;
+- OpenFile *fptr;
++ rb_io_t *fptr;
+ FILE *f;
+
+ GetOpenFile(fobj, fptr);
+@@ -302,7 +302,7 @@
+ int *size;
+ int ret;
+ VALUE retval;
+- OpenFile *fptr;
++ rb_io_t *fptr;
+ FILE *f;
+
+ GetOpenFile(fobj, fptr);
+@@ -352,7 +352,7 @@
+ Check_Type(aval, T_STRING);
+
+ ret = attr_set(StringValueCStr(fname), StringValueCStr(aname),
+- StringValueCStr(aval), RSTRING(aval)->len, 1);
++ StringValueCStr(aval), RSTRING_LEN(aval), 1);
+ if(ret == 0) {
+ return aval;
+ } else {
+@@ -374,7 +374,7 @@
+ VALUE fobj, aname, aval;
+ {
+ int ret;
+- OpenFile *fptr;
++ rb_io_t *fptr;
+ FILE *f;
+
+ GetOpenFile(fobj, fptr);
+@@ -384,7 +384,7 @@
+ Check_Type(aname, T_STRING);
+ Check_Type(aval, T_STRING);
+ ret = attr_setf(fileno(f), StringValueCStr(aname),
+- StringValueCStr(aval), RSTRING(aval)->len, 1);
++ StringValueCStr(aval), RSTRING_LEN(aval), 1);
+ if(ret == 0) {
+ return aval;
+ } else {
+@@ -430,7 +430,7 @@
+ VALUE fobj, aname;
+ {
+ int ret;
+- OpenFile *fptr;
++ rb_io_t *fptr;
+ FILE *f;
+
+ GetOpenFile(fobj, fptr);
+Only in ruby-xattr-0.3.0/ext: xattr.c~
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-xattr/ruby-xattr.spec?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list