According to the HAL specs (http://gitweb.freedesktop.org/?p=hal.git;a=blob_plain;f=doc/spec/hal-spec.html#spec-device-info) should be able to handle indirections in copy_property in both <merge>, <append> and <prepend>-nodes, however only <merge> handles indirections right. A simple .fdi file which illustrates the problem will be posted shortly. I've looked in the lastest source from the upstream repository, but it doesn't seem like they have fixed to problem yet either.
Created attachment 100556 [details] Simple test case which illustrates the bug This simple test case illustrates the bug with indirections in <append> and <prepend>. Simply put this file in /etc/hal/fdi/policy and plug in some removable storage-device (e.g an USB-key). If indirections in <append> and <prepend> had worked, volume.policy.desired_mount_point should be "usb_disk" for a USB-key.
Created attachment 100558 [details, diff] Fix for handling indirections in <append> and <prepend> This patch fixes the bug by correctly handling indirections in copy_property in <append> and <prepend>. It also simplifies the code a bit by merging the append and prepend handling code, as they are nearly identical anyway. The patch has been made with sys-apps/hal-0.5.7-r3 but also works with sys-hal-0.5.7.1-r1 without any changes.
Have you passed this upstream? Please reference where you passed it upstream.
(In reply to comment #3) > Have you passed this upstream? Please reference where you passed it upstream. OK, I passed it upstream now: https://bugs.freedesktop.org/show_bug.cgi?id=9849 However I don't have any high hopes. The last time I tried to get in touch with the HAL-developers they simply ignored me.
Added in -r5. Good job on this.