Hello community,
here is the log from the commit of package sysconfig for openSUSE:11.4
checked in at Tue Jan 10 22:04:14 CET 2012.
--------
--- old-versions/11.4/UPDATES/all/sysconfig/sysconfig.changes 2011-12-19 12:57:35.000000000 +0100
+++ 11.4/sysconfig/sysconfig.changes 2012-01-10 12:28:32.000000000 +0100
@@ -1,0 +2,11 @@
+Tue Jan 10 09:46:26 UTC 2012 - mt@suse.com
+
+- Explicitly disabled posix mode in all bash scripts as we are
+ using several features not supported in posix mode (bnc#739338).
+- Fixed ipv6 dad / link ready wait time calculation (1/10 of the
+ specified time were used), replaced useless up flag check loop
+ with link_ready_wait to avoid send errors from dhclient6 and
+ cleaned up link / dad wait verify flag after status update
+ (bnc#697929).
+
+-------------------------------------------------------------------
calling whatdependson for 11.4-i586
New:
----
0006-Fixed-ipv6-dad-link-ready-wait-time-calculation.patch
0007-Disabled-bash-posix-mode-to-allow-bash-features.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ sysconfig.spec ++++++
--- /var/tmp/diff_new_pack.MWfxZG/_old 2012-01-10 22:03:44.000000000 +0100
+++ /var/tmp/diff_new_pack.MWfxZG/_new 2012-01-10 22:03:44.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package sysconfig
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -20,7 +20,7 @@
Name: sysconfig
Version: 0.74.5
-Release: 6.<RELEASE11>
+Release: 6.<RELEASE13>
Summary: The system configuration scheme
Url: http://gitorious.org/opensuse/sysconfig
Group: System/Base
@@ -37,6 +37,8 @@
Patch3: 0003-Wait-for-link-and-ipv6-duplicate-address-detection.patch
Patch4: 0004-Fixed-order-of-addr-flush-and-link-down-in-ifdown.patch
Patch5: 0005-CVE-2011-4182-fixed-quoting-in-ifservices-script.patch
+Patch6: 0006-Fixed-ipv6-dad-link-ready-wait-time-calculation.patch
+Patch7: 0007-Disabled-bash-posix-mode-to-allow-bash-features.patch
%description
This package provides the SuSE system configuration scheme and
@@ -61,6 +63,8 @@
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
+%patch7 -p1
%build
autoreconf --force --install
++++++ 0006-Fixed-ipv6-dad-link-ready-wait-time-calculation.patch ++++++
From bf78e8f7759250a33326fc8afeff7b646fb25650 Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski
Date: Tue, 27 Sep 2011 13:28:49 +0200
Subject: [PATCH] Cleanup verify flag after status update
Signed-off-by: Marius Tomaschewski
---
scripts/ifup | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/scripts/ifup b/scripts/ifup
index 9ed8beb..6fc55ec 100755
--- a/scripts/ifup
+++ b/scripts/ifup
@@ -1232,8 +1232,11 @@ case "$BOOTPROTO$SKIP_MAIN_PART" in
if [ "$retcode" = "$R_SUCCESS" ] ; then
v=`read_cached_config_data verify $INTERFACE`
s=`read_cached_config_data status $INTERFACE`
- if test "$v" = "status" -a "$s" = "connecting" ; then
- write_cached_config_data status connected $INTERFACE
+ if test "$v" = "status" ; then
+ if test "$s" = "connecting" ; then
+ write_cached_config_data status connected $INTERFACE
+ fi
+ delete_from_cached_config_data verify "" $INTERFACE
commit_cached_config_data $INTERFACE
fi
fi
--
1.7.7
From 431d319e8b9d4714e6476d519fb9702350c9da0b Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski
Date: Thu, 5 Jan 2012 17:50:10 +0100
Subject: [PATCH] Fixed ipv6 dad / link ready wait time calculation
(bnc#697929)
Signed-off-by: Marius Tomaschewski
---
scripts/functions | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/functions b/scripts/functions
index 0ed67ee..c56d1d7 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -163,7 +163,7 @@ link_ready_wait ()
local iface=$1
local -i wsecs=${2:-0}
local -i uwait=25000
- local -i loops=$(((wsecs * 100000) / $uwait))
+ local -i loops=$(((wsecs * 1000000) / $uwait))
local -i loop=0 ret=0
link_ready_check "$iface" ; ret=$?
@@ -179,7 +179,7 @@ ipv6_addr_dad_wait()
local iface=$1
local -i wsecs=${2:-0}
local -i uwait=25000
- local -i loops=$(((wsecs * 100000) / $uwait))
+ local -i loops=$(((wsecs * 1000000) / $uwait))
local -i loop=0 ret=0
ipv6_addr_dad_check "$iface" ; ret=$?
--
1.7.7
From 3caea6d006bf054399bcbed1c4a17545437b07f9 Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski
Date: Thu, 5 Jan 2012 17:56:33 +0100
Subject: [PATCH] Use link_ready_wait instead of up flag check loop
A loop checking the link UP flag was immediately successful
and thus useless. Use a short 3 sec link_ready_wait instead
to give the kernel some time to apply scope local address
and start async tasks like IPv6 dad and avoid some of the
initial send errors reported by dhclient6 (bnc#697929).
Signed-off-by: Marius Tomaschewski
---
scripts/ifup-dhcp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/ifup-dhcp b/scripts/ifup-dhcp
index 1052a16..48234e1 100755
--- a/scripts/ifup-dhcp
+++ b/scripts/ifup-dhcp
@@ -677,12 +677,12 @@ case "$ACTION" in
debug "Activating interface $INTERFACE"
if ! is_iface_up $INTERFACE ; then
+
ip link set $INTERFACE up ${MTU:+mtu $MTU} \
${LLADDR:+address $LLADDR} $LINK_OPTIONS
- for ((count=200; count >= 0; count--)) ; do
- is_iface_up $INTERFACE && break
- usleep 25000
- done
+
+ # wait a bit or dhclient(6) may produce false send errors
+ link_ready_wait "$INTERFACE" 3
# (optionally) wait until a device is really configured
sleep ${DHCLIENT_SLEEP:-0}
--
1.7.7
++++++ 0007-Disabled-bash-posix-mode-to-allow-bash-features.patch ++++++
From 22e9b0b93c315ca37c25bfb3f738f8b2cb95215f Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski
Date: Mon, 9 Jan 2012 19:56:52 +0100
Subject: [PATCH] Disabled bash posix mode to allow bash features
Signed-off-by: Marius Tomaschewski
---
scripts/convert_to_netconfig_dns | 2 ++
scripts/convert_to_netconfig_nis | 2 ++
scripts/functions.rpm-utils | 2 ++
scripts/if-up.ndp-proxy | 2 ++
scripts/ifdown-connection | 2 ++
scripts/ifup | 2 ++
scripts/ifup-802.1q | 2 ++
scripts/ifup-autoip | 2 ++
scripts/ifup-bonding | 2 ++
scripts/ifup-bridge | 3 +++
scripts/ifup-dhcp | 2 ++
scripts/ifup-infiniband | 2 ++
scripts/ifup-ppp | 2 ++
scripts/ifup-route | 2 ++
scripts/ifup-services | 2 ++
scripts/ifup-skel | 2 ++
scripts/ifup-sysctl | 3 +++
scripts/ifup-tunnel | 2 ++
scripts/ifup-wireless | 2 ++
scripts/ip-up | 2 ++
scripts/netconfig | 1 +
scripts/netconfig.d/dns-bind | 2 ++
scripts/netconfig.d/dns-dnsmasq | 2 ++
scripts/netconfig.d/dns-resolver | 2 ++
scripts/netconfig.d/nis | 2 ++
scripts/netconfig.d/ntp-runtime | 2 ++
scripts/network | 2 ++
scripts/network-remotefs | 2 ++
29 files changed, 59 insertions(+), 0 deletions(-)
diff --git a/scripts/convert_to_netconfig_dns b/scripts/convert_to_netconfig_dns
index 04a7260..7cc6e84 100644
--- a/scripts/convert_to_netconfig_dns
+++ b/scripts/convert_to_netconfig_dns
@@ -5,6 +5,8 @@
# - 1 on failure
###
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
test "${DEBUG}" = yes && set -x
# helper functions
diff --git a/scripts/convert_to_netconfig_nis b/scripts/convert_to_netconfig_nis
index 5c46eb5..f7e7571 100644
--- a/scripts/convert_to_netconfig_nis
+++ b/scripts/convert_to_netconfig_nis
@@ -5,6 +5,8 @@
# - 1 on failure
###
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
test "${DEBUG}" = yes && set -x
# helper functions
diff --git a/scripts/functions.rpm-utils b/scripts/functions.rpm-utils
index 7b41018..7742a1e 100644
--- a/scripts/functions.rpm-utils
+++ b/scripts/functions.rpm-utils
@@ -1,5 +1,7 @@
#!/bin/bash
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
# similar to remove_and_set rpm suse macro,
# but more flexible and able to handle files
# in subdirs of the etc/sysconfig directory.
diff --git a/scripts/if-up.ndp-proxy b/scripts/if-up.ndp-proxy
index 3cd81f9..279f8c0 100755
--- a/scripts/if-up.ndp-proxy
+++ b/scripts/if-up.ndp-proxy
@@ -55,6 +55,8 @@
# 192.168.100.12 tap2 eth0 tap1
#--
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "usage: $0 [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifdown-connection b/scripts/ifdown-connection
index b1c8e68..4a9a38b 100644
--- a/scripts/ifdown-connection
+++ b/scripts/ifdown-connection
@@ -18,6 +18,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
# TODO:
# when closing first use -TERM (except if we just try with -0)
# for ichecking improve output and remove output from getdests() and nfscheck()
diff --git a/scripts/ifup b/scripts/ifup
index 6fc55ec..0a2d74f 100755
--- a/scripts/ifup
+++ b/scripts/ifup
@@ -29,6 +29,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status} [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-802.1q b/scripts/ifup-802.1q
index 66c84ba..bd6c1cf 100644
--- a/scripts/ifup-802.1q
+++ b/scripts/ifup-802.1q
@@ -7,6 +7,8 @@
# Marius Tomaschewski , 2007-2009
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down}-802.1q [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-autoip b/scripts/ifup-autoip
index ecb2e38..b515364 100755
--- a/scripts/ifup-autoip
+++ b/scripts/ifup-autoip
@@ -18,6 +18,8 @@
# Author: Michael Schroeder , 2004
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-autoip [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-bonding b/scripts/ifup-bonding
index e9c50c0..ca75d4a 100755
--- a/scripts/ifup-bonding
+++ b/scripts/ifup-bonding
@@ -23,6 +23,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-bonding [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-bridge b/scripts/ifup-bridge
index 041c760..e2e7c8f 100755
--- a/scripts/ifup-bridge
+++ b/scripts/ifup-bridge
@@ -12,6 +12,9 @@
#
# $Id$
#
+
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "usage: if{up,down,status}-bridge [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-dhcp b/scripts/ifup-dhcp
index 48234e1..c3df76b 100755
--- a/scripts/ifup-dhcp
+++ b/scripts/ifup-dhcp
@@ -19,6 +19,8 @@
# Peter Poeml , 2002-2006
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-dhcp [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-infiniband b/scripts/ifup-infiniband
index 2e24aac..4476ff5 100755
--- a/scripts/ifup-infiniband
+++ b/scripts/ifup-infiniband
@@ -23,6 +23,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-infiniband [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-ppp b/scripts/ifup-ppp
index 54250a1..2b9cd60 100755
--- a/scripts/ifup-ppp
+++ b/scripts/ifup-ppp
@@ -23,6 +23,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
function usage()
{
echo $@
diff --git a/scripts/ifup-route b/scripts/ifup-route
index 48dabfa..7a9de82 100755
--- a/scripts/ifup-route
+++ b/scripts/ifup-route
@@ -21,6 +21,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-route [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-services b/scripts/ifup-services
index 8a3b083..8f06f6c 100755
--- a/scripts/ifup-services
+++ b/scripts/ifup-services
@@ -22,6 +22,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-services [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-skel b/scripts/ifup-skel
index dc04ab0..f4743eb 100755
--- a/scripts/ifup-skel
+++ b/scripts/ifup-skel
@@ -25,6 +25,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo ""
diff --git a/scripts/ifup-sysctl b/scripts/ifup-sysctl
index 5b30dd5..5550241 100755
--- a/scripts/ifup-sysctl
+++ b/scripts/ifup-sysctl
@@ -20,6 +20,9 @@
# Author:
# Marius Tomaschewski
#
+
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "usage: if{up,down,status}-sysctl [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-tunnel b/scripts/ifup-tunnel
index 60313da..5abd287 100755
--- a/scripts/ifup-tunnel
+++ b/scripts/ifup-tunnel
@@ -25,6 +25,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-tunnel [<config>] <interface> [-o <options>]"
diff --git a/scripts/ifup-wireless b/scripts/ifup-wireless
index 45f27af..d7fcb22 100755
--- a/scripts/ifup-wireless
+++ b/scripts/ifup-wireless
@@ -22,6 +22,8 @@
# $Id$
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
usage () {
echo $@
echo "Usage: if{up,down,status}-wireless [<config>] <interface> [-o <options>]"
diff --git a/scripts/ip-up b/scripts/ip-up
index c7d02ab..b09430e 100755
--- a/scripts/ip-up
+++ b/scripts/ip-up
@@ -9,6 +9,8 @@
# Ludwig Nussel 26.02.2004
# Send suggestions and comments to http://www.suse.de/feedback/
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
BASENAME=${0##*/}
INTERFACE=$1
DEVICE=$2
diff --git a/scripts/netconfig b/scripts/netconfig
index ac6ddad..74cce29 100755
--- a/scripts/netconfig
+++ b/scripts/netconfig
@@ -28,6 +28,7 @@
# because it was changed since the last run
#
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
# The environment variable ROOT indicates the root of the system to be
# managed by SuSEconfig when that root is not '/'
diff --git a/scripts/netconfig.d/dns-bind b/scripts/netconfig.d/dns-bind
index 72127c6..50e798e 100755
--- a/scripts/netconfig.d/dns-bind
+++ b/scripts/netconfig.d/dns-bind
@@ -21,6 +21,8 @@
#
##
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then
echo "You must be root to start $0." >&2
exit 1
diff --git a/scripts/netconfig.d/dns-dnsmasq b/scripts/netconfig.d/dns-dnsmasq
index 8fa0ebb..2d917a6 100755
--- a/scripts/netconfig.d/dns-dnsmasq
+++ b/scripts/netconfig.d/dns-dnsmasq
@@ -21,6 +21,8 @@
#
##
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then
echo "You must be root to start $0." >&2
exit 1
diff --git a/scripts/netconfig.d/dns-resolver b/scripts/netconfig.d/dns-resolver
index b389084..d6e1106 100755
--- a/scripts/netconfig.d/dns-resolver
+++ b/scripts/netconfig.d/dns-resolver
@@ -20,6 +20,8 @@
#
##
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then
echo "You must be root to start $0." >&2
exit 1
diff --git a/scripts/netconfig.d/nis b/scripts/netconfig.d/nis
index e7c379d..a6a66ed 100755
--- a/scripts/netconfig.d/nis
+++ b/scripts/netconfig.d/nis
@@ -20,6 +20,8 @@
#
##
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then
echo "You must be root to start $0." >&2
exit 1
diff --git a/scripts/netconfig.d/ntp-runtime b/scripts/netconfig.d/ntp-runtime
index 162ad1a..86340e8 100755
--- a/scripts/netconfig.d/ntp-runtime
+++ b/scripts/netconfig.d/ntp-runtime
@@ -20,6 +20,8 @@
#
##
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
if test "$UID" != "0" -a "$USER" != root -a -z "$ROOT" ; then
echo "You must be root to start $0." >&2
exit 1
diff --git a/scripts/network b/scripts/network
index f82f4d1..c68df33 100755
--- a/scripts/network
+++ b/scripts/network
@@ -41,6 +41,8 @@
# and set up routing
### END INIT INFO
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
. /etc/rc.status
rc_reset
diff --git a/scripts/network-remotefs b/scripts/network-remotefs
index addc398..93d0c9e 100755
--- a/scripts/network-remotefs
+++ b/scripts/network-remotefs
@@ -37,6 +37,8 @@
# Wireless and set up routing or start the NetworkManager
### END INIT INFO
+unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
+
. /etc/rc.status
rc_reset
--
1.7.7
continue with "q"...
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org