public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mkvtoolnix] rawhide: Support upcoming ruby4.1
@ 2026-11-19  6:03 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-19  6:03 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mkvtoolnix
Branch : rawhide
Commit : c4aaae867ae8a6f3cedbde643af80a28cb31f6f2
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-11-19T15:03:08+09:00
Stats  : +38/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mkvtoolnix/c/c4aaae867ae8a6f3cedbde643af80a28cb31f6f2?branch=rawhide

Log:
Support upcoming ruby4.1

---
diff --git a/mkvtoolnix-103.0-support-ruby4_1.patch b/mkvtoolnix-103.0-support-ruby4_1.patch
new file mode 100644
index 0000000..bb2844b
--- /dev/null
+++ b/mkvtoolnix-103.0-support-ruby4_1.patch
@@ -0,0 +1,33 @@
+From 1eddab5d8fb7f91446199d73916297aceb3eb35e Mon Sep 17 00:00:00 2001
+From: Moritz Bunkus <mo@bunkus.online>
+Date: Wed, 18 Nov 2026 17:11:13 +0100
+Subject: [PATCH] build system: fix syntax error for Ruby 4.1.0
+
+fixes #6334
+---
+ NEWS.md       |  2 ++
+ rake.d/pch.rb | 11 ++++++-----
+ 2 files changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/rake.d/pch.rb b/rake.d/pch.rb
+index e2230d656..c3018c175 100644
+--- a/rake.d/pch.rb
++++ b/rake.d/pch.rb
+@@ -646,11 +646,12 @@ PCH status: <%= c?(:USE_PRECOMPILED_HEADERS) ? "enabled" : "disabled" %>
+   @endblock_skip_save = false
+ 
+   END {
+-    next if @endblock_skip_save
+-    begin
+-      save_config
+-    rescue StandardError => e
+-      puts "WARNING: failed to save config: #{e}"
++    if !@endblock_skip_save
++      begin
++        save_config
++      rescue StandardError => e
++        puts "WARNING: failed to save config: #{e}"
++      end
+     end
+   }
+ 

diff --git a/mkvtoolnix.spec b/mkvtoolnix.spec
index c8f818f..e7f3660 100644
--- a/mkvtoolnix.spec
+++ b/mkvtoolnix.spec
@@ -6,6 +6,10 @@ License: GPL-2.0-or-later AND LGPL-2.1-or-later
 Source0: https://mkvtoolnix.download/sources/mkvtoolnix-%{version}.tar.xz
 Source1: https://mkvtoolnix.download/sources/mkvtoolnix-%{version}.tar.xz.sig
 Source2: https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt
+# Support ruby 4.1.0dev
+# https://codeberg.org/mbunkus/mkvtoolnix/issues/6334
+# https://codeberg.org/mbunkus/mkvtoolnix/commit/1eddab5d8fb7f91446199d73916297aceb3eb35e
+Patch0:  mkvtoolnix-103.0-support-ruby4_1.patch
 URL: https://mkvtoolnix.download/
 BuildRequires: boost-devel
 BuildRequires: cmake(Qt6Concurrent)
@@ -68,6 +72,7 @@ This package contains the QT graphical interface for these utilities.
 %prep
 %{openpgpverify} --keyring='%{S:2}' --signature='%{S:1}' --data='%{S:0}'
 %setup -q
+%patch -P0 -p1
 rm -rf lib/{fmt,libebml,libmatroska,nlohmann-json,pugixml,utf8-cpp}
 rm -rf rake.d/vendor drake
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19  6:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  6:03 [rpms/mkvtoolnix] rawhide: Support upcoming ruby4.1 Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox