Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package yast2-ruby-bindings for
openSUSE:Factory checked in at 2022-10-10 18:43:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ruby-bindings (Old)
and /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ruby-bindings"
Mon Oct 10 18:43:20 2022 rev:120 rq:1008550 version:4.5.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ruby-bindings/yast2-ruby-bindings.changes
2022-08-23 14:26:49.207249021 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new.2275/yast2-ruby-bindings.changes
2022-10-10 18:43:24.714720057 +0200
@@ -1,0 +2,6 @@
+Thu Oct 6 14:26:41 UTC 2022 - Stefan Hundhammer <[email protected]>
+
+- Dropped support for profiler / Y2PROFILER env var (bsc#1189647)
+- 4.5.3
+
+-------------------------------------------------------------------
Old:
----
yast2-ruby-bindings-4.5.2.tar.bz2
New:
----
yast2-ruby-bindings-4.5.3.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.YhNaGu/_old 2022-10-10 18:43:25.186721073 +0200
+++ /var/tmp/diff_new_pack.YhNaGu/_new 2022-10-10 18:43:25.190721082 +0200
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 4.5.2
+Version: 4.5.3
Release: 0
URL: https://github.com/yast/yast-ruby-bindings
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-ruby-bindings-4.5.2.tar.bz2 -> yast2-ruby-bindings-4.5.3.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-4.5.2/package/yast2-ruby-bindings.changes
new/yast2-ruby-bindings-4.5.3/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-4.5.2/package/yast2-ruby-bindings.changes
2022-08-18 10:19:11.000000000 +0200
+++ new/yast2-ruby-bindings-4.5.3/package/yast2-ruby-bindings.changes
2022-10-06 17:04:38.000000000 +0200
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Oct 6 14:26:41 UTC 2022 - Stefan Hundhammer <[email protected]>
+
+- Dropped support for profiler / Y2PROFILER env var (bsc#1189647)
+- 4.5.3
+
+-------------------------------------------------------------------
Thu Aug 18 08:07:00 UTC 2022 - Josef Reidinger <[email protected]>
- Add properly glibc-locale as build dependency to test locale
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-4.5.2/package/yast2-ruby-bindings.spec
new/yast2-ruby-bindings-4.5.3/package/yast2-ruby-bindings.spec
--- old/yast2-ruby-bindings-4.5.2/package/yast2-ruby-bindings.spec
2022-08-18 10:19:11.000000000 +0200
+++ new/yast2-ruby-bindings-4.5.3/package/yast2-ruby-bindings.spec
2022-10-06 17:04:38.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 4.5.2
+Version: 4.5.3
Release: 0
URL: https://github.com/yast/yast-ruby-bindings
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-4.5.2/src/ruby/yast/profiler.rb
new/yast2-ruby-bindings-4.5.3/src/ruby/yast/profiler.rb
--- old/yast2-ruby-bindings-4.5.2/src/ruby/yast/profiler.rb 2022-08-18
10:19:11.000000000 +0200
+++ new/yast2-ruby-bindings-4.5.3/src/ruby/yast/profiler.rb 1970-01-01
01:00:00.000000000 +0100
@@ -1,72 +0,0 @@
-
-require "yast"
-
-module Yast
- class Profiler
- class << self
- include Yast::Logger
-
- RESULT_PATH = "/var/log/YaST2/profiler_result.txt".freeze
-
- # Start the Ruby Profiler. It start profilling. It also disables ruby VM
- # optimizations, so code execution will be slower.
- def start
- raise "multiple profiller start detected" if @started
- @original_compile_options = RubyVM::InstructionSequence.compile_option
- @started = true
- require "profiler"
-
- # turn on tracing and turn off specialized instruction which replace
- # some core ruby methods with its optimized variant to get complete
- # profiling. More info in book "Ruby Under a Microscope: Learning Ruby
- # Internals Through Experiment". Code is taken from ruby/lib/profile.rb
- RubyVM::InstructionSequence.compile_option = {
- trace_instruction: true,
- specialized_instruction: false
- }
-
- at_exit { stop }
- Profiler__.start_profile
- end
-
- # Stops profiling
- # @param output [IO] an IO stream to print the profile to; if nil, uses
a file at RESULT_PATH
- def stop(output = nil)
- return File.open(RESULT_PATH, "w") { |f| stop(f) } unless output
-
- Profiler__.print_profile(output)
-
- RubyVM::InstructionSequence.compile_option = @original_compile_options
- @started = false
- end
-
- # start the Ruby profiler if "Y2PROFILER" environment
- # variable is set to "1" or "true"(the test is case
- # insensitive, "y2profiler" variable can be also used)
- def start_from_env
- # do not evaluate again for each client started, run the evaluation
only once
- return if @profiler_handled
- @profiler_handled = true
-
- return unless env_value
-
- log.info "profiler enabled"
- start
- end
-
- private
-
- # read the Y2PROFILER environment variable,
- # do case insensitive match
- # @return [Boolean] true if enabled
- def env_value
- # sort the keys to have a deterministic behavior and to prefer
Y2PROFILER
- # over the other variants, then do a case insensitive search
- key = ENV.keys.sort.find { |k| k.match(/\AY2PROFILER\z/i) }
- return false unless key
-
- "1" == ENV[key]
- end
- end
- end
-end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-4.5.2/src/ruby/yast/wfm.rb
new/yast2-ruby-bindings-4.5.3/src/ruby/yast/wfm.rb
--- old/yast2-ruby-bindings-4.5.2/src/ruby/yast/wfm.rb 2022-08-18
10:19:11.000000000 +0200
+++ new/yast2-ruby-bindings-4.5.3/src/ruby/yast/wfm.rb 2022-10-06
17:04:38.000000000 +0200
@@ -2,7 +2,6 @@
require "yast/builtins"
require "yast/ops"
require "yast/debugger"
-require "yast/profiler"
require "yast/yast"
require "cgi"
@@ -343,7 +342,6 @@
code = File.read client
begin
Debugger.start_from_env
- Profiler.start_from_env
result = eval(code, GLOBAL_WFM_CONTEXT.binding, client)
check_client_result_type!(result, client)