Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345429 - app-text/poppler: separate dependency on cairo and gtk+ to avoid dependency on X
Summary: app-text/poppler: separate dependency on cairo and gtk+ to avoid dependency on X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 18:22 UTC by Jeff Kowalczyk
Modified: 2011-10-31 23:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Kowalczyk 2010-11-14 18:22:06 UTC
I would like to install texlive-2010 on servers having USE="-X".

texlive optionally depends on luatex, which depends on poppler, which depends on cairo.

In the poppler ebuild dependency code, cairo and gtk+ are grouped together. gtk+ brings in the unwanted X dependency:

        cairo? (
                dev-libs/glib:2
                >=x11-libs/cairo-1.8.4
                >=x11-libs/gtk+-2.14.0:2
        )

Could the two be separated into separate tests, e.g. cairo? () and X? (), so that cairo can be installed on systems without X?:

        cairo? (
                dev-libs/glib:2
                >=x11-libs/cairo-1.8.4
        )
        X?     (
                >=x11-libs/gtk+-2.14.0:2
        )

Apologies if I have assessed the above issue incorrectly. The objective is to remove a possibly unnecessary on X, by any means necessary.

Thanks.

Reproducible: Always
Comment 1 Maciej Mrozowski gentoo-dev 2010-12-27 19:15:54 UTC
No, splitting cairo and gtk+ is not possible here. And luatex just needs old xpdf headers from poppler - you don't need glib/cairo/gtk bidnings at all for luatex so just disable cairo USE flag for poppler and you're done.
Comment 2 Jeff Kowalczyk 2011-04-14 18:25:47 UTC
Apologies for reopening if that's frowned upon. New information:

As of poppler-0.16, the poppler-glib dependency on GDK has been removed.

glib:
 ...
 * Remove GDK API
 * Remove test-poppler-glib
 ...

Hopefully this can ease the need to couple cairo and gtk coupling in poppler dependencies:

cairo? (
  dev-libs/glib:2
  >=x11-libs/cairo-1.10.0
  >=x11-libs/gtk+-2.20.1:2[introspection?]
  introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
)

Regarding Maciej's suggestion to build poppler with USE="-cairo", will that affect more functionality than just "glib/cairo/gtk bindings for luatex"?

Given my constraint to not install X on servers, my primary objective to to preserve the cairo capabilities in PDF, SVG and other backends, these are important in R (for rendering output to R's Cairo device), and I think for poppler if luatex is using it to render parts of output .e.g. PDF.

Thank you.
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2011-10-29 20:28:42 UTC
GDK != GTK
Comment 4 Maciej Mrozowski gentoo-dev 2011-10-31 22:46:04 UTC
Well if you look at poppler-0.18.0.ebuild:

cairo? (
	dev-libs/glib:2
	>=x11-libs/cairo-1.10.0
	introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
)

So I guess it's solved.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-10-31 23:05:18 UTC
(In reply to comment #4)
> Well if you look at poppler-0.18.0.ebuild:
> 
> cairo? (
>     dev-libs/glib:2
>     >=x11-libs/cairo-1.10.0
>     introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
> )
> 
> So I guess it's solved.

Indeed.