public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/fantasdic] f45: Fix up some deprecation warnings and crash on settings dialog
Date: Tue, 17 Nov 2026 07:43:00 GMT	[thread overview]
Message-ID: <179490138099.1.5253129740059755450.rpms-fantasdic-819647d84250@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fantasdic
Branch : f45
Commit : 819647d842508a8dc78df3cef4f66f2e96e8ef3a
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-11-17T16:41:56+09:00
Stats  : +63/-1 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/fantasdic/c/819647d842508a8dc78df3cef4f66f2e96e8ef3a?branch=f45

Log:
Fix up some deprecation warnings and crash on settings dialog

---
diff --git a/fantasdic-1.0-beta7-finalizer-argument.patch b/fantasdic-1.0-beta7-finalizer-argument.patch
new file mode 100644
index 0000000..9286064
--- /dev/null
+++ b/fantasdic-1.0-beta7-finalizer-argument.patch
@@ -0,0 +1,11 @@
+--- fantasdic-1.0-beta7.orig/lib/fantasdic/ui/ipc.rb	2026-11-17 16:07:41.607781071 +0900
++++ fantasdic-1.0-beta7/lib/fantasdic/ui/ipc.rb	2026-11-17 16:31:05.973332301 +0900
+@@ -202,7 +202,7 @@ module IPC
+ 
+             Gdk::Window.default_root_window.set_string(atom_name, window.xid)
+ 
+-            func = lambda do
++            func = lambda do |*|
+                 Gdk::Window.default_root_window.del_string(atom_name);
+                 false
+             end

diff --git a/fantasdic-1.0-beta7-remove-deprecation-const.patch b/fantasdic-1.0-beta7-remove-deprecation-const.patch
new file mode 100644
index 0000000..31ffb88
--- /dev/null
+++ b/fantasdic-1.0-beta7-remove-deprecation-const.patch
@@ -0,0 +1,42 @@
+diff -urp '--exclude=*~' '--exclude=*txt' '--exclude=ipc.rb' fantasdic-1.0-beta7.orig/lib/fantasdic/ui/main_app.rb fantasdic-1.0-beta7/lib/fantasdic/ui/main_app.rb
+--- fantasdic-1.0-beta7.orig/lib/fantasdic/ui/main_app.rb	2009-03-25 01:14:57.000000000 +0900
++++ fantasdic-1.0-beta7/lib/fantasdic/ui/main_app.rb	2026-11-17 16:11:43.536952930 +0900
+@@ -22,11 +22,11 @@ module UI
+ 
+     module Icon
+         icons_dir = File.join(Config::DATA_DIR, "icons")
+-        LOGO_16X16 = Gdk::Pixbuf.new(File.join(icons_dir,
++        LOGO_16X16 = GdkPixbuf::Pixbuf.new(:file => File.join(icons_dir,
+                                                "fantasdic_16x16.png"))
+-        LOGO_22X22 = Gdk::Pixbuf.new(File.join(icons_dir,
++        LOGO_22X22 = GdkPixbuf::Pixbuf.new(:file => File.join(icons_dir,
+                                                "fantasdic_22x22.png"))
+-        LOGO_48X48 = Gdk::Pixbuf.new(File.join(icons_dir,
++        LOGO_48X48 = GdkPixbuf::Pixbuf.new(:file => File.join(icons_dir,
+                                                "fantasdic_48x48.png"))
+         PRINT_SETUP = "stock_print-setup"
+     end
+diff -urp '--exclude=*~' '--exclude=*txt' '--exclude=ipc.rb' fantasdic-1.0-beta7.orig/lib/fantasdic/ui/preferences_dialog.rb fantasdic-1.0-beta7/lib/fantasdic/ui/preferences_dialog.rb
+--- fantasdic-1.0-beta7.orig/lib/fantasdic/ui/preferences_dialog.rb	2009-03-25 01:14:57.000000000 +0900
++++ fantasdic-1.0-beta7/lib/fantasdic/ui/preferences_dialog.rb	2026-11-17 16:09:30.532607272 +0900
+@@ -220,7 +220,7 @@ module UI
+                 entry.text = pref if pref and !pref.strip.empty?
+             end
+ 
+-            @list_store = Gtk::ListStore.new(Fixnum,String)
++            @list_store = Gtk::ListStore.new(Integer,String)
+                         
+             @dictionary_treeview.model = @list_store
+             @dictionary_treeview.selection.mode = Gtk::SELECTION_SINGLE
+diff -urp '--exclude=*~' '--exclude=*txt' '--exclude=ipc.rb' fantasdic-1.0-beta7.orig/lib/fantasdic/ui/result_text_view.rb fantasdic-1.0-beta7/lib/fantasdic/ui/result_text_view.rb
+--- fantasdic-1.0-beta7.orig/lib/fantasdic/ui/result_text_view.rb	2009-03-25 01:14:57.000000000 +0900
++++ fantasdic-1.0-beta7/lib/fantasdic/ui/result_text_view.rb	2026-11-17 16:13:07.939268531 +0900
+@@ -366,7 +366,7 @@ module UI
+                                :font_desc => DEFAULT_FONT)
+ 
+             create_tag("link", :foreground => 'blue',
+-                               :underline  => Pango::AttrUnderline::SINGLE,
++                               :underline  => Pango::Underline::SINGLE,
+                                :font_desc => DEFAULT_FONT)
+         end
+ 

diff --git a/fantasdic.spec b/fantasdic.spec
index 834b4e3..03f06ac 100644
--- a/fantasdic.spec
+++ b/fantasdic.spec
@@ -10,7 +10,7 @@ BuildRequires:	%1 \
 %define		rubyabi		1.9.1
 %endif
 
-%define		baserelease	30
+%define		baserelease	31
 
 
 %define		fullrel		%{?betaver:0.}%{baserelease}%{?betaver:.%betaver}
@@ -50,6 +50,10 @@ Patch18:	fantasdic-1.0-beta7-ruby32-file_exist.patch
 Patch19:	fantasdic-1.0-beta7-ruby32-misc-fix.patch
 # Dict server configuration update
 Patch20:	fantasdic-1.0-beta7-dict-server-update.patch
+# Remove deprecated constant usage
+Patch21:	fantasdic-1.0-beta7-remove-deprecation-const.patch
+# Fix up lambda definition for ObjectSpace.define_finalizer
+Patch22:	fantasdic-1.0-beta7-finalizer-argument.patch
 
 BuildArch:	noarch
 
@@ -95,6 +99,8 @@ unlink vendor_ruby
 %patch -P18 -p1
 %patch -P19 -p1
 %patch -P20 -p1
+%patch -P21 -p1
+%patch -P22 -p1
 
 %{__chmod} 0644 tools/*.rb
 %{__sed} -i.path -e 's|%{_bindir}/||' fantasdic.desktop
@@ -214,6 +220,9 @@ exit $STATUS
 %{ruby_vendorlibdir}/%{name}/
 
 %changelog
+* Tue Nov 17 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0-0.31.beta7
+- Fix up some deprecation warnings and crash on settings dialog
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.30.beta7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-11-17  7:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179490138099.1.5253129740059755450.rpms-fantasdic-819647d84250@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox