* [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ruby-gio2/files/, dev-ruby/ruby-gio2/
@ 2018-07-06 6:50 Hans de Graaff
0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2018-07-06 6:50 UTC (permalink / raw
To: gentoo-commits
commit: 6a901b89076b3f86dd9cebd8134267d02fc70cb3
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 6 04:40:36 2018 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Jul 6 06:49:28 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a901b89
dev-ruby/ruby-gio2: backport fix for failing test
Closes: https://bugs.gentoo.org/645876
Package-Manager: Portage-2.3.40, Repoman-2.3.9
.../files/ruby-gio2-3.1.1-schema-path.patch | 28 ++++++++++++++++++++++
dev-ruby/ruby-gio2/ruby-gio2-3.1.1.ebuild | 4 +++-
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/dev-ruby/ruby-gio2/files/ruby-gio2-3.1.1-schema-path.patch b/dev-ruby/ruby-gio2/files/ruby-gio2-3.1.1-schema-path.patch
new file mode 100644
index 00000000000..437a9b8513c
--- /dev/null
+++ b/dev-ruby/ruby-gio2/files/ruby-gio2-3.1.1-schema-path.patch
@@ -0,0 +1,28 @@
+From f9bb159674c4eb25f99550fa8594fcbf97ed8cae Mon Sep 17 00:00:00 2001
+From: Kouhei Sutou <kou@clear-code.com>
+Date: Mon, 30 Jan 2017 23:09:31 +0900
+Subject: [PATCH] gio2 test: fix path
+
+GitHub: fix #990
+
+Reported by Mamoru TASAKA. Thanks!!!
+---
+ gio2/test/test-settings.rb | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gio2/test/test-settings.rb b/gio2/test/test-settings.rb
+index b16341c84..5a287f1e9 100644
+--- a/gio2/test/test-settings.rb
++++ b/gio2/test/test-settings.rb
+@@ -108,7 +108,10 @@ def need_keyfile_settings_backend
+ need_keyfile_settings_backend
+ keyfile = Tempfile.new(["settings", ".ini"])
+ backend = Gio::keyfile_settings_backend_new(keyfile.path, "/", "keyfile_settings")
+- schema_source = Gio::SettingsSchemaSource.new(fixture_path("schema"), nil, true)
++ schema_dir = fixture_path("schema", "default")
++ schema_source = Gio::SettingsSchemaSource.new(schema_dir,
++ nil,
++ true)
+ schema = schema_source.lookup("jp.ruby-gnome2.test.settings", true)
+ settings = Gio::Settings.new(schema,
+ backend,
diff --git a/dev-ruby/ruby-gio2/ruby-gio2-3.1.1.ebuild b/dev-ruby/ruby-gio2/ruby-gio2-3.1.1.ebuild
index c208c579977..346b4158f8e 100644
--- a/dev-ruby/ruby-gio2/ruby-gio2-3.1.1.ebuild
+++ b/dev-ruby/ruby-gio2/ruby-gio2-3.1.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24"
inherit ruby-ng-gnome2
@@ -14,6 +14,8 @@ ruby_add_rdepend ">=dev-ruby/ruby-glib2-${PV}
>=dev-ruby/ruby-gobject-introspection-${PV}"
all_ruby_prepare() {
+ epatch "${FILESDIR}/${P}-schema-path.patch"
+
# Avoid unneeded dependency on test-unit-notify.
sed -i -e '/notify/ s:^:#:' \
test/gio2-test-utils.rb || die
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-06 6:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06 6:50 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ruby-gio2/files/, dev-ruby/ruby-gio2/ Hans de Graaff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox