| Summary: | x11-libs/cairo-1.8.0 redudant dependency on gtk+ and librsvg | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Nikolay S. Rybaloff <dairinin> |
| Component: | Current packages | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | compnerd, pva, sulka.raf |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge --info | ||
|
Description
Nikolay S. Rybaloff
2008-10-14 08:29:23 UTC
Created attachment 168376 [details]
emerge --info
This seems to be a change in cairo-1.8.0. Nikolay, please, use cairo-1.6.x at the moment.
@cairo-maintainers: Guys, seems that cairo needs librsvg only for testing and is not required for building. Could you, please, check and remove that unnecessary dependencies? At least personally I've removed gtk+ and librsvg from svg? ( ) in DEPEND in cairo-1.8.0 and it built with
SVG: yes
in configure summary and I've managed to build rrdtool later.
Specific sniplet from configure.ac for cairo-1.8.0:
test_svg=no
if test "x$use_svg" = "xyes"; then
librsvg_DEPENDENCY="librsvg-2.0 >= $LIBRSVG_VERSION_REQUIRED"
PKG_CHECK_MODULES(LIBRSVG, $librsvg_DEPENDENCY gdk-2.0,
[CAIRO_CHECK_FUNCS_WITH_FLAGS(rsvg_pixbuf_from_file, [$LIBRSVG_CFLAGS], [$LIBRSVG_LIBS],
[test_svg=yes],
[AC_MSG_RESULT(no); test_svg="no (requires $librsvg_DEPENDENCY)"])],
[AC_MSG_RESULT(no); test_svg="no (requires $librsvg_DEPENDENCY)"])
if test "x$test_svg" = "xyes"; then
AC_DEFINE([CAIRO_CAN_TEST_SVG_SURFACE], 1, [Define to 1 if the SVG backend can be tested])
else
AC_MSG_WARN([SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available])
fi
Note this all checks are for test_svg and they don't disable/required for svg backend.
Another possiblity is to add test? ( librsbg gtk+ ). But then notice comment:
# Test causes a circular depend on gtk+... since gtk+ needs cairo but test
# needs gtk+ so we need to block it
RESTRICT="test"
And later you add gtk+. How do you avoid circular dependency in this case?
Thanks in advance.
With cairo-1.8.0 hardmasked, dependency for pango-1.22.0 is also broken (>=x11-libs/cairo-1.7.6) (In reply to comment #3) > With cairo-1.8.0 hardmasked, dependency for pango-1.22.0 is also broken > (>=x11-libs/cairo-1.7.6) cairo-1.8 is NOT hardmasked. (In reply to comment #2) <snip> Very aware of how it works. Unfortunately while I was on my honeymoon someone added cairo 1.8.0 with all of it's test depends in the regular depends section and I just didn't scrub them all out when I got back.. I have scrubbed them out on Doug's request. Apparently he already marked this one fixed too :) *** Bug 241854 has been marked as a duplicate of this bug. *** |