Accepting request 226731 from home:mtomaschewski:branches:GNOME:Factory

Same to rq#224144, released in openSUSE:13.1:Update:
- do not start unconditionally / by default under sysconfig as
  it breaks vlan,bridge,bonding setups (bnc#853845,bnc#851953)

OBS-URL: https://build.opensuse.org/request/show/226731
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=106
This commit is contained in:
Dominique Leuenberger 2014-03-19 12:45:22 +00:00 committed by Git OBS Bridge
parent 2d828a1e07
commit 3caaf5b2f9
7 changed files with 30 additions and 7 deletions

View File

@ -63,7 +63,10 @@ Disadvantage:
autoip from sysconfig package autoip from sysconfig package
============================= =============================
autoip is hard bound to sysconfig scripts and it is called during ifup. autoip is not bound to sysconfig scripts and it is not called during
as sysconfig is using an own implementation. To enable you have to
set AVAHI_AUTOIPD_ENABLE=yes in /etc/sysconfig/avahi. Note, that it
starts unconditionally then and breaks bridges,vlan,bond, ...
If DHCP adrress is assigned, autoip ends immediately. Only if no DHCP If DHCP adrress is assigned, autoip ends immediately. Only if no DHCP
address is assigned, it stays running as a daemon and provides IPv4LL address is assigned, it stays running as a daemon and provides IPv4LL

View File

@ -2,15 +2,18 @@
## Description: Zeroconf (Bonjour, Rendezvous) options ## Description: Zeroconf (Bonjour, Rendezvous) options
## Type: yesno ## Type: yesno
## Default: yes ## Default: no
# #
# Enable or disable avahi implementation of IPv4LL. If you select # Enable or disable avahi implementation of IPv4LL. If you select
# "yes", then it ignores AUTOIP keyword in the YaST network # "yes", then it ignores AUTOIP keyword in the YaST network
# configuration. You should disable autoip implementation by disabling # configuration. You should disable autoip implementation by disabling
# AUTOIP in the YaST network configuration of all devices. # AUTOIP in the YaST network configuration of all devices.
#
# Note, that enabling it causes to start unconditionally on any
# interface and will break bridges,vlan,bond, ...
# For more see @docdir@/avahi-autoipd/README.SUSE. # For more see @docdir@/avahi-autoipd/README.SUSE.
# #
AVAHI_AUTOIPD_ENABLE="yes" AVAHI_AUTOIPD_ENABLE="no"
## Type: yesno ## Type: yesno
## Default: no ## Default: no

View File

@ -1,7 +1,7 @@
# #
# spec file for package avahi-glib2 # spec file for package avahi-glib2
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,7 +1,7 @@
# #
# spec file for package avahi-mono # spec file for package avahi-mono
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,7 +1,7 @@
# #
# spec file for package avahi-qt4 # spec file for package avahi-qt4
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 27 18:12:43 UTC 2014 - mt@suse.com
- do not start unconditionally / by default under sysconfig as
it breaks vlan,bridge,bonding setups (bnc#853845,bnc#851953)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 25 17:26:26 UTC 2013 - dimstar@opensuse.org Wed Sep 25 17:26:26 UTC 2013 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package avahi # spec file for package avahi
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -979,6 +979,17 @@ rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-ui.pc
%if %suse_version >= 1210 %if %suse_version >= 1210
%service_add_pre avahi-dnsconfd.service avahi-daemon.service %service_add_pre avahi-dnsconfd.service avahi-daemon.service
%endif %endif
# bnc#853845,bnc#851953: do not start by default under
# sysconfig as this breaks vlan,bridge,bonding setups
# in pre to revert old default setting from template.
if test -f var/adm/fillup-templates/sysconfig.avahi-autoipd -a \
-f etc/sysconfig/avahi ; then
. var/adm/fillup-templates/sysconfig.avahi-autoipd
if test "X$AVAHI_AUTOIPD_ENABLE" = "Xyes" ; then
sed -i etc/sysconfig/avahi \
-e 's/^\(AVAHI_AUTOIPD_ENABLE\)=.*/\1="no"/'
fi
fi
%post %post
%{fillup_only -n avahi} %{fillup_only -n avahi}