On 10/1/07, randd <[EMAIL PROTECTED]> wrote:
>
> This may very well be a case of me not knowing what the heck I'm doing, and
> I apologize in advance if that's the case... I'm trying to install
> PolicyKit-0.3 (the tarball at
> http://people.freedesktop.org/~david/dist/PolicyKit-0.3.tar.gz, not the
> latest development version from git).  It builds and installs w no errors;

First thing is that you might want to try a newer release. There was a
major rewrite a little while ago, and the example conf file online
probably won't work for your older release. The new releases (and old
ones) are here:

http://hal.freedesktop.org/releases/

> I decided to RTFM and created the directory myself (install -d -m755
>  -opolkit -gpolkit /usr/share/PolicyKit/policy/).  I placed in it the example
> at freedesktop.org:
> http://hal.freedesktop.org/docs/PolicyKit/polkit-conf.html
> naming it "example.policy".
>
> When I type polkit-list-actions, it responds: ** (process:15928): WARNING
> **: Error loading policy files from /usr/share/PolicyKit/policy:
> /usr/share/PolicyKit/policy/sample.policy:7: parse error: parsing aborted
> polkit-policy-file-validate gives the same error.
>
> If I trim example.policy so it contains nothing more than:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE policyconfig PUBLIC
> "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
> "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd";>
> <policyconfig>
> </policyconfig>
>
> then neither tool returns an error.

I'd expect something in that example file is not expected on 0.3. As I
said before, things changed quite a bit recently. Try version 0.5.
Here's the announcement for that version:

http://lists.freedesktop.org/archives/hal/2007-August/009511.html

I think it probably needs ConsoleKit to be running, too.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to