Hello community,
here is the log from the commit of package yast2-dbus-server for openSUSE:Factory
checked in at Mon Jul 19 21:29:27 CEST 2010.
--------
--- yast2-dbus-server/yast2-dbus-server.changes 2010-05-19 17:07:38.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-dbus-server/yast2-dbus-server.changes 2010-07-15 13:14:21.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Jul 15 11:05:35 UTC 2010 - lslezak@suse.cz
+
+- set PATH environment to the default if it's not set (bnc#617442)
+- 2.20.0
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-dbus-server-2.18.1.tar.bz2
New:
----
yast2-dbus-server-2.20.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-dbus-server.spec ++++++
--- /var/tmp/diff_new_pack.w6hr4F/_old 2010-07-19 21:29:07.000000000 +0200
+++ /var/tmp/diff_new_pack.w6hr4F/_new 2010-07-19 21:29:07.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-dbus-server (Version 2.18.1)
+# spec file for package yast2-dbus-server (Version 2.20.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,11 +19,11 @@
Name: yast2-dbus-server
-Version: 2.18.1
-Release: 2
+Version: 2.20.0
+Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-dbus-server-2.18.1.tar.bz2
+Source0: yast2-dbus-server-2.20.0.tar.bz2
Prefix: /usr
@@ -44,6 +44,8 @@
# for SCR DBus service
BuildRequires: PolicyKit-devel dbus-1-devel dbus-1-x11 libxcrypt-devel
+# its tests
+BuildRequires: dbus-1-python
Summary: YaST2 - DBus Server
@@ -52,7 +54,7 @@
to YaST components.
%prep
-%setup -n yast2-dbus-server-2.18.1
+%setup -n yast2-dbus-server-2.20.0
%build
++++++ yast2-dbus-server-2.18.1.tar.bz2 -> yast2-dbus-server-2.20.0.tar.bz2 ++++++
++++ 12292 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/VERSION new/yast2-dbus-server-2.20.0/VERSION
--- old/yast2-dbus-server-2.18.1/VERSION 2009-09-02 17:05:27.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/VERSION 2010-07-15 13:02:35.000000000 +0200
@@ -1 +1 @@
-2.18.1
+2.20.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/config.h.in new/yast2-dbus-server-2.20.0/config.h.in
--- old/yast2-dbus-server-2.18.1/config.h.in 2009-09-02 17:30:58.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/config.h.in 2010-07-15 13:29:26.000000000 +0200
@@ -67,6 +67,9 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
/* Define to the version of this package. */
#undef PACKAGE_VERSION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/configure.in new/yast2-dbus-server-2.20.0/configure.in
--- old/yast2-dbus-server-2.18.1/configure.in 2009-09-02 17:30:37.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/configure.in 2010-07-15 13:29:13.000000000 +0200
@@ -1,8 +1,8 @@
dnl configure.in for yast2-dbus-server
dnl
-dnl -- This file is generated by y2autoconf 2.18.10 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.18.11 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-dbus-server, 2.18.1, http://bugs.opensuse.org/, yast2-dbus-server)
+AC_INIT(yast2-dbus-server, 2.20.0, http://bugs.opensuse.org/, yast2-dbus-server)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.18.1"
+VERSION="2.20.0"
RPMNAME="yast2-dbus-server"
MAINTAINER="Ladislav Slezák "
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/libtool.m4 new/yast2-dbus-server-2.20.0/libtool.m4
--- old/yast2-dbus-server-2.18.1/libtool.m4 2009-09-02 17:30:48.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/libtool.m4 2010-07-15 13:29:19.000000000 +0200
@@ -684,7 +684,6 @@
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
_LT_COPYING
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/ltversion.m4 new/yast2-dbus-server-2.20.0/ltversion.m4
--- old/yast2-dbus-server-2.18.1/ltversion.m4 2009-09-02 17:30:48.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/ltversion.m4 2010-07-15 13:29:20.000000000 +0200
@@ -9,15 +9,15 @@
# Generated from ltversion.in.
-# serial 3012 ltversion.m4
+# serial 3017 ltversion.m4
# This file is part of GNU Libtool
-m4_define([LT_PACKAGE_VERSION], [2.2.6])
-m4_define([LT_PACKAGE_REVISION], [1.3012])
+m4_define([LT_PACKAGE_VERSION], [2.2.6b])
+m4_define([LT_PACKAGE_REVISION], [1.3017])
AC_DEFUN([LTVERSION_VERSION],
-[macro_version='2.2.6'
-macro_revision='1.3012'
+[macro_version='2.2.6b'
+macro_revision='1.3017'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0)
])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/src/liby2dbus/src/DBusMsg.cc new/yast2-dbus-server-2.20.0/src/liby2dbus/src/DBusMsg.cc
--- old/yast2-dbus-server-2.18.1/src/liby2dbus/src/DBusMsg.cc 2009-08-11 08:40:23.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/src/liby2dbus/src/DBusMsg.cc 2010-05-31 21:34:17.000000000 +0200
@@ -796,7 +796,7 @@
{
if (type == DBUS_TYPE_BOOLEAN)
{
- bool b;
+ dbus_bool_t b; // not bool, bnc#606712
dbus_message_iter_get_basic(it, &b);
ret = YCPBoolean(b);
mismatch = false;
@@ -967,7 +967,7 @@
// TODO support more types
if (type == DBUS_TYPE_BOOLEAN)
{
- bool b;
+ dbus_bool_t b; // not bool, bnc#606712
dbus_message_iter_get_basic(it, &b);
ret = YCPBoolean(b);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/src/liby2dbus/src/DBusServerBase.cc new/yast2-dbus-server-2.20.0/src/liby2dbus/src/DBusServerBase.cc
--- old/yast2-dbus-server-2.18.1/src/liby2dbus/src/DBusServerBase.cc 2009-08-11 08:40:23.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/src/liby2dbus/src/DBusServerBase.cc 2010-07-15 12:58:03.000000000 +0200
@@ -9,6 +9,7 @@
#include "DBusServerBase.h"
#include "DBusMsg.h"
+#include "search_path.h"
#include
@@ -25,6 +26,9 @@
{
test_mode = testmode;
dbus_threads_init_default();
+
+ // set default PATH if not set
+ set_default_path();
}
DBusServerBase::~DBusServerBase()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/src/liby2dbus/src/Makefile.am new/yast2-dbus-server-2.20.0/src/liby2dbus/src/Makefile.am
--- old/yast2-dbus-server-2.18.1/src/liby2dbus/src/Makefile.am 2009-08-11 08:40:23.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/src/liby2dbus/src/Makefile.am 2010-07-15 13:27:41.000000000 +0200
@@ -8,7 +8,7 @@
liby2dbus_la_SOURCES = DBusMsg.cc DBusMsg.h DBusConn.cc DBusConn.h DBusCaller.cc DBusCaller.h \
DBusServerBase.cc DBusServerBase.h DBusSignature.cc DBusSignature.h \
- DBusArgument.cc DBusArgument.h
+ DBusArgument.cc DBusArgument.h search_path.h
if HAVE_POLKIT
liby2dbus_la_SOURCES += PolKit.cc PolKit.h
endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/src/liby2dbus/src/search_path.h new/yast2-dbus-server-2.20.0/src/liby2dbus/src/search_path.h
--- old/yast2-dbus-server-2.18.1/src/liby2dbus/src/search_path.h 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-dbus-server-2.20.0/src/liby2dbus/src/search_path.h 2010-07-15 12:36:11.000000000 +0200
@@ -0,0 +1,32 @@
+//
+// Function for setting PATH environment variable if it's not defined
+//
+
+#include <cstdlib>
+#include
+
+// check wheter PATH is defined, if not set it
+bool set_path_env(const char *new_path)
+{
+ char *path = getenv("PATH");
+
+ if (path == NULL)
+ {
+ // 1 = overwrite the existing
+ return setenv("PATH", new_path, 1) == 0;
+ }
+
+ return false;
+}
+
+// set the default PATH value if not set
+void set_default_path()
+{
+ const char *default_path = "/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin";
+
+ if (set_path_env(default_path))
+ {
+ y2milestone("PATH environment set to: %s", default_path);
+ }
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/src/services/namespace_service/doc/dbus_samba_export.README new/yast2-dbus-server-2.20.0/src/services/namespace_service/doc/dbus_samba_export.README
--- old/yast2-dbus-server-2.18.1/src/services/namespace_service/doc/dbus_samba_export.README 2009-08-11 08:40:24.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/src/services/namespace_service/doc/dbus_samba_export.README 2009-09-15 13:54:41.000000000 +0200
@@ -3,8 +3,10 @@
Copy the desktop configuration and the DBus client script using these commands:
-cp dbus_samba_export.desktop /usr/share/kde4/services/ServiceMenus/
-cp dbus_samba_export.py /usr/bin
+sudo cp dbus_samba_export.desktop /usr/share/kde4/services/ServiceMenus/
+sudo cp dbus_samba_export.py /usr/bin
+sudo cp polkit_helper.py /usr/bin
+sudo cp org.opensuse.yast.modules.yapi.samba.policy /usr/share/PolicyKit/policy/
If the Samba server has been configured (by the system administrator) users who
have org.opensuse.yast.modules.yapi.samba.addshare PolicyKit authorization can
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-dbus-server-2.18.1/src/services/namespace_service/doc/example-arch.py new/yast2-dbus-server-2.20.0/src/services/namespace_service/doc/example-arch.py
--- old/yast2-dbus-server-2.18.1/src/services/namespace_service/doc/example-arch.py 2009-08-11 08:40:24.000000000 +0200
+++ new/yast2-dbus-server-2.20.0/src/services/namespace_service/doc/example-arch.py 2010-02-19 18:25:10.000000000 +0100
@@ -1,6 +1,5 @@
#! /usr/bin/python
# example-arch.py
-# Test http://svn.opensuse.org/svn/yast/branches/tmp/lslezak/core/dbus/namespace_se...
# By default nobody, not even root, can call anything.
# Let's grant us a permission for a call for which there is no policyconfig
@@ -8,12 +7,7 @@
# As root:
# # polkit-auth --user $USER --grant org.opensuse.yast.modules.arch.is-laptop
-# Start the service from an xterm. If you let it autostart, it will not
-# be able to ask for PolicyKit authorization for --explicit.
-# (That's because whe have the polkit logic wrong and
-# ask in the server instead of in the client. TODO.)
-# As root:
-# # /usr/lib/YaST2/bin/yast_modules_dbus_server --disable-timer &
+# Revoke the permission (as root):
# # polkit-auth --user $USER --revoke org.opensuse.yast.modules.arch.is-laptop
import dbus
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org