After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 320172 - garnome-2.13.1 fails on HAL
garnome-2.13.1 fails on HAL
Status: RESOLVED OBSOLETE
Product: GARNOME
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GARNOME Maintainers
garnome list
Depends on:
Blocks:
 
 
Reported: 2005-10-29 13:25 UTC by Kovarththanan Rajaratnam
Modified: 2006-03-04 20:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kovarththanan Rajaratnam 2005-10-29 13:25:43 UTC
1. Download garnome-2.13.1
2. Extract and make paranoid-install

What happends:
....
mkdir: cannot create directory `/etc/hotplug.d': Permission denied
...
Comment 1 Joseph Sacco 2005-10-29 14:18:27 UTC
GARNOME is:
(1) *never* installed over an existing desktop
(2) *never* built by root

Kindly review the README.

-Joseph
Comment 2 Karsten Bräckelmann 2005-10-29 18:22:41 UTC
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.
Comment 3 Joseph Sacco 2005-10-29 19:39:07 UTC
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...
Comment 4 Joseph Sacco 2005-10-29 19:52:28 UTC
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
Comment 5 Karsten Bräckelmann 2005-10-29 21:25:07 UTC
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.
Comment 6 Karsten Bräckelmann 2005-10-29 21:27:29 UTC
btw, if any, option c) is correct -- not broken though, but not behaving nicely
either ;-)
Comment 7 Karsten Bräckelmann 2005-10-29 21:29:08 UTC
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...
Comment 8 Joseph Sacco 2005-10-29 22:52:51 UTC
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
Comment 9 Kovarththanan Rajaratnam 2005-10-30 15:35:46 UTC
#2, #3: My main prefix is set to "main_prefix ?= $(HOME)/garnome"

Comment 10 Bob Kashani 2005-11-03 05:30:21 UTC
Fixed. Paul, committed (2005-11-02) your changes, Joseph.

We still need to add the README stuff though.
Comment 11 Bob Kashani 2006-02-24 23:08:19 UTC
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...
Comment 12 Bob Kashani 2006-02-25 00:30:10 UTC
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?
Comment 13 Bob Kashani 2006-03-04 20:29:07 UTC
This option is now obsolete in newer versions of HAL.