GNOME Bugzilla – Bug 320172
garnome-2.13.1 fails on HAL
Last modified: 2006-03-04 20:29:07 UTC
1. Download garnome-2.13.1 2. Extract and make paranoid-install What happends: .... mkdir: cannot create directory `/etc/hotplug.d': Permission denied ...
GARNOME is: (1) *never* installed over an existing desktop (2) *never* built by root Kindly review the README. -Joseph
Joseph, wait a sec. :) As permission is denied, Kovarththanan did not build as root. Possible reasons: a) We fucked up and the CONFIGURE_ARGS are seriously broken (at least for hal). b) Kovarththanan set main_prefix to something bad like /. c) hal is broken (upstream) and has some paths hardcoded. Especially with unstabe releases we have seen c) quite some time in the past. This is one of the various reasons why building as root is dangerous.
I hope he returns to the IRC channel so we can figure out what he did. I am guessing that he chose the main_prefix that attempts to overwrite the system install desktop. I will look into this...
hal-0.5.x: requires linux kernel >= 2.6.10, udev 050 and uses /sbin/udevsend as the hotplug multiplexer/helper hal-0.4.x: works with 2.6.8 linux kernels and udev/hotplug Did Kovarththanan attempt to install hal-0.4.7 under '/' ??? -Joseph
Talked with joseph about this on IRC. He just verified a guess by us: hal wants to install /etc/hotplug.d/20-hal.hotplug, if it doesn't exist already. It just continues, if it exists. We're currently checking, if there is any reliable (automatic) workaround, short of installing hal (and only hal) with root permissions. Quick workarounds to continue the build: a) Simply create this file (empty, as root). Yes, nasty hack. b) Install hal (from GARNOME) as root. For this workaround, cd hal, 'make build' as user, make 'install' as root. c) Install a more recent hal systemwide, that ships with that file (as provided by your distro). hal 0.47 will work, not sure about older ones.
btw, if any, option c) is correct -- not broken though, but not behaving nicely either ;-)
GAR. Now that is confusing. In comment #6 I was referring to comment #2. All workarounds in comment #5 should apply. Creaping back into my hole now...
Here is another solution: Edit the GARNOME Makefile CONFIGURE_ARGS = $(DIRPATHS) --with-hotplug=$(sysconfdir)/hotplug.d What this will do is instruct HAL to create a soft link $garnome/etc/hotplug.d/default/20-hal.hotplug that points to $garnome/libexec/hal.hotplug After GARNOME is finished installing, you need to become "root" and create a soft link /etc/hotplug.d/default/20-hal.hotplug that points to $garnome/libexec/hal.hotplug -Joseph
#2, #3: My main prefix is set to "main_prefix ?= $(HOME)/garnome"
Fixed. Paul, committed (2005-11-02) your changes, Joseph. We still need to add the README stuff though.
Since we now require that GARNOME's dbus/hal be used do we still need the link info in the README? It would seem that we don't...
Just to clarify, does anything in the desktop stack require hotplug? Or should we put it in the README with a note telling people to create the links if they need hotplug to work with the GARNOME installed hal?
This option is now obsolete in newer versions of HAL.