Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219617 - sys-apps/hal-0.5.10 uses /var/cache/hald not /var/lib/cache/hald
Summary: sys-apps/hal-0.5.10 uses /var/cache/hald not /var/lib/cache/hald
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 19:34 UTC by Markus Rothe (RETIRED)
Modified: 2009-01-18 19:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2008-04-28 19:34:02 UTC
on a fresh install I ran into the following problem:

# hald --daemon=no --verbose=yes
21:22:30.542 [I] hald.c:634: hal 0.5.10
21:22:30.542 [I] hald.c:699: Will not daemonize
21:22:30.544 [I] hald_dbus.c:5285: local server is listening at unix:abstract=/var/run/hald/dbus-6bWhECAiFW,guid=6ee9aa3d9d32bd7d81a01376481623f6
Runner started - allowed paths are '/usr/libexec:/usr/lib64/hal/scripts:/usr/bin'
21:22:30.559 [I] hald_runner.c:301: Runner has pid 31292
21:22:30.561 [W] ci-tracker.c:299: Could not get uid for connection: org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name 'org.freedesktop.DBus': no such name
21:22:30.561 [E] hald_dbus.c:4944: Cannot get caller info for org.freedesktop.DBus
21:22:30.562 [I] hald_runner.c:182: runner connection is 0x10076400
21:22:30.563 [W] osspec.c:363: Unable to open /proc/mdstat: No such file or directory
21:22:30.570 [I] mmap_cache.c:129: Regenerating fdi cache..
Run started hald-generate-fdi-cache (60000) (0) 
!  full path is '/usr/libexec/hald-generate-fdi-cache', program_dir is '/usr/libexec'
21:22:30.582 [E] create_cache.c:631: Unable to open fdi cache '/var/cache/hald/fdi-cache~' file for writing: No such file or directory
21:22:30.592 [E] create_cache.c:701: Error generating fdi cache
/usr/libexec/hald-generate-fdi-cache exited
21:22:30.595 [I] mmap_cache.c:105: In regen_cache_cb exit_type=0, return_code=1
21:22:30.595 [E] mmap_cache.c:158: fdi cache regeneration failed!
21:22:30.595 [I] mmap_cache.c:161: fdi cache generation done
21:22:30.595 [I] mmap_cache.c:282: cache mtime is 1209409907
*** [DIE] mmap_cache.c:di_rules_init():70 : Unable to open cache /var/cache/hald/fdi-cache


This solves the issue:

--- hal-0.5.10.ebuild.orig      2008-04-20 15:07:06.000000000 +0200
+++ hal-0.5.10.ebuild   2008-04-28 21:14:00.208000754 +0200
@@ -247,7 +247,7 @@
        keepdir /etc/hal/fdi/{information,policy,preprobe}
 
        # HAL stores it's fdi cache in /var/lib/cache/hald
-       keepdir /var/lib/cache/hald
+       keepdir /var/cache/hald
 
        # HAL keeps its unix socket here
        keepdir /var/run/hald
Comment 1 Thomas Fischer 2008-08-03 09:59:49 UTC
I can confirm this problem. As a preliminary fix, I added a link from /var/lib/cache/hald to /var/cache/hald (no need to rebuild hald).
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-18 19:57:14 UTC
this is fixed in 0.5.11-r6.