Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-pkg-config for 
openSUSE:Factory checked in at 2022-01-27 23:16:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-pkg-config (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-pkg-config.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-pkg-config"

Thu Jan 27 23:16:24 2022 rev:23 rq:949093 version:1.4.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-pkg-config/rubygem-pkg-config.changes    
2021-07-04 22:10:29.533345385 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-pkg-config.new.1898/rubygem-pkg-config.changes
  2022-01-27 23:16:39.939103042 +0100
@@ -1,0 +2,18 @@
+Tue Jan 25 07:19:26 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 1.4.7
+ see installed NEWS
+
+  == 1.4.7 - 2022-01-16
+  
+  === Improvements
+  
+    * Added support for RubyInstaller2 3.1 or later.
+      [Reported by golirev][GitHub:ruby-gnome/ruby-gnome#1457]
+  
+  === Thanks
+  
+    * golirev
+  
+
+-------------------------------------------------------------------

Old:
----
  pkg-config-1.4.6.gem

New:
----
  pkg-config-1.4.7.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-pkg-config.spec ++++++
--- /var/tmp/diff_new_pack.I5DayA/_old  2022-01-27 23:16:40.559098758 +0100
+++ /var/tmp/diff_new_pack.I5DayA/_new  2022-01-27 23:16:40.563098731 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-pkg-config
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-pkg-config
-Version:        1.4.6
+Version:        1.4.7
 Release:        0
 %define mod_name pkg-config
 %define mod_full_name %{mod_name}-%{version}

++++++ pkg-config-1.4.6.gem -> pkg-config-1.4.7.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/NEWS new/NEWS
--- old/NEWS    2021-04-12 02:34:18.000000000 +0200
+++ new/NEWS    2022-01-16 05:29:03.000000000 +0100
@@ -1,5 +1,16 @@
 = NEWS
 
+== 1.4.7 - 2022-01-16
+
+=== Improvements
+
+  * Added support for RubyInstaller2 3.1 or later.
+    [Reported by golirev][GitHub:ruby-gnome/ruby-gnome#1457]
+
+=== Thanks
+
+  * golirev
+
 == 1.4.6 - 2021-04-12
 
 === 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       2021-04-12 02:34:18.000000000 +0200
+++ new/lib/pkg-config/version.rb       2022-01-16 05:29:03.000000000 +0100
@@ -15,5 +15,5 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
 
 module PKGConfig
-  VERSION = "1.4.6"
+  VERSION = "1.4.7"
 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       2021-04-12 02:34:18.000000000 +0200
+++ new/lib/pkg-config.rb       2022-01-16 05:29:03.000000000 +0100
@@ -301,7 +301,7 @@
   end
 
   def normalize_path_flags(path_flags, flag_option)
-    return path_flags unless /-mingw32\z/ === RUBY_PLATFORM
+    return path_flags unless /-mingw(?:32|-ucrt)\z/ === RUBY_PLATFORM
 
     pkg_config_prefix = self.class.native_pkg_config_prefix
     return path_flags unless pkg_config_prefix
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-04-12 02:34:18.000000000 +0200
+++ new/metadata        2022-01-16 05:29:03.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: pkg-config
 version: !ruby/object:Gem::Version
-  version: 1.4.6
+  version: 1.4.7
 platform: ruby
 authors:
 - Kouhei Sutou
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2021-04-12 00:00:00.000000000 Z
+date: 2022-01-16 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: test-unit
@@ -89,7 +89,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.3.0.dev
+rubygems_version: 3.4.0.dev
 signing_key: 
 specification_version: 4
 summary: A pkg-config implementation for Ruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test-pkg-config.rb new/test/test-pkg-config.rb
--- old/test/test-pkg-config.rb 2021-04-12 02:34:18.000000000 +0200
+++ new/test/test-pkg-config.rb 2022-01-16 05:29:03.000000000 +0100
@@ -25,12 +25,14 @@
   end
 
   def test_cflags
+    omit("Fragile on macOS") if RUBY_PLATFORM.include?("darwin")
     assert_pkg_config("cairo", ["--cflags"], @cairo.cflags)
     only_pkg_config_version(0, 29)
     assert_pkg_config("cairo-png", ["--cflags"], @cairo_png.cflags)
   end
 
   def test_cflags_only_I
+    omit("Fragile on macOS") if RUBY_PLATFORM.include?("darwin")
     assert_pkg_config("cairo", ["--cflags-only-I"], @cairo.cflags_only_I)
     only_pkg_config_version(0, 29)
     assert_pkg_config("cairo-png", ["--cflags-only-I"], 
@cairo_png.cflags_only_I)
@@ -175,7 +177,22 @@
   def pkg_config(package, *args)
     args.unshift("--define-variable=libdir=#{@custom_libdir}")
     args = args.collect {|arg| arg.dump}.join(" ")
-    `pkg-config #{args} #{package}`.strip
+    normalize_pkg_config_result(`pkg-config #{args} #{package}`.strip)
+  end
+
+  def normalize_pkg_config_result(result)
+    case RUBY_PLATFORM
+    when /mingw/
+      result = result.gsub(/\/bin\/..\//, "/")
+      if result.include?(" -mms-bitfields ")
+        # Reorder -mms-bitfields (non path flag)
+        result = result.gsub(" -mms-bitfields ", " ")
+        result = "-mms-bitfields #{result}"
+      end
+      result
+    else
+      result
+    end
   end
 
   def assert_pkg_config(package, pkg_config_args, actual)

Reply via email to