Control: tags 1075457 + patch

Dear maintainer,

I've prepared an NMU for ruby-eb (versioned as 2.6-4.1). The diff
is attached to this message.

Regards.

diff -Nru ruby-eb-2.6/debian/changelog ruby-eb-2.6/debian/changelog
--- ruby-eb-2.6/debian/changelog	2022-07-01 01:10:29.000000000 +0200
+++ ruby-eb-2.6/debian/changelog	2025-04-19 15:25:59.000000000 +0200
@@ -1,3 +1,10 @@
+ruby-eb (2.6-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply patch from TODOROKI Shin-ichi to fix FTBFS. (Closes: #1075457)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sat, 19 Apr 2025 15:25:59 +0200
+
 ruby-eb (2.6-4) unstable; urgency=medium
 
   [ Cédric Boutillier ]
diff -Nru ruby-eb-2.6/debian/patches/eb_newer_ruby.patch ruby-eb-2.6/debian/patches/eb_newer_ruby.patch
--- ruby-eb-2.6/debian/patches/eb_newer_ruby.patch	1970-01-01 01:00:00.000000000 +0100
+++ ruby-eb-2.6/debian/patches/eb_newer_ruby.patch	2025-04-19 15:25:57.000000000 +0200
@@ -0,0 +1,35 @@
+From: TODOROKI Shin-ichi <todorok...@gmail.com>
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075457#14
+
+Index: ruby-eb-2.6/eb.c
+===================================================================
+--- ruby-eb-2.6.orig/eb.c
++++ ruby-eb-2.6/eb.c
+@@ -401,7 +401,7 @@ reb_setsubbook(VALUE obj, VALUE sbook)
+ }
+ 
+ static VALUE
+-reb_getsubbook(VALUE obj, VALUE sbook)
++reb_getsubbook(VALUE obj)
+ {
+     EB_Book *eb;
+     int r;
+@@ -1097,7 +1097,7 @@ read_binary(EB_Book * eb, long maxlen, i
+                 break;
+         }
+     }
+-    rb_obj_taint(robj);
++    rb_obj_id(robj);
+ 
+     return iterateflag ? INT2NUM(readbytes) : robj;
+ }
+@@ -1368,7 +1368,7 @@ font2bitmapformat(struct ExtFont *font,
+     };
+ 
+     (*conv_func) (font->bitmap, width, height, buffer, &size);
+-    robj = rb_tainted_str_new(buffer, size);
++    robj = rb_str_new(buffer, size);
+     free(buffer);
+     return robj;
+ }
diff -Nru ruby-eb-2.6/debian/patches/series ruby-eb-2.6/debian/patches/series
--- ruby-eb-2.6/debian/patches/series	2022-07-01 01:10:29.000000000 +0200
+++ ruby-eb-2.6/debian/patches/series	2025-04-19 15:24:47.000000000 +0200
@@ -1,3 +1,4 @@
 ruby191.patch
 fix_env_path.patch
 eb_privacy.patch
+eb_newer_ruby.patch

Reply via email to