[packages/ruby-tk] Rel 3
arekm
arekm at pld-linux.org
Mon Mar 30 08:24:45 CEST 2026
commit 03f88119b1cc052cd85396026621b615916f067e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 30 08:24:24 2026 +0200
Rel 3
ruby-tk-extconf-encoding.patch | 22 ++++++++++++++++++++++
ruby-tk.spec | 4 +++-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/ruby-tk.spec b/ruby-tk.spec
index 95198cf..c34e71b 100644
--- a/ruby-tk.spec
+++ b/ruby-tk.spec
@@ -2,12 +2,13 @@
Summary: Tcl/Tk interface for Ruby
Name: ruby-%{pkgname}
Version: 0.6.0
-Release: 2
+Release: 3
License: 2-clause BSDL
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: 819d6471c69f8ee17e6c4976881e7f30
Patch0: ruby-tk-shebang.patch
+Patch1: ruby-tk-extconf-encoding.patch
URL: https://github.com/ruby/tk
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
@@ -48,6 +49,7 @@ Dokumentacji w formacie ri dla %{name}.
%prep
%setup -q -n %{pkgname}-%{version}
%patch -P0 -p1
+%patch -P1 -p1
%build
cd ext/tk
diff --git a/ruby-tk-extconf-encoding.patch b/ruby-tk-extconf-encoding.patch
new file mode 100644
index 0000000..4e3814b
--- /dev/null
+++ b/ruby-tk-extconf-encoding.patch
@@ -0,0 +1,22 @@
+--- a/ext/tk/extconf.rb
++++ b/ext/tk/extconf.rb
+@@ -1166,7 +1166,8 @@ def find_tcl(tcllib, stubs, version_list,
+ libnames.find{|libname|
+ sufx_list.find{|sufx|
+ print(".")
+- dir_enum.map{|fname|
++ dir_enum.map{|fname0|
++ fname = fname0.dup.force_encoding('UTF-8')
+ if fname =~ /^.*(#{libname}.*#{sufx})\.(#{exts}).*$/
+ [fname, $1, $2]
+ end
+@@ -1306,7 +1307,8 @@ def find_tk(tklib, stubs, version_list,
+ libnames.find{|libname|
+ sufx_list.find{|sufx|
+ print(".")
+- dir_enum.map{|fname|
++ dir_enum.map{|fname0|
++ fname = fname0.dup.force_encoding('UTF-8')
+ if fname =~ /^.*(#{libname}.*#{sufx})\.(#{exts}).*$/
+ [fname, $1, $2]
+ end
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-tk.git/commitdiff/03f88119b1cc052cd85396026621b615916f067e
More information about the pld-cvs-commit
mailing list