Bug 30271 - PolicyKit has a hard dependency on gtk-doc, when it should be optional.
Summary: PolicyKit has a hard dependency on gtk-doc, when it should be optional.
Status: RESOLVED WONTFIX
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-19 19:16 UTC by Justin Clift
Modified: 2010-09-21 00:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Justin Clift 2010-09-19 19:16:00 UTC
Just went to compile PolicyKit 0.99, as it's a required dependency for libvirt.

However, it turns out that PolicyKit has a hard dependency upon gtk-doc:

  $ ./autogen.sh

  You must have gtk-doc installed to compile .
  Install the appropriate package for your distribution,
  or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/
  $

Building of documentation should be an option, not a requirement.

As I'm attempting a build of PolicyKit on Mac OS X, this dependency now leads to this choice:

 a) Investigate packaging gtk-doc as well, as that's not already packaged
    on Mac OS X in Homebrew (one of the three main package systems for OSX)

    Unlikely to take this option, as gtk-doc will likely introduce its own
    dependencies.


 b) Investigate patching PolicyKit to not build docs and not depend on
    gtk-doc.

    Most likely, as that at least allows Policykit to be functional.  However,
    if the effort involved looks to be significant, then option c) will be
    used.


 c) Officially recommend people disable PolicyKit on their Virtualisation
    Servers if they need Mac OS X clients to connect, and document how to
    do it properly.


Best choice will be b), as that will preserve security and won't require updating the docs/instructions again if/when gtk-doc is made optional.
Comment 1 David Zeuthen (not reading bugmail) 2010-09-20 08:10:56 UTC
Hi,

(In reply to comment #0)
> Just went to compile PolicyKit 0.99, as it's a required dependency for libvirt.
> 
> However, it turns out that PolicyKit has a hard dependency upon gtk-doc:
> 
>   $ ./autogen.sh
> 
>   You must have gtk-doc installed to compile .
>   Install the appropriate package for your distribution,
>   or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/
>   $

Note that --disable-gtk-doc should work just fine if you build from tarballs and use the supplied configure script. It's only if you use autogen.sh that you need gtk-doc installed.

Btw, you can get a tarball from

 http://lists.freedesktop.org/archives/polkit-devel/2010-September/000333.html
Comment 2 Justin Clift 2010-09-21 00:47:50 UTC
Thanks.  Using the tarball instead of git did get further.

(It didn't make it all the way through for other reasons... GIO/libvirt on OS X is version 2.24.1, rather than the required minimum of 2.25.12. Oh well.)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.