Bug 175352 - Preinstall scriptlet does not check if avahi is currently installed
Summary: Preinstall scriptlet does not check if avahi is currently installed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: avahi
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-09 09:14 UTC by Boyan Anastasov
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-12 17:10:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Boyan Anastasov 2005-12-09 09:14:12 UTC
From Bugzilla Helper:
User-Agent: Opera/9.00 (X11; Linux i686; U; en)

Description of problem:
After every yum upgrade of avahi, avahi-daemon is set to start on boot even if 
I previously disabled it with:
chkconfig avahi-daemon off

Preinstall script does not check if avahi is already installed and resets my 
settings:

bash# rpm -q --scripts avahi
preinstall scriptlet (using /bin/sh):
# Add the "avahi" user
/usr/sbin/useradd -c 'Avahi daemon' -u 70 \
        -s /sbin/nologin -r -d '/' avahi 2> /dev/null || :
postinstall scriptlet (using /bin/sh):
/sbin/ldconfig
if [ "$1" -eq 1 ]; then
   /sbin/chkconfig --add avahi-daemon >/dev/null 2>&1
..........


Version-Release number of selected component (if applicable):
avahi-0.6.1-1

How reproducible:
Always

Steps to Reproduce:
1. Upgrade avahi with yum or rpm
2.
3.
  


Actual Results:  bash# chkconfig --list avahi-daemon
avahi-daemon    0:off   1:off   2:off   3:on    4:on    5:on    6:off


Expected Results:  Like before upgrade it should be:
bash# chkconfig --list avahi-daemon
avahi-daemon    0:off   1:off   2:off   3:off   4:off   5:off   6:off



Additional info:

Comment 1 Jason Vas Dias 2005-12-09 21:35:58 UTC
This bug is now fixed with avahi-0.6.1-2 , in tomorrow's rawhide -
only if the avahi-daemon service is not known to chkconfig at all
will the chkconfig --add be done . 

Unfortunately, we have to enable the avahi service by default, because packages
like gnome-meeting, gnome-vfs, openoffice, etc. depend on the avahi service 
running - hopefully in the future we'll have a way of letting services dynamically
enable services on which they depend.

Comment 2 Lennart Poettering 2007-08-12 17:10:06 UTC
I think this can be closed now.


Note You need to log in before you can comment on or make changes to this bug.