Hello community,
here is the log from the commit of package rubygem-pkg-config for
openSUSE:Factory checked in at 2017-06-07 09:52:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-pkg-config (Old)
and /work/SRC/openSUSE:Factory/.rubygem-pkg-config.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-pkg-config"
Wed Jun 7 09:52:08 2017 rev:12 rq:499914 version:1.2.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-pkg-config/rubygem-pkg-config.changes
2017-05-27 13:11:50.790799492 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-pkg-config.new/rubygem-pkg-config.changes
2017-06-07 09:52:09.270400244 +0200
@@ -1,0 +2,24 @@
+Tue May 30 05:18:33 UTC 2017 - [email protected]
+
+- updated to version 1.2.3
+ see installed NEWS
+
+ == 1.2.3 - 2017-05-29
+
+ === Fixes
+
+ * Supported *-mingw32 Rubies without MSYS2 again.
+
+ == 1.2.2 - 2017-05-29
+
+ === Improvements
+
+ * Supported path normalization for MSYS2.
+
+ == 1.2.1 - 2017-05-29
+
+ === Improvements
+
+ * Supported MSYS2.
+
+-------------------------------------------------------------------
Old:
----
pkg-config-1.2.0.gem
New:
----
pkg-config-1.2.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-pkg-config.spec ++++++
--- /var/tmp/diff_new_pack.s33W1f/_old 2017-06-07 09:52:09.782327899 +0200
+++ /var/tmp/diff_new_pack.s33W1f/_new 2017-06-07 09:52:09.786327334 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-pkg-config
-Version: 1.2.0
+Version: 1.2.3
Release: 0
%define mod_name pkg-config
%define mod_full_name %{mod_name}-%{version}
++++++ pkg-config-1.2.0.gem -> pkg-config-1.2.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/NEWS new/NEWS
--- old/NEWS 2017-04-25 01:54:58.000000000 +0200
+++ new/NEWS 2017-05-29 14:44:22.000000000 +0200
@@ -1,5 +1,23 @@
= NEWS
+== 1.2.3 - 2017-05-29
+
+=== Fixes
+
+ * Supported *-mingw32 Rubies without MSYS2 again.
+
+== 1.2.2 - 2017-05-29
+
+=== Improvements
+
+ * Supported path normalization for MSYS2.
+
+== 1.2.1 - 2017-05-29
+
+=== Improvements
+
+ * Supported MSYS2.
+
== 1.2.0 - 2017-04-25
=== Improvements
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/pkg-config/version.rb
new/lib/pkg-config/version.rb
--- old/lib/pkg-config/version.rb 2017-04-25 01:54:58.000000000 +0200
+++ new/lib/pkg-config/version.rb 2017-05-29 14:44:22.000000000 +0200
@@ -15,5 +15,5 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
module PKGConfig
- VERSION = "1.2.0"
+ VERSION = "1.2.3"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/pkg-config.rb new/lib/pkg-config.rb
--- old/lib/pkg-config.rb 2017-04-25 01:54:58.000000000 +0200
+++ new/lib/pkg-config.rb 2017-05-29 14:44:22.000000000 +0200
@@ -213,6 +213,7 @@
end
all_cflags = normalize_cflags(Shellwords.split(cflags_set.join(" ")))
path_flags, other_flags = all_cflags.partition {|flag| /\A-I/ =~ flag}
+ path_flags = normalize_path_flags(path_flags, "-I")
path_flags = remove_duplicated_include_paths(path_flags)
path_flags = path_flags.reject do |flag|
flag == "-I/usr/include"
@@ -225,6 +226,24 @@
[path_flags, other_flags]
end
+ def normalize_path_flags(path_flags, flag_option)
+ path_flags.collect do |path_flag|
+ path = path_flag.sub(flag_option, "")
+ prefix = ""
+ case RUBY_PLATFORM
+ when "x86-mingw32"
+ prefix = Dir.glob("c:/msys{32,64,*}").first
+ when "x64-mingw32"
+ prefix = Dir.glob("c:/msys{64,*}").first
+ end
+ if /\A[a-z]:/i === path
+ "#{flag_option}#{path}"
+ else
+ "#{flag_option}#{prefix}#{path}"
+ end
+ end
+ end
+
def normalize_cflags(cflags)
normalized_cflags = []
enumerator = cflags.to_enum
@@ -253,6 +272,7 @@
all_libs = [declaration("Libs")] + all_libs
all_libs = all_libs.join(" ").gsub(/-([Ll]) /, '\1').split.uniq
path_flags, other_flags = all_libs.partition {|flag| /\A-L/ =~ flag}
+ path_flags = normalize_path_flags(path_flags, "-L")
path_flags = path_flags.reject do |flag|
/\A-L\/usr\/lib(?:64|x32)?\z/ =~ flag
end
@@ -313,14 +333,14 @@
end
def guess_default_path
- arch_depended_path = Dir.glob('/usr/lib/*/pkgconfig').join(SEPARATOR)
+ arch_depended_path = Dir.glob("/usr/lib/*/pkgconfig")
default_paths = [
"/usr/local/lib64/pkgconfig",
"/usr/local/libx32/pkgconfig",
"/usr/local/lib/pkgconfig",
"/usr/local/libdata/pkgconfig",
"/opt/local/lib/pkgconfig",
- arch_depended_path,
+ *arch_depended_path,
"/usr/lib64/pkgconfig",
"/usr/libx32/pkgconfig",
"/usr/lib/pkgconfig",
@@ -329,6 +349,12 @@
"/opt/X11/lib/pkgconfig",
"/usr/share/pkgconfig",
]
+ case RUBY_PLATFORM
+ when "x86-mingw32"
+ default_paths.concat(Dir.glob("c:/msys*/mingw32/lib/pkgconfig"))
+ when "x64-mingw32"
+ default_paths.concat(Dir.glob("c:/msys*/mingw64/lib/pkgconfig"))
+ end
default_path = default_paths.join(SEPARATOR)
libdir = ENV["PKG_CONFIG_LIBDIR"]
default_path = [libdir, default_path].join(SEPARATOR) if libdir
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-04-25 01:54:58.000000000 +0200
+++ new/metadata 2017-05-29 14:44:22.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: pkg-config
version: !ruby/object:Gem::Version
- version: 1.2.0
+ version: 1.2.3
platform: ruby
authors:
- Kouhei Sutou
autorequire:
bindir: bin
cert_chain: []
-date: 2017-04-24 00:00:00.000000000 Z
+date: 2017-05-29 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: test-unit