tags 593025 + patch
tags 593025 + pending
thanks

Ryan,

I've prepared an NMU for dpkg-ruby (versioned as 0.3.6+nmu1) and
will uploaded it the archive in a minute.  Patch attached, and pushed to
git://git.debian.org/~jcristau/dpkg-ruby

Cheers,
Julien
diff -Nru dpkg-ruby-0.3.6/debian/changelog dpkg-ruby-0.3.6+nmu1/debian/changelog
--- dpkg-ruby-0.3.6/debian/changelog	2010-01-30 08:22:11.000000000 +0100
+++ dpkg-ruby-0.3.6+nmu1/debian/changelog	2010-08-26 17:44:03.000000000 +0200
@@ -1,3 +1,11 @@
+dpkg-ruby (0.3.6+nmu1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Use StringValuePtr instead of the long-deprecated (and removed in ruby
+    1.9.1) STR2CSTR (closes: #593025).
+
+ -- Julien Cristau <jcris...@debian.org>  Thu, 26 Aug 2010 17:43:59 +0200
+
 dpkg-ruby (0.3.6) unstable; urgency=low
 
   * switch to ruby 1.9.1 (Closes: #565848)
diff -Nru dpkg-ruby-0.3.6/ext/debian_version/Version.cpp dpkg-ruby-0.3.6+nmu1/ext/debian_version/Version.cpp
--- dpkg-ruby-0.3.6/ext/debian_version/Version.cpp	2010-01-30 08:22:11.000000000 +0100
+++ dpkg-ruby-0.3.6+nmu1/ext/debian_version/Version.cpp	2010-08-26 17:43:09.000000000 +0200
@@ -6,8 +6,8 @@
 extern "C" {
 
     static VALUE cmp_version(VALUE self, VALUE anObject, VALUE cmpType, VALUE anOtherObject) {
-        int res = debVS.CmpVersion(STR2CSTR(anObject),STR2CSTR(anOtherObject));
-        char * cmp = STR2CSTR(cmpType);
+        int res = debVS.CmpVersion(StringValuePtr(anObject),StringValuePtr(anOtherObject));
+        char * cmp = StringValuePtr(cmpType);
         if(!strcmp(cmp, "lt") || !strcmp(cmp, "<") || !strcmp(cmp, "<<")) {
             if(res < 0)
                 return Qtrue;

Attachment: signature.asc
Description: Digital signature

Reply via email to