From f7a90dcecfb34a4cc1d5cd4c7dac534c5d4937b5 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Jan 23 2022 06:02:13 +0000 Subject: replace patch --- diff --git a/rubygem-glib2-3.4.4-rubywrapper-pollutes-env.patch b/rubygem-glib2-3.4.4-rubywrapper-pollutes-env.patch deleted file mode 100644 index 04d21f9..0000000 --- a/rubygem-glib2-3.4.4-rubywrapper-pollutes-env.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glib2-3.4.4/test/test-spawn.rb.env 2013-02-28 13:32:06.205560101 +0900 -+++ glib2-3.4.4/test/test-spawn.rb 2013-02-28 14:03:14.029586308 +0900 -@@ -35,7 +35,9 @@ - - def test_async_clear_environment - only_not_windows -- if RbConfig.respond_to?(:ruby) -+ if File.exist?('/usr/bin/ruby-mri') -+ ruby = '/usr/bin/ruby-mri' -+ elsif RbConfig.respond_to?(:ruby) - ruby = RbConfig.ruby - else - ruby = File.join(RbConfig::CONFIG['bindir'], diff --git a/rubygem-glib2-3.5.1-rubywrapper-pollutes-env.patch b/rubygem-glib2-3.5.1-rubywrapper-pollutes-env.patch new file mode 100644 index 0000000..81a5215 --- /dev/null +++ b/rubygem-glib2-3.5.1-rubywrapper-pollutes-env.patch @@ -0,0 +1,13 @@ +--- glib2-3.5.1/test/test-spawn.rb.env 2022-01-23 13:23:35.823775546 +0900 ++++ glib2-3.5.1/test/test-spawn.rb 2022-01-23 13:25:04.325532503 +0900 +@@ -37,7 +37,9 @@ class TestGLibSpawn < Test::Unit::TestCa + only_not_windows + only_not_scl + +- if RbConfig.respond_to?(:ruby) ++ if File.exist?('/usr/bin/ruby-mri') ++ ruby = '/usr/bin/ruby-mri' ++ elsif RbConfig.respond_to?(:ruby) + ruby = RbConfig.ruby + else + ruby = File.join(RbConfig::CONFIG['bindir'],