Hello community,
here is the log from the commit of package yast2-perl-bindings
checked in at Tue Apr 1 22:39:55 CEST 2008.
--------
--- yast2-perl-bindings/yast2-perl-bindings.changes 2008-03-12 14:47:03.000000000 +0100
+++ yast2-perl-bindings/yast2-perl-bindings.changes 2008-04-01 12:59:55.375635000 +0200
@@ -1,0 +2,7 @@
+Mon Mar 31 16:36:21 CEST 2008 - mvidner@suse.cz
+
+- Trap Perl exceptions so that simple bugs don't kill the whole YaST
+ (fate#412).
+- 2.16.5
+
+-------------------------------------------------------------------
Old:
----
yast2-perl-bindings-2.16.4.tar.bz2
New:
----
yast2-perl-bindings-2.16.5.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-perl-bindings.spec ++++++
--- /var/tmp/diff_new_pack.i14860/_old 2008-04-01 22:39:21.000000000 +0200
+++ /var/tmp/diff_new_pack.i14860/_new 2008-04-01 22:39:21.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-perl-bindings (Version 2.16.4)
+# spec file for package yast2-perl-bindings (Version 2.16.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,12 +12,12 @@
Name: yast2-perl-bindings
-Version: 2.16.4
+Version: 2.16.5
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-perl-bindings-2.16.4.tar.bz2
+Source0: yast2-perl-bindings-2.16.5.tar.bz2
Prefix: /usr
BuildRequires: blocxx-devel curl-devel gcc-c++ libxcrypt-devel libzypp-devel rpm-devel yast2-core-devel yast2-devtools yast2-ycp-ui-bindings-devel
# libzypp-devel is missing .la requires
@@ -44,7 +44,7 @@
Martin Vidner
%prep
-%setup -n yast2-perl-bindings-2.16.4
+%setup -n yast2-perl-bindings-2.16.5
%build
%{prefix}/bin/y2tool y2autoconf
@@ -81,7 +81,12 @@
/usr/share/YaST2/data/devtools/pluglib-bindings
/usr/share/YaST2/data/devtools/admin/aminclude/pluglib-bindings.ami
%doc %{prefix}/share/doc/packages/yast2-perl-bindings
+
%changelog
+* Mon Mar 31 2008 mvidner@suse.cz
+- Trap Perl exceptions so that simple bugs don't kill the whole YaST
+ (fate#412).
+- 2.16.5
* Wed Mar 12 2008 mvidner@suse.cz
- adapt testsuite results to latest debug output again
- 2.16.4
++++++ yast2-perl-bindings-2.16.4.tar.bz2 -> yast2-perl-bindings-2.16.5.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.16.4/configure new/yast2-perl-bindings-2.16.5/configure
--- old/yast2-perl-bindings-2.16.4/configure 2008-03-12 15:06:14.000000000 +0100
+++ new/yast2-perl-bindings-2.16.5/configure 2008-03-31 17:08:34.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-perl-bindings 2.16.4.
+# Generated by GNU Autoconf 2.61 for yast2-perl-bindings 2.16.5.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-perl-bindings'
PACKAGE_TARNAME='yast2-perl-bindings'
-PACKAGE_VERSION='2.16.4'
-PACKAGE_STRING='yast2-perl-bindings 2.16.4'
+PACKAGE_VERSION='2.16.5'
+PACKAGE_STRING='yast2-perl-bindings 2.16.5'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1444,7 +1444,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-perl-bindings 2.16.4 to adapt to many kinds of systems.
+\`configure' configures yast2-perl-bindings 2.16.5 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1515,7 +1515,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-perl-bindings 2.16.4:";;
+ short | recursive ) echo "Configuration of yast2-perl-bindings 2.16.5:";;
esac
cat <<\_ACEOF
@@ -1624,7 +1624,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-perl-bindings configure 2.16.4
+yast2-perl-bindings configure 2.16.5
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1638,7 +1638,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-perl-bindings $as_me 2.16.4, which was
+It was created by yast2-perl-bindings $as_me 2.16.5, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2459,7 +2459,7 @@
# Define the identity of the package.
PACKAGE='yast2-perl-bindings'
- VERSION='2.16.4'
+ VERSION='2.16.5'
cat >>confdefs.h <<_ACEOF
@@ -2687,7 +2687,7 @@
-VERSION="2.16.4"
+VERSION="2.16.5"
RPMNAME="yast2-perl-bindings"
MAINTAINER="Martin Vidner "
@@ -21145,7 +21145,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-perl-bindings $as_me 2.16.4, which was
+This file was extended by yast2-perl-bindings $as_me 2.16.5, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21198,7 +21198,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-perl-bindings config.status 2.16.4
+yast2-perl-bindings config.status 2.16.5
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
@@ -22603,7 +22603,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-perl-bindings $as_me 2.16.4, which was
+This file was extended by yast2-perl-bindings $as_me 2.16.5, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -22656,7 +22656,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-perl-bindings config.status 2.16.4
+yast2-perl-bindings config.status 2.16.5
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.16.4/configure.in new/yast2-perl-bindings-2.16.5/configure.in
--- old/yast2-perl-bindings-2.16.4/configure.in 2008-03-12 15:06:02.000000000 +0100
+++ new/yast2-perl-bindings-2.16.5/configure.in 2008-03-31 17:08:22.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-perl-bindings, 2.16.4, http://bugs.opensuse.org/, yast2-perl-bindings)
+AC_INIT(yast2-perl-bindings, 2.16.5, http://bugs.opensuse.org/, yast2-perl-bindings)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.16.4"
+VERSION="2.16.5"
RPMNAME="yast2-perl-bindings"
MAINTAINER="Martin Vidner "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.16.4/src/YPerl.cc new/yast2-perl-bindings-2.16.5/src/YPerl.cc
--- old/yast2-perl-bindings-2.16.4/src/YPerl.cc 2007-10-03 16:41:35.000000000 +0200
+++ new/yast2-perl-bindings-2.16.5/src/YPerl.cc 2008-03-31 16:17:24.000000000 +0200
@@ -285,8 +285,10 @@
string full_name = module + "::" + function;
int ret_count = 0;
+ // G_EVAL: prevent errors from making Perl (and the rest of YaST) die
+ // (FATE 412)
// so far we use static methods, so call_pv is enough
- ret_count = call_pv( full_name.c_str(), calling_context );
+ ret_count = call_pv( full_name.c_str(), calling_context | G_EVAL);
//
@@ -295,6 +297,13 @@
SPAGAIN; // Copy global stack pointer to local one
+ // if the eval catches an exception, undef is returned
+ // and we check $@ (ERRSV)
+ if (SvTRUE(ERRSV))
+ {
+ ycp2error ("Perl wanted to die: %s", SvPV_nolen(ERRSV));
+ }
+
YCPValue result = fromPerlScalar (POPs, wanted_result_type);
// If we called it with G_ARRAY, we would have to pop all return
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-perl-bindings-2.16.4/VERSION new/yast2-perl-bindings-2.16.5/VERSION
--- old/yast2-perl-bindings-2.16.4/VERSION 2008-03-12 14:44:56.000000000 +0100
+++ new/yast2-perl-bindings-2.16.5/VERSION 2008-03-31 16:36:35.000000000 +0200
@@ -1 +1 @@
-2.16.4
+2.16.5
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org