Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-ffi for openSUSE:Factory 
checked in at 2021-06-05 23:30:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ffi (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-ffi.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-ffi"

Sat Jun  5 23:30:35 2021 rev:39 rq:896518 version:1.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-ffi/rubygem-ffi.changes  2021-03-16 
15:43:46.856977318 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-ffi.new.1898/rubygem-ffi.changes        
2021-06-05 23:30:59.040380783 +0200
@@ -1,0 +2,10 @@
+Tue Jun  1 03:38:16 UTC 2021 - Manuel Schnitzer <mschnit...@suse.com>
+
+- updated to version 1.15.1
+
+  Fixed:
+  * Append -pthread to linker options. #893
+  * Use arm or aarch64 to identify Apple ARM CPU arch. #899
+  * Allow overriding `gcc` with the `CC` env var in `const_generator.rb` and 
`struct_generator.rb`. #897
+
+-------------------------------------------------------------------

Old:
----
  ffi-1.15.0.gem

New:
----
  ffi-1.15.1.gem

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

Other differences:
------------------
++++++ rubygem-ffi.spec ++++++
--- /var/tmp/diff_new_pack.YoYuwW/_old  2021-06-05 23:30:59.572381708 +0200
+++ /var/tmp/diff_new_pack.YoYuwW/_new  2021-06-05 23:30:59.576381714 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-ffi
-Version:        1.15.0
+Version:        1.15.1
 Release:        0
 %define mod_name ffi
 %define mod_full_name %{mod_name}-%{version}

++++++ ffi-1.15.0.gem -> ffi-1.15.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2021-03-05 22:34:39.000000000 +0100
+++ new/CHANGELOG.md    2021-05-22 09:33:45.000000000 +0200
@@ -1,3 +1,12 @@
+1.15.1 / 2021-05-22
+-------------------
+
+Fixed:
+* Append -pthread to linker options. #893
+* Use arm or aarch64 to identify Apple ARM CPU arch. #899
+* Allow overriding `gcc` with the `CC` env var in `const_generator.rb` and 
`struct_generator.rb`. #897
+
+
 1.15.0 / 2021-03-05
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2021-03-05 22:34:39.000000000 +0100
+++ new/Gemfile 2021-05-22 09:33:45.000000000 +0200
@@ -5,7 +5,7 @@
   gem 'rake-compiler', '~> 1.0.3'
   gem 'rake-compiler-dock', '~> 1.0'
   gem 'rspec', '~> 3.0'
-  gem 'bundler', '~> 2.0'
+  gem 'bundler', '>= 1.16', '< 3'
 end
 
 group :doc do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2021-03-05 22:34:39.000000000 +0100
+++ new/README.md       2021-05-22 09:33:45.000000000 +0200
@@ -62,6 +62,10 @@
 From rubygems:
 
     [sudo] gem install ffi
+    
+From a Gemfile using git or GitHub
+
+    gem 'ffi', github: 'ffi/ffi', submodules: true
 
 or from the git repository on github:
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/ffi_c/extconf.rb new/ext/ffi_c/extconf.rb
--- old/ext/ffi_c/extconf.rb    2021-03-05 22:34:39.000000000 +0100
+++ new/ext/ffi_c/extconf.rb    2021-05-22 09:33:45.000000000 +0200
@@ -57,7 +57,10 @@
     append_ldflags "-Wl,--exclude-libs,ALL"
   end
 
-  ffi_alloc_default = RbConfig::CONFIG['host_os'] =~ /darwin/i && 
RbConfig::CONFIG['host'] =~ /arm/i
+  # Some linux archs need explicit linking to pthread, see 
https://github.com/ffi/ffi/issues/893
+  append_ldflags "-pthread"
+
+  ffi_alloc_default = RbConfig::CONFIG['host_os'] =~ /darwin/i && 
RbConfig::CONFIG['host'] =~ /arm|aarch64/i
   if enable_config('libffi-alloc', ffi_alloc_default)
     $defs << "-DUSE_FFI_ALLOC"
   end
@@ -71,7 +74,7 @@
     File.open("Makefile", "a") do |mf|
       mf.puts "LIBFFI_HOST=--host=#{RbConfig::CONFIG['host_alias']}" if 
RbConfig::CONFIG.has_key?("host_alias")
       if RbConfig::CONFIG['host_os'] =~ /darwin/i
-        if RbConfig::CONFIG['host'] =~ /arm/i
+        if RbConfig::CONFIG['host'] =~ /arm|aarch64/i
           mf.puts 
"LIBFFI_HOST=--host=aarch64-apple-#{RbConfig::CONFIG['host_os']}"
         end
         mf.puts "include ${srcdir}/libffi.darwin.mk"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/ffi/tools/const_generator.rb 
new/lib/ffi/tools/const_generator.rb
--- old/lib/ffi/tools/const_generator.rb        2021-03-05 22:34:39.000000000 
+0100
+++ new/lib/ffi/tools/const_generator.rb        2021-05-22 09:33:45.000000000 
+0200
@@ -124,7 +124,8 @@
         f.puts "\n\treturn 0;\n}"
         f.flush
 
-        output = `gcc #{options[:cppflags]} -D_DARWIN_USE_64_BIT_INODE 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall -Werror #{f.path} -o 
#{binary} 2>&1`
+        cc = ENV['CC'] || 'gcc'
+        output = `#{cc} #{options[:cppflags]} -D_DARWIN_USE_64_BIT_INODE 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall -Werror #{f.path} -o 
#{binary} 2>&1`
 
         unless $?.success? then
           output = output.split("\n").map { |l| "\t#{l}" }.join "\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/ffi/tools/struct_generator.rb 
new/lib/ffi/tools/struct_generator.rb
--- old/lib/ffi/tools/struct_generator.rb       2021-03-05 22:34:39.000000000 
+0100
+++ new/lib/ffi/tools/struct_generator.rb       2021-05-22 09:33:45.000000000 
+0200
@@ -82,7 +82,8 @@
         f.puts "\n  return 0;\n}"
         f.flush
 
-        output = `gcc #{options[:cppflags]} #{options[:cflags]} 
-D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c 
-Wall -Werror #{f.path} -o #{binary} 2>&1`
+        cc = ENV['CC'] || 'gcc'
+        output = `#{cc} #{options[:cppflags]} #{options[:cflags]} 
-D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c 
-Wall -Werror #{f.path} -o #{binary} 2>&1`
 
         unless $?.success? then
           @found = false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/ffi/version.rb new/lib/ffi/version.rb
--- old/lib/ffi/version.rb      2021-03-05 22:34:39.000000000 +0100
+++ new/lib/ffi/version.rb      2021-05-22 09:33:45.000000000 +0200
@@ -1,3 +1,3 @@
 module FFI
-  VERSION = '1.15.0'
+  VERSION = '1.15.1'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/ffi.rb new/lib/ffi.rb
--- old/lib/ffi.rb      2021-03-05 22:34:39.000000000 +0100
+++ new/lib/ffi.rb      2021-05-22 09:33:45.000000000 +0200
@@ -1,5 +1,4 @@
-if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
-  Object.send(:remove_const, :FFI) if defined?(::FFI)
+if RUBY_ENGINE == 'ruby'
   begin
     require RUBY_VERSION.split('.')[0, 2].join('.') + '/ffi_c'
   rescue Exception
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-03-05 22:34:39.000000000 +0100
+++ new/metadata        2021-05-22 09:33:45.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: ffi
 version: !ruby/object:Gem::Version
-  version: 1.15.0
+  version: 1.15.1
 platform: ruby
 authors:
 - Wayne Meissner
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2021-03-05 00:00:00.000000000 Z
+date: 2021-05-22 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake

Reply via email to