Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-bootsnap for 
openSUSE:Factory checked in at 2021-05-15 01:24:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-bootsnap (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-bootsnap.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-bootsnap"

Sat May 15 01:24:37 2021 rev:11 rq:893191 version:1.7.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-bootsnap/rubygem-bootsnap.changes        
2021-03-24 16:14:20.004025952 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-bootsnap.new.2988/rubygem-bootsnap.changes  
    2021-05-15 01:24:55.934867983 +0200
@@ -1,0 +2,16 @@
+Fri May 14 16:00:26 UTC 2021 - Manuel Schnitzer <[email protected]>
+
+- updated to version 1.7.5
+
+  # 1.7.5
+
+  * Handle a regression of Ruby 2.7.3 causing Bootsnap to call the deprecated 
`untaint` method. (#360)
+  * Gracefully handle read-only file system as well as other errors preventing 
to persist the load path cache. (#358)
+
+  # 1.7.4
+
+  * Stop raising errors when encoutering various file system errors. The cache 
is now best effort,
+    if somehow it can't be saved, bootsnapp will gracefully fallback to the 
original operation (e.g. `Kernel.require`).
+    (#353, #177, #262)
+
+-------------------------------------------------------------------

Old:
----
  bootsnap-1.7.3.gem

New:
----
  bootsnap-1.7.5.gem

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

Other differences:
------------------
++++++ rubygem-bootsnap.spec ++++++
--- /var/tmp/diff_new_pack.4x1gZn/_old  2021-05-15 01:24:56.430866239 +0200
+++ /var/tmp/diff_new_pack.4x1gZn/_new  2021-05-15 01:24:56.434866225 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-bootsnap
-Version:        1.7.3
+Version:        1.7.5
 Release:        0
 %define mod_name bootsnap
 %define mod_full_name %{mod_name}-%{version}

++++++ bootsnap-1.7.3.gem -> bootsnap-1.7.5.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2021-03-22 09:49:34.000000000 +0100
+++ new/CHANGELOG.md    2021-05-04 11:38:38.000000000 +0200
@@ -1,5 +1,16 @@
 # Unreleased
 
+# 1.7.5
+
+* Handle a regression of Ruby 2.7.3 causing Bootsnap to call the deprecated 
`untaint` method. (#360)
+* Gracefully handle read-only file system as well as other errors preventing 
to persist the load path cache. (#358)
+
+# 1.7.4
+
+* Stop raising errors when encoutering various file system errors. The cache 
is now best effort,
+  if somehow it can't be saved, bootsnapp will gracefully fallback to the 
original operation (e.g. `Kernel.require`).
+  (#353, #177, #262)
+
 # 1.7.3
 
 * Disable YAML precompilation when encountering YAML tags. (#351)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/bootsnap/bootsnap.c new/ext/bootsnap/bootsnap.c
--- old/ext/bootsnap/bootsnap.c 2021-03-22 09:49:34.000000000 +0100
+++ new/ext/bootsnap/bootsnap.c 2021-05-04 11:38:38.000000000 +0200
@@ -464,8 +464,7 @@
   fd = open(path, O_RDONLY);
   if (fd < 0) {
     *errno_provenance = "bs_fetch:open_cache_file:open";
-    if (errno == ENOENT) return CACHE_MISS;
-    return ERROR_WITH_ERRNO;
+    return CACHE_MISS;
   }
   #ifdef _WIN32
   setmode(fd, O_BINARY);
@@ -763,9 +762,11 @@
   /* If storage_data isn't a string, we can't cache it */
   if (!RB_TYPE_P(storage_data, T_STRING)) goto invalid_type_storage_data;
 
-  /* Write the cache key and storage_data to the cache directory */
-  res = atomic_write_cache_file(cache_path, &current_key, storage_data, 
&errno_provenance);
-  if (res < 0) goto fail_errno;
+  /* Attempt to write the cache key and storage_data to the cache directory.
+   * We do however ignore any failures to persist the cache, as it's better
+   * to move along, than to interrupt the process.
+   */
+  atomic_write_cache_file(cache_path, &current_key, storage_data, 
&errno_provenance);
 
   /* Having written the cache, now convert storage_data to output_data */
   exception_tag = bs_storage_to_output(handler, args, storage_data, 
&output_data);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bootsnap/load_path_cache/cache.rb 
new/lib/bootsnap/load_path_cache/cache.rb
--- old/lib/bootsnap/load_path_cache/cache.rb   2021-03-22 09:49:34.000000000 
+0100
+++ new/lib/bootsnap/load_path_cache/cache.rb   2021-05-04 11:38:38.000000000 
+0200
@@ -196,7 +196,7 @@
 
       s = rand.to_s.force_encoding(Encoding::US_ASCII).freeze
       if s.respond_to?(:-@)
-        if (-s).equal?(s) && (-s.dup).equal?(s)
+        if (-s).equal?(s) && (-s.dup).equal?(s) || RUBY_VERSION >= '2.7'
           def try_index(f)
             if (p = @index[f])
               -(File.join(p, f).freeze)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bootsnap/load_path_cache/store.rb 
new/lib/bootsnap/load_path_cache/store.rb
--- old/lib/bootsnap/load_path_cache/store.rb   2021-03-22 09:49:34.000000000 
+0100
+++ new/lib/bootsnap/load_path_cache/store.rb   2021-05-04 11:38:38.000000000 
+0200
@@ -91,6 +91,7 @@
         FileUtils.mv(tmp, @store_path)
       rescue Errno::EEXIST
         retry
+      rescue SystemCallError
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bootsnap/version.rb new/lib/bootsnap/version.rb
--- old/lib/bootsnap/version.rb 2021-03-22 09:49:34.000000000 +0100
+++ new/lib/bootsnap/version.rb 2021-05-04 11:38:38.000000000 +0200
@@ -1,4 +1,4 @@
 # frozen_string_literal: true
 module Bootsnap
-  VERSION = "1.7.3"
+  VERSION = "1.7.5"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bootsnap.rb new/lib/bootsnap.rb
--- old/lib/bootsnap.rb 2021-03-22 09:49:34.000000000 +0100
+++ new/lib/bootsnap.rb 2021-05-04 11:38:38.000000000 +0200
@@ -27,7 +27,9 @@
 
   def self.instrumentation=(callback)
     @instrumentation = callback
-    self.instrumentation_enabled = !!callback
+    if respond_to?(:instrumentation_enabled=, true)
+      self.instrumentation_enabled = !!callback
+    end
   end
 
   def self._instrument(event, path)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-03-22 09:49:34.000000000 +0100
+++ new/metadata        2021-05-04 11:38:38.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: bootsnap
 version: !ruby/object:Gem::Version
-  version: 1.7.3
+  version: 1.7.5
 platform: ruby
 authors:
 - Burke Libbey
 autorequire: 
 bindir: exe
 cert_chain: []
-date: 2021-03-22 00:00:00.000000000 Z
+date: 2021-05-04 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: bundler
@@ -42,14 +42,14 @@
   name: rake-compiler
   requirement: !ruby/object:Gem::Requirement
     requirements:
-    - - "~>"
+    - - ">="
       - !ruby/object:Gem::Version
         version: '0'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
-    - - "~>"
+    - - ">="
       - !ruby/object:Gem::Version
         version: '0'
 - !ruby/object:Gem::Dependency

Reply via email to