glib2 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/glib2/extconf.rb +1 -1
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_maincontext.c +2 -2
- data/lib/mkmf-gnome2.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 114b557fb08132d104a3765fceeec5914924df1a
|
4
|
+
data.tar.gz: d39ae609531346125c74ae73c5b748d99f6c4ff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 343d92c6362402568c548d5e3ea98f516dcfc806765adcae43d9f0005422d54171f05a5163409c220d96ab142e9cf2a2e5f57aaea4f6b25d1d6bf79ba351bd4f
|
7
|
+
data.tar.gz: 213fc9d53598e24a4b372faf191baa282568fe0420c0e9acd613135662873c2a5c429b0c16a95a963299be86150d3df6912ebc645d64bf4c5c21f310183face4
|
data/ext/glib2/extconf.rb
CHANGED
@@ -42,7 +42,7 @@ have_func("rb_errinfo", ruby_header)
|
|
42
42
|
have_func("rb_sourcefile", ruby_header)
|
43
43
|
have_func("rb_sourceline", ruby_header)
|
44
44
|
have_func("ruby_set_current_source", ruby_header)
|
45
|
-
have_func("
|
45
|
+
have_func("rb_thread_call_without_gvl", ruby_header)
|
46
46
|
have_func("ruby_native_thread_p", ruby_header)
|
47
47
|
have_func("rb_thread_call_with_gvl", ruby_header)
|
48
48
|
have_func("rb_str_new_cstr", ruby_header)
|
data/ext/glib2/rbglib.h
CHANGED
@@ -70,8 +70,8 @@ rg_poll(GPollFD *ufds, guint nfsd, gint timeout)
|
|
70
70
|
info.result = 0;
|
71
71
|
|
72
72
|
g_static_private_set(&rg_polling_key, GINT_TO_POINTER(TRUE), NULL);
|
73
|
-
#ifdef
|
74
|
-
|
73
|
+
#ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL
|
74
|
+
rb_thread_call_without_gvl(rg_poll_in_blocking, &info, RUBY_UBF_IO, NULL);
|
75
75
|
#else
|
76
76
|
rb_thread_blocking_region(rg_poll_in_blocking, &info, RUBY_UBF_IO, NULL);
|
77
77
|
#endif
|
data/lib/mkmf-gnome2.rb
CHANGED
@@ -478,6 +478,8 @@ def package_platform
|
|
478
478
|
:fedora
|
479
479
|
elsif File.exist?("/etc/redhat-release")
|
480
480
|
:redhat
|
481
|
+
elsif File.exist?("/etc/SuSE-release")
|
482
|
+
:suse
|
481
483
|
elsif find_executable("brew")
|
482
484
|
:homebrew
|
483
485
|
elsif find_executable("port")
|
@@ -495,6 +497,7 @@ def normalize_native_package_info(native_package_info)
|
|
495
497
|
native_package_info ||= {}
|
496
498
|
native_package_info = native_package_info.dup
|
497
499
|
native_package_info[:fedora] ||= native_package_info[:redhat]
|
500
|
+
native_package_info[:suse] ||= native_package_info[:fedora]
|
498
501
|
native_package_info
|
499
502
|
end
|
500
503
|
|
@@ -512,6 +515,8 @@ def install_missing_native_package(native_package_info)
|
|
512
515
|
install_command = "apt-get install -V -y #{package_command_line}"
|
513
516
|
when :fedora, :redhat
|
514
517
|
install_command = "yum install -y #{package_command_line}"
|
518
|
+
when :suse
|
519
|
+
install_command = "zypper --non-interactive install #{package_command_line}"
|
515
520
|
when :homebrew
|
516
521
|
need_super_user_priviledge = false
|
517
522
|
install_command = "brew install #{package_command_line}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|