Hello community,
here is the log from the commit of package yast2
checked in at Mon Oct 30 18:03:42 CET 2006.
--------
--- yast2/yast2.changes 2006-10-23 17:27:08.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2/yast2.changes 2006-10-30 17:13:37.000000000 +0100
@@ -1,0 +2,29 @@
+Mon Oct 30 09:29:21 CET 2006 - locilka@suse.cz
+
+- Stopping/Starting and/or Enabling/Disabling all SuSEfirewall2
+ services even if one of them fails. Partly preventing from not
+ writing the new status of services (bugzilla #215416).
+- Restarting firewall in SuSEFirewall::ActivateConfiguration() even
+ if the configuration is not changed but there are some RPC
+ services in the configuration (bugzilla #186186).
+- 2.14.8
+
+-------------------------------------------------------------------
+Wed Oct 25 11:13:38 CEST 2006 - locilka@suse.cz
+
+- Writing the client's return value to the log (ProductControl)
+ for easier debugging (#214886).
+
+-------------------------------------------------------------------
+Tue Oct 24 15:50:54 CEST 2006 - lslezak@suse.cz
+
+- .etc.policykit agent - added documentation
+- fixed script callback registration
+
+-------------------------------------------------------------------
+Tue Oct 24 09:44:20 CEST 2006 - jsrain@suse.cz
+
+- lazy initialization of list of YaST modules for bash completion
+ (#212928)
+
+-------------------------------------------------------------------
Old:
----
yast2-2.14.7.tar.bz2
New:
----
yast2-2.14.8.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.Ampvui/_old 2006-10-30 18:03:10.000000000 +0100
+++ /var/tmp/diff_new_pack.Ampvui/_new 2006-10-30 18:03:10.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2 (Version 2.14.7)
+# spec file for package yast2 (Version 2.14.8)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2
-Version: 2.14.7
+Version: 2.14.8
Release: 1
License: GNU General Public License (GPL) - all versions
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-2.14.7.tar.bz2
+Source0: yast2-2.14.8.tar.bz2
prefix: /usr
BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-pkg-bindings yast2-testsuite
# Need the new file popups
@@ -97,7 +97,7 @@
Steffen Winterfeldt
%prep
-%setup -n yast2-2.14.7
+%setup -n yast2-2.14.8
%build
%{prefix}/bin/y2tool y2autoconf
@@ -197,6 +197,23 @@
%doc %{prefix}/share/doc/packages/yast2/wizard
%changelog -n yast2
+* Mon Oct 30 2006 - locilka@suse.cz
+- Stopping/Starting and/or Enabling/Disabling all SuSEfirewall2
+ services even if one of them fails. Partly preventing from not
+ writing the new status of services (bugzilla #215416).
+- Restarting firewall in SuSEFirewall::ActivateConfiguration() even
+ if the configuration is not changed but there are some RPC
+ services in the configuration (bugzilla #186186).
+- 2.14.8
+* Wed Oct 25 2006 - locilka@suse.cz
+- Writing the client's return value to the log (ProductControl)
+ for easier debugging (#214886).
+* Tue Oct 24 2006 - lslezak@suse.cz
+- .etc.policykit agent - added documentation
+- fixed script callback registration
+* Tue Oct 24 2006 - jsrain@suse.cz
+- lazy initialization of list of YaST modules for bash completion
+ (#212928)
* Mon Oct 23 2006 - lslezak@suse.cz
- added .etc.policykit agent (reads/writes
/etc/PolicyKit/privilege.d/*.privilege files), used for
++++++ yast2-2.14.7.tar.bz2 -> yast2-2.14.8.tar.bz2 ++++++
++++ 11949 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-2.14.7/Makefile.am.common new/yast2-2.14.8/Makefile.am.common
--- old/yast2-2.14.7/Makefile.am.common 2006-10-23 17:25:38.000000000 +0200
+++ new/yast2-2.14.8/Makefile.am.common 2006-10-30 17:14:40.000000000 +0100
@@ -29,19 +29,7 @@
dist-hook: check-syntax
-CHECK_SYNTAX = true
check-syntax: $(client_DATA) $(ycpchook)
- @if test "$(client_DATA)"; then \
- if $(CHECK_SYNTAX); then \
- TO_CHECK="$(filter %.ycp,$^)"; \
- echo "Checking syntax of $${TO_CHECK}"; \
- if ! $(YCPC) -qE -M. -I. $(YCPCFLAGS) $${TO_CHECK}; then \
- echo "Failed. Disable by 'make ... CHECK_SYNTAX=false' at your own risk"; \
- exit 1; \
- fi; \
- else \
- echo "Syntax check disabled"; \
- fi; \
- fi
+ if test "$(client_DATA)"; then $(bindir)/ycpc -qE -M. -I. $(YCPCFLAGS) $(filter %.ycp,$^) || exit 1; fi
-include .dep
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-2.14.7/VERSION new/yast2-2.14.8/VERSION
--- old/yast2-2.14.7/VERSION 2006-10-23 17:13:35.000000000 +0200
+++ new/yast2-2.14.8/VERSION 2006-10-30 17:12:35.000000000 +0100
@@ -1 +1 @@
-2.14.7
+2.14.8
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-2.14.7/configure.in new/yast2-2.14.8/configure.in
--- old/yast2-2.14.7/configure.in 2006-10-23 17:25:38.000000000 +0200
+++ new/yast2-2.14.8/configure.in 2006-10-30 17:14:40.000000000 +0100
@@ -1,9 +1,9 @@
dnl configure.in for yast2
dnl
-dnl -- This file is generated by y2autoconf 2.13.16 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.19 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2, 2.14.7, http://bugs.opensuse.org/, yast2)
+AC_INIT(yast2, 2.14.8, http://bugs.opensuse.org/, yast2)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.14.7"
+VERSION="2.14.8"
RPMNAME="yast2"
MAINTAINER="Jiri Srain "
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-2.14.7/library/agents/cfg_policykit.scr new/yast2-2.14.8/library/agents/cfg_policykit.scr
--- old/yast2-2.14.7/library/agents/cfg_policykit.scr 2006-10-23 14:54:11.000000000 +0200
+++ new/yast2-2.14.8/library/agents/cfg_policykit.scr 2006-10-25 10:08:22.000000000 +0200
@@ -1,4 +1,44 @@
-// use the INI-agent for reading/writing
+/**
+ * File:
+ * cfg_policykit.scr
+ * Summary:
+ * SCR Agent for reading/writing /etc/PolicyKit/privilege.d/*.privilege files
+ * using the ini-agent
+ * Access:
+ * read/write
+ * Authors:
+ * Ladislav Slezak
+ * Example:
+ *
+ * Read list of available files
+ * SCR::Dir(.etc.policykit.section)
+ *
+ * Read list of sections in a file
+ * SCR::Dir(.etc.policykit.section."/etc/PolicyKit/privilege.d/hal-power-hibernate.privilege")
+ * (["Privilege"])
+ *
+ * Read list of options in a section
+ * SCR::Dir(.etc.policykit.value."/etc/PolicyKit/privilege.d/hal-power-hibernate.privilege"."Privilege")
+ * (["RequiredPrivileges", "SufficientPrivileges", "Allow", "Deny", "CanObtain", "CanGrant", "ObtainRequireRoot"])
+ *
+ * Read an option
+ * SCR::Read(.etc.policykit.value."/etc/PolicyKit/privilege.d/hal-power-hibernate.privilege"."Privilege"."RequiredPrivileges")
+ * ("desktop-console")
+ *
+ *
+ * Write an option
+ * SCR::Write(.etc.policykit.value."/etc/PolicyKit/privilege.d/hal-power-hibernate.privilege"."Privilege"."RequiredPrivileges", "")
+ * (true)
+ *
+ *
+ * Flush the changes
+ * SCR::Write(.etc.policykit, nil)
+ *
+ *
+ * Fore more information see the INI-agent documentation
+ *
+ * $Id:$
+ */
.etc.policykit
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-2.14.7/library/control/src/ProductControl.ycp new/yast2-2.14.8/library/control/src/ProductControl.ycp
--- old/yast2-2.14.7/library/control/src/ProductControl.ycp 2006-10-20 13:56:54.000000000 +0200
+++ new/yast2-2.14.8/library/control/src/ProductControl.ycp 2006-10-30 09:53:53.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Product Control routines
* Authors: Anas Nashif
*
- * $Id: ProductControl.ycp 33499 2006-10-18 13:19:41Z locilka $
+ * $Id: ProductControl.ycp 33822 2006-10-30 08:53:52Z locilka $
*/
{
textdomain "base";
@@ -941,6 +941,7 @@
}
symbol result = (symbol) WFM::CallFunction (getClientName(step_name), args);
+ y2milestone ("Calling %1 returned %2", argterm, result);
// Remove file if step was run and returned (without a crash);
if (current_step < size(modules) - 1 && !Stage::initial())
@@ -1062,16 +1063,21 @@
}
if (former_result == `abort)
{
- return `abort;
+ final_result = `abort;
}
- if (final_result != nil)
- return final_result;
+ y2milestone ("Former result: %1, Final result: %2", former_result, final_result);
- if (current_step <= -1)
- return `back;
- else
- return `next;
+ if (final_result != nil) {
+ y2milestone ("Final result already set.");
+ } else if (current_step <= -1) {
+ final_result = `back;
+ } else {
+ final_result = `next;
+ }
+
+ y2milestone ("Current step: %1, Returning: %2", current_step, final_result);
+ return final_result;
}
/**
@@ -1079,7 +1085,9 @@
*
*/
global symbol Run () {
- return RunFrom (0, false);
+ symbol ret = RunFrom (0, false);
+ y2milestone ("Run() returning %1", ret);
+ return ret;
}
// Functions to access restart information
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-2.14.7/library/modules/Version.ycp new/yast2-2.14.8/library/modules/Version.ycp
--- old/yast2-2.14.7/library/modules/Version.ycp 2006-10-23 17:25:58.000000000 +0200
+++ new/yast2-2.14.8/library/modules/Version.ycp 2006-10-30 17:15:10.000000000 +0100
@@ -20,7 +20,7 @@
/**
* Version of the yast2 package
*/
-global string yast2 = "2.14.7";
+global string yast2 = "2.14.8";
/* EOF */
}
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-2.14.7/library/network/src/SuSEFirewall.ycp new/yast2-2.14.8/library/network/src/SuSEFirewall.ycp
--- old/yast2-2.14.7/library/network/src/SuSEFirewall.ycp 2006-09-27 14:24:44.000000000 +0200
+++ new/yast2-2.14.8/library/network/src/SuSEFirewall.ycp 2006-10-30 11:15:07.000000000 +0100
@@ -1025,12 +1025,11 @@
foreach (string service, firewall_services, {
y2debug("Starting service: %1", service);
- all_ok = Service::Start(service);
- if (!all_ok) {
+ if (! Service::Start(service)) {
+ all_ok = false;
y2error("Error starting service: %1", service);
- break;
- }
+ }
});
return all_ok;
@@ -1046,11 +1045,10 @@
foreach (string service, firewall_services_reverse, {
y2debug("Stopping service: %1", service);
- all_ok = Service::Stop(service);
- if (!all_ok) {
+ if (! Service::Stop (service)) {
y2error("Error stopping service: %1", service);
- break;
+ all_ok = false;
}
});
@@ -1067,12 +1065,11 @@
foreach (string service, firewall_services, {
y2debug("Enabling service: %1", service);
- all_ok = Service::Enable(service);
- if (!all_ok) {
+ if (! Service::Enable(service)) {
+ all_ok = true;
// TRANSLATORS: a popup error message
- Report::Error(sformat(_("Cannot enable service '%1'."), service));
- break;
+ Report::Error (sformat (_("Cannot enable service '%1'."), service));
}
});
@@ -1089,12 +1086,11 @@
foreach (string service, firewall_services_reverse, {
y2debug("Disabling service: %1", service);
- all_ok = Service::Disable(service);
- if (!all_ok) {
+ if (! Service::Disable(service)) {
+ all_ok = false;
// TRANSLATORS: a popup error message
- Report::Error(sformat(_("Cannot disable service '%1'."), service));
- break;
+ Report::Error (sformat (_("Cannot disable service '%1'."), service));
}
});
@@ -2019,6 +2015,37 @@
return true;
}
+
+ /**
+ * Function returns whether some RPC service is allowed in the configuration.
+ * These services reallocate their ports when restarted. See details in
+ * bugzilla bug #186186.
+ *
+ * @return boolean some_RPC_service_used
+ */
+ boolean AnyRPCServiceInConfiguration () {
+ boolean ret = false;
+
+ foreach (string fw_zone, GetKnownFirewallZones(), {
+ string fw_rule = sformat("FW_SERVICES_%1_RPC", fw_zone);
+ string listed_services = SETTINGS[fw_rule]:GetDefaultValue(fw_rule);
+ // easy case
+ if (listed_services == nil || listed_services == "") return;
+
+ // something listed but it still might be empty definition
+ list <string> services_list = splitstring (listed_services, " \n\t");
+ services_list = filter (string service, services_list, {
+ return (service != "");
+ });
+ if (size (listed_services) > 0) {
+ ret = true;
+ break;
+ }
+ });
+
+ y2milestone ("Some RPC service found: %1", ret);
+ return ret;
+ }
/**
* Function which stops firewall. Then firewall is started immediately when firewall
@@ -2035,8 +2062,12 @@
return StartServices();
// Started - restart it
} else {
- // modified - restart it
- if (GetModified()) {
+ // modified - restart it, or ...
+ // bugzilla #186186
+ // If any RPC service is configured to be allowed, always restart the firewall
+ // Some of these service's ports might have been reallocated (when SuSEFirewall
+ // is used from outside, e.g., yast2-nfs-server)
+ if (GetModified() || AnyRPCServiceInConfiguration()) {
y2milestone("Stopping firewall services");
StopServices();
y2milestone("Starting firewall services");
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-2.14.7/library/packages/src/PackageCallbacksInit.ycp new/yast2-2.14.8/library/packages/src/PackageCallbacksInit.ycp
--- old/yast2-2.14.7/library/packages/src/PackageCallbacksInit.ycp 2006-10-16 17:13:49.000000000 +0200
+++ new/yast2-2.14.8/library/packages/src/PackageCallbacksInit.ycp 2006-10-25 10:08:22.000000000 +0200
@@ -4,7 +4,7 @@
* Summary: Initialize packager callbacks
* Authors: Jiri Srain
*
- * $Id: PackageCallbacksInit.ycp 33434 2006-10-16 15:13:45Z lslezak $
+ * $Id: PackageCallbacksInit.ycp 33643 2006-10-24 13:51:46Z lslezak $
*
* This module is used to initialize package manager callbacks
*/
@@ -27,9 +27,9 @@
global void SetScriptCallbacks()
{
Pkg::CallbackScriptStart("PackageCallbacks::ScriptStart");
- Pkg::CallbackScriptStart("PackageCallbacks::ScriptProgress");
- Pkg::CallbackScriptStart("PackageCallbacks::ScriptProblem");
- Pkg::CallbackScriptStart("PackageCallbacks::ScriptFinish");
+ Pkg::CallbackScriptProgress("PackageCallbacks::ScriptProgress");
+ Pkg::CallbackScriptProblem("PackageCallbacks::ScriptProblem");
+ Pkg::CallbackScriptFinish("PackageCallbacks::ScriptFinish");
Pkg::CallbackMessage("PackageCallbacks::Message");
}
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-2.14.7/scripts/yast2-completion.sh new/yast2-2.14.8/scripts/yast2-completion.sh
--- old/yast2-2.14.7/scripts/yast2-completion.sh 2006-01-03 10:30:50.000000000 +0100
+++ new/yast2-2.14.8/scripts/yast2-completion.sh 2006-10-25 10:08:23.000000000 +0200
@@ -2,13 +2,16 @@
# A Christmas gift from Carsten Hoeger
YAST=/sbin/yast
-# build a list of know yast modules
-MODLIST=($(LC_ALL=C $YAST -l| grep '^[a-z]' | grep -v "Available"))
+MODLIST=()
_yast2 ()
{
local cur prevprev prev len idx mod MODOPTS line opt rest
MODOPTS=()
+ if test ${#MODLIST[*]} = 0; then
+ # build a list of know yast modules
+ MODLIST=($(LC_ALL=C $YAST -l| grep '^[a-z]' | grep -v "Available"))
+ fi
if [[ ${#COMP_WORDS[@]} -gt 4 ]]; then
return 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org