Bug 3574

Summary: directory '/var/avahi' does not exist
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: RPM PackagesAssignee: D Morgan <dmorganec>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: luigiwalser
Version: CauldronKeywords: Junior_job, Triaged
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: avahi-0.6.30-4.mga2.src.rpm CVE:
Status comment:

Description Bit Twister 2011-12-02 02:38:12 CET
Description of problem:

# pwck -r shows
user 'avahi': directory '/var/avahi' does not exist
user 'avahi-autoipd': directory '/var/avahi' does not exist


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


How reproducible: Always


Steps to Reproduce:
1. click up a terminal
2. su - root
3. pwck -r
Comment 1 Manuel Hiebel 2011-12-02 12:55:09 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

Keywords: (none) => Junior_job, Triaged
Assignee: bugsquad => dmorganec
Summary: 2_alpha1: directory '/var/avahi' does not exist => directory '/var/avahi' does not exist

Comment 2 D Morgan 2011-12-07 08:49:29 CET
fixed in svn.

Reopen the bugreport if the next rpm does not fix your bug

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 3 Bit Twister 2013-07-03 08:14:16 CEST
Preparing...                     #####################
     1/11: lib64avahi-common3    #################################
     2/11: lib64avahi-core7      #################################
usermod: user avahi is currently used by process 1063

Result after all 11 packages were updated:
$ grep avahi /etc/passwd
avahi:x:496:494:system user for avahi:/var/avahi:/bin/false
avahi-autoipd:x:495:493:system user for avahi:/var/lib/avahi-autoipd:/bin/false

Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 4 Bit Twister 2013-07-03 08:25:50 CEST
You might want to add a "mkdir -p /var/lib/avahi-autoipd" to the rpm script, :)
and maybe a chown if needed.

# pwck -r
user 'avahi-autoipd': directory '/var/lib/avahi-autoipd' does not exist

Is there a rpm command which allows me to see the scripts executed by a rpm, and if so, what is it?
Comment 5 David Walser 2013-08-14 01:12:23 CEST
*** Bug 10977 has been marked as a duplicate of this bug. ***
Comment 6 David Walser 2013-08-14 01:16:26 CEST
D Morgan attempted to fix it here:
http://svnweb.mageia.org/packages/cauldron/avahi/current/SPECS/avahi.spec?r1=176921&r2=178135

I believe the problem was the %ghost on the directory means that the package will not create the directory on installation, it will only remove it on uninstallation.

I have removed the %ghost and hopefully fixed this in avahi-0.6.31-4.mga4.

PS - Bit Twister, please update your /etc/passwd, the correct home directory for avahi-autopid is /var/avahi.

Status: REOPENED => RESOLVED
CC: (none) => luigiwalser
Resolution: (none) => FIXED

Comment 7 David Walser 2013-08-14 01:32:05 CEST
Ahh if only it would build.  Will close once that's fixed.

http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20130813231546.luigiwalser.valstar.4696/log/avahi-0.6.31-4.mga4/build.0.20130813231703.log

Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 8 David Walser 2013-08-14 13:38:18 CEST
Build now fixed in avahi-0.6.31-4.mga4 by Jani.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED