Hello community,

here is the log from the commit of package rubygem-bootsnap for 
openSUSE:Factory checked in at 2019-06-19 20:59:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-bootsnap (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-bootsnap.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-bootsnap"

Wed Jun 19 20:59:22 2019 rev:3 rq:705979 version:1.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-bootsnap/rubygem-bootsnap.changes        
2019-04-01 12:37:05.773877808 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-bootsnap.new.4811/rubygem-bootsnap.changes  
    2019-06-19 20:59:23.594034448 +0200
@@ -1,0 +2,14 @@
+Sun May  5 09:19:48 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 1.4.4
+ see installed CHANGELOG.md
+
+  # 1.4.4
+  
+  * Disable ISeq cache in `bootsnap/setup` by default in Ruby 2.5
+  
+  # 1.4.3
+  
+  * Fix some cache permissions and umask issues after switch to mkstemp
+
+-------------------------------------------------------------------

Old:
----
  bootsnap-1.4.2.gem

New:
----
  bootsnap-1.4.4.gem

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

Other differences:
------------------
++++++ rubygem-bootsnap.spec ++++++
--- /var/tmp/diff_new_pack.d0l86g/_old  2019-06-19 20:59:24.138034936 +0200
+++ /var/tmp/diff_new_pack.d0l86g/_new  2019-06-19 20:59:24.142034940 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-bootsnap
-Version:        1.4.2
+Version:        1.4.4
 Release:        0
 %define mod_name bootsnap
 %define mod_full_name %{mod_name}-%{version}

++++++ bootsnap-1.4.2.gem -> bootsnap-1.4.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2019-03-26 16:12:36.000000000 +0100
+++ new/CHANGELOG.md    2019-04-24 19:57:39.000000000 +0200
@@ -1,3 +1,11 @@
+# 1.4.4
+
+* Disable ISeq cache in `bootsnap/setup` by default in Ruby 2.5
+
+# 1.4.3
+
+* Fix some cache permissions and umask issues after switch to mkstemp
+
 # 1.4.2
 
 * Fix bug when removing features loaded by relative path from 
`$LOADED_FEATURES`
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 2019-03-26 16:12:36.000000000 +0100
+++ new/ext/bootsnap/bootsnap.c 2019-04-24 19:57:39.000000000 +0200
@@ -74,6 +74,8 @@
 static uint32_t current_ruby_revision;
 /* Invalidates cache when RubyVM::InstructionSequence.compile_option changes */
 static uint32_t current_compile_option_crc32 = 0;
+/* Current umask */
+static mode_t current_umask;
 
 /* Bootsnap::CompileCache::{Native, Uncompilable} */
 static VALUE rb_mBootsnap;
@@ -142,6 +144,9 @@
   rb_define_module_function(rb_mBootsnap_CompileCache_Native, 
"coverage_running?", bs_rb_coverage_running, 0);
   rb_define_module_function(rb_mBootsnap_CompileCache_Native, "fetch", 
bs_rb_fetch, 3);
   rb_define_module_function(rb_mBootsnap_CompileCache_Native, 
"compile_option_crc32=", bs_compile_option_crc32_set, 1);
+
+  current_umask = umask(0777);
+  umask(current_umask);
 }
 
 /*
@@ -482,7 +487,6 @@
       *errno_provenance = (char *)"bs_fetch:atomic_write_cache_file:mkpath";
       return -1;
     }
-    close(fd);
     fd = open(tmp_path, O_WRONLY | O_CREAT, 0664);
     if (fd < 0) {
       *errno_provenance = (char *)"bs_fetch:atomic_write_cache_file:open";
@@ -517,6 +521,11 @@
   ret = rename(tmp_path, path);
   if (ret < 0) {
     *errno_provenance = (char *)"bs_fetch:atomic_write_cache_file:rename";
+    return -1;
+  }
+  ret = chmod(path, 0664 & ~current_umask);
+  if (ret < 0) {
+    *errno_provenance = (char *)"bs_fetch:atomic_write_cache_file:chmod";
   }
   return ret;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bootsnap/setup.rb new/lib/bootsnap/setup.rb
--- old/lib/bootsnap/setup.rb   2019-03-26 16:12:36.000000000 +0100
+++ new/lib/bootsnap/setup.rb   2019-04-24 19:57:39.000000000 +0200
@@ -24,12 +24,15 @@
   cache_dir = File.join(app_root, 'tmp', 'cache')
 end
 
+ruby_version = Gem::Version.new(RUBY_VERSION)
+iseq_cache_enabled = ruby_version < Gem::Version.new('2.5.0') || ruby_version 
>= Gem::Version.new('2.6.0')
+
 Bootsnap.setup(
   cache_dir:            cache_dir,
   development_mode:     development_mode,
   load_path_cache:      true,
   autoload_paths_cache: true, # assume rails. open to PRs to impl. detection
   disable_trace:        false,
-  compile_cache_iseq:   true,
+  compile_cache_iseq:   iseq_cache_enabled,
   compile_cache_yaml:   true,
 )
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 2019-03-26 16:12:36.000000000 +0100
+++ new/lib/bootsnap/version.rb 2019-04-24 19:57:39.000000000 +0200
@@ -1,3 +1,3 @@
 module Bootsnap
-  VERSION = "1.4.2"
+  VERSION = "1.4.4"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-03-26 16:12:36.000000000 +0100
+++ new/metadata        2019-04-24 19:57:39.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: bootsnap
 version: !ruby/object:Gem::Version
-  version: 1.4.2
+  version: 1.4.4
 platform: ruby
 authors:
 - Burke Libbey
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-03-26 00:00:00.000000000 Z
+date: 2019-04-24 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: bundler


Reply via email to