Hello community,
here is the log from the commit of package yast2-ruby-bindings for
openSUSE:Factory checked in at 2013-10-19 11:13:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ruby-bindings (Old)
and /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ruby-bindings"
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ruby-bindings/yast2-ruby-bindings.changes
2013-09-23 11:24:29.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new/yast2-ruby-bindings.changes
2013-10-19 11:21:00.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Oct 15 13:01:18 UTC 2013 - [email protected]
+
+- float_to_lstring(): do not crash when glibc-locale is missing,
+ fallback to unlocalized version (bnc#803163)
+- 3.1.1
+
+-------------------------------------------------------------------
Old:
----
yast2-ruby-bindings-3.0.3.tar.bz2
New:
----
yast2-ruby-bindings-3.1.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.sK4UVO/_old 2013-10-19 11:21:01.000000000 +0200
+++ /var/tmp/diff_new_pack.sK4UVO/_new 2013-10-19 11:21:01.000000000 +0200
@@ -16,12 +16,8 @@
#
-#
-# spec file for package yast2-ruby-bindings (Version 0.1)
-#
-
Name: yast2-ruby-bindings
-Version: 3.0.3
+Version: 3.1.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ruby-bindings-%{version}.tar.bz2
@@ -72,9 +68,6 @@
make test ARGS=-V
cd -
-%clean
-rm -rf "$RPM_BUILD_ROOT"
-
%files
%defattr (-, root, root)
%{_libdir}/YaST2/plugin/libpy2lang_ruby.so
++++++ yast2-ruby-bindings-3.0.3.tar.bz2 -> yast2-ruby-bindings-3.1.1.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.0.3/.gitignore
new/yast2-ruby-bindings-3.1.1/.gitignore
--- old/yast2-ruby-bindings-3.0.3/.gitignore 2013-07-24 16:41:49.000000000
+0200
+++ new/yast2-ruby-bindings-3.1.1/.gitignore 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-/doc
-/build
-/.yardoc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.0.3/CMakeLists.txt
new/yast2-ruby-bindings-3.1.1/CMakeLists.txt
--- old/yast2-ruby-bindings-3.0.3/CMakeLists.txt 2013-06-18
10:05:55.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.1/CMakeLists.txt 2013-10-15
15:26:18.000000000 +0200
@@ -49,9 +49,3 @@
add_subdirectory(tests)
-#
-# packaging
-#
-set(RPMNAME "yast2-ruby-bindings")
-
-generate_packaging(${RPMNAME} ${VERSION})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.0.3/Rakefile
new/yast2-ruby-bindings-3.1.1/Rakefile
--- old/yast2-ruby-bindings-3.0.3/Rakefile 1970-01-01 01:00:00.000000000
+0100
+++ new/yast2-ruby-bindings-3.1.1/Rakefile 2013-10-15 15:26:18.000000000
+0200
@@ -0,0 +1,7 @@
+require "yast/rake"
+
+Yast::Tasks.configuration do |conf|
+ #lets ignore license check for now
+ conf.skip_license_check << /.*/
+end
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.0.3/VERSION
new/yast2-ruby-bindings-3.1.1/VERSION
--- old/yast2-ruby-bindings-3.0.3/VERSION 1970-01-01 01:00:00.000000000
+0100
+++ new/yast2-ruby-bindings-3.1.1/VERSION 2013-10-15 15:26:18.000000000
+0200
@@ -0,0 +1 @@
+3.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.0.3/VERSION.cmake
new/yast2-ruby-bindings-3.1.1/VERSION.cmake
--- old/yast2-ruby-bindings-3.0.3/VERSION.cmake 2013-09-12 14:16:52.000000000
+0200
+++ new/yast2-ruby-bindings-3.1.1/VERSION.cmake 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-SET(VERSION_MAJOR "3")
-SET(VERSION_MINOR "0")
-SET(VERSION_PATCH "3")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.0.3/package/yast2-ruby-bindings.changes
new/yast2-ruby-bindings-3.1.1/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-3.0.3/package/yast2-ruby-bindings.changes
2013-09-12 14:16:52.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.1/package/yast2-ruby-bindings.changes
2013-10-15 15:26:18.000000000 +0200
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Oct 15 13:01:18 UTC 2013 - [email protected]
+
+- float_to_lstring(): do not crash when glibc-locale is missing,
+ fallback to unlocalized version (bnc#803163)
+- 3.1.1
+
+-------------------------------------------------------------------
Thu Sep 12 07:53:00 UTC 2013 - [email protected]
- fix loading rubygems in embedded ruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.0.3/package/yast2-ruby-bindings.spec
new/yast2-ruby-bindings-3.1.1/package/yast2-ruby-bindings.spec
--- old/yast2-ruby-bindings-3.0.3/package/yast2-ruby-bindings.spec
2013-09-11 17:22:40.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.1/package/yast2-ruby-bindings.spec
2013-10-15 15:26:18.000000000 +0200
@@ -1,48 +1,28 @@
#
# spec file for package yast2-ruby-bindings
#
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
-#
-# All modifications and additions to the file contributed by third parties
-# remain the property of their copyright owners, unless otherwise agreed
-# upon. The license for this file, and modifications and additions to the
-# file, is the same license as for the pristine package itself (unless the
-# license for the pristine package is not an Open Source License, in which
-# case the license is the MIT License). An "Open Source License" is a
-# license that conforms to the Open Source Definition (Version 1.9)
-# published by the Open Source Initiative.
-
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-
-#
-# spec file for package yast2-ruby-bindings (Version 0.1)
-#
Name: yast2-ruby-bindings
-Version: 3.0.2
+Version: 3.1.0
Release: 0
+License: GPL-2.0
+Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ruby-bindings-%{version}.tar.bz2
Prefix: /usr
-BuildRequires: cmake
-BuildRequires: gcc-c++
-BuildRequires: yast2-core-devel
+BuildRequires: cmake gcc-c++ yast2-core-devel
BuildRequires: yast2-devtools >= 2.16.3
# libzypp-devel is missing .la requires
-BuildRequires: ruby-devel
-BuildRequires: rubygem-fast_gettext
-Requires: rubygem-fast_gettext
-Requires: yast2-core >= 2.24.0
+BuildRequires: ruby-devel
+BuildRequires: rubygem-fast_gettext
+Requires: rubygem-fast_gettext
+Requires: yast2-core >= 2.24.0
BuildRequires: yast2-core-devel >= 2.24.0
Requires: yast2-ycp-ui-bindings >= 2.21.9
BuildRequires: yast2-ycp-ui-bindings-devel >= 2.21.9
-Requires: ruby
-Summary: Ruby bindings for the YaST platform
-License: GPL-2.0
-Group: System/YaST
+Requires: ruby
+Summary: Ruby bindings for the YaST platform
%description
The bindings allow YaST modules to be written using the Ruby language
@@ -72,9 +52,6 @@
make test ARGS=-V
cd -
-%clean
-rm -rf "$RPM_BUILD_ROOT"
-
%files
%defattr (-, root, root)
%{_libdir}/YaST2/plugin/libpy2lang_ruby.so
@@ -82,5 +59,3 @@
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/yast
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/*x.so
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast
-
-%changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.0.3/src/binary/Builtin.cc
new/yast2-ruby-bindings-3.1.1/src/binary/Builtin.cc
--- old/yast2-ruby-bindings-3.0.3/src/binary/Builtin.cc 2013-06-20
22:20:53.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.1/src/binary/Builtin.cc 2013-10-15
15:26:18.000000000 +0200
@@ -8,6 +8,7 @@
#include <string>
#include <sstream>
+#include <stdexcept>
#include <iconv.h>
#include <errno.h>
extern "C" {
@@ -163,7 +164,16 @@
return Qnil;
std::wostringstream ss; // bnc#683881#c12: need wide chars
- ss.imbue (std::locale (""));
+
+ try
+ {
+ ss.imbue (std::locale (""));
+ }
+ catch (const std::runtime_error &error)
+ {
+ y2warning("Cannot set locale (missing glibc-locale package?): %s",
error.what());
+ }
+
ss.precision (NUM2LONG(rprecision));
ss << fixed<< NUM2DBL(rfloat);
std::wstring res = ss.str();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.0.3/yast2-ruby-bindings.spec.in
new/yast2-ruby-bindings-3.1.1/yast2-ruby-bindings.spec.in
--- old/yast2-ruby-bindings-3.0.3/yast2-ruby-bindings.spec.in 2013-06-21
11:34:12.000000000 +0200
+++ new/yast2-ruby-bindings-3.1.1/yast2-ruby-bindings.spec.in 1970-01-01
01:00:00.000000000 +0100
@@ -1,66 +0,0 @@
-
-
-#
-# spec file for package yast2-ruby-bindings (Version 0.1)
-#
-# norootforbuild
-
-Name: yast2-ruby-bindings
-Version: @VERSION@
-Release: 0
-License: GPL-2.0
-Group: System/YaST
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-ruby-bindings-%{version}.tar.bz2
-Prefix: /usr
-
-BuildRequires: cmake gcc-c++ yast2-core-devel
-BuildRequires: yast2-devtools >= 2.16.3
-# libzypp-devel is missing .la requires
-BuildRequires: ruby-devel
-BuildRequires: rubygem-fast_gettext
-Requires: rubygem-fast_gettext
-Requires: yast2-core >= 2.24.0
-BuildRequires: yast2-core-devel >= 2.24.0
-Requires: yast2-ycp-ui-bindings >= 2.21.9
-BuildRequires: yast2-ycp-ui-bindings-devel >= 2.21.9
-Requires: ruby
-Summary: Ruby bindings for the YaST platform
-
-%description
-The bindings allow YaST modules to be written using the Ruby language
-and also Ruby scripts can use YaST agents, APIs and modules.
-
-%prep
-%setup -n yast2-ruby-bindings-%{version}
-%build
-mkdir build
-cd build
-cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
- -DLIB=%{_lib} \
- -DCMAKE_C_FLAGS="%{optflags}" \
- -DCMAKE_CXX_FLAGS="%{optflags}" \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_SKIP_RPATH=1 \
- ..
-make %{?jobs:-j %jobs} VERBOSE=1
-
-%install
-cd build
-make install DESTDIR=$RPM_BUILD_ROOT
-cd ..
-
-%check
-cd build/tests/ruby
-make test ARGS=-V
-cd -
-
-@CLEAN@
-
-%files
-%defattr (-, root, root)
-%{_libdir}/YaST2/plugin/libpy2lang_ruby.so
-%{_libdir}/ruby/vendor_ruby/%{rb_ver}/*.rb
-%{_libdir}/ruby/vendor_ruby/%{rb_ver}/yast
-%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/*x.so
-%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]