Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144612 - gnome-base/librsvg-2.14.4- PDF output from rsvg-convert results in Unknown output format.
Summary: gnome-base/librsvg-2.14.4- PDF output from rsvg-convert results in Unknown ou...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 02:20 UTC by Martin von Gagern
Modified: 2007-09-12 09:01 UTC (History)
0 users

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 Martin von Gagern 2006-08-21 02:20:37 UTC
Looking for a way to convert SVG to PDF, I found rsvg-convert on my ~x86 system. Doing the same on my stable x86 system, I got an error message: "Unknown output format." (without newline afterwards...). PDF was listed in the output options, though, so I was a bit surprised. Things got strange when I realized that I had the same version of librsvg installed on both systems, which was 2.14.4. Looking at the sources of librsvg convinced me that pdf output depends on cairo, so I unmasked and emerged cairo-1.2.2. But it seems that pdf output is disabled at compile time of librsvg, so I had to remerge that as well. revdep-rebuild did not pick up this dependency.

First reason why I submit this bug report here is so that others may find it and use it as a workaround to solve the problem without having to read the sources themselves.

Then it would be great to have this handled in a more intuitive way. I'm thinking about a pdf USE flag for librsvg. If it is not set, pdf output should be disabled no matter what cairo supports, and pdf should be removed from the list of possible output formats. If the pdf USE flag is set, librsvg should depend on a recent version of cairo and ensure that that was compiled with USE pdf as well. Probably this new ebuild would have to be ~ARCH until cairo with svg output becomes stable.

Maybe I'll write a patch if I find the time, but this won't be for the next few weeks I fear.
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2007-09-02 13:17:51 UTC
cairo's pdf output should have improved dramatically during the past year. If you have any more issues with either librsvg's or cairo's pdf support, don't hesitate to reopen this bug.

Please try again with the latest stable versions.

Thanks
Comment 2 Martin von Gagern 2007-09-12 08:54:07 UTC
I can confirm that PDF output works with latest versions of cairo and librsvg. As the latest stable cairo is newer than the 1.2.2 which solved the issue in my original report, there is not much surprise here. So I'd deem the whole issue fixed by having later versions in the portage tree, however you call this resolution. NEEDINFO seems inappropriate to me, however.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-09-12 09:01:14 UTC
info provided
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-09-12 09:01:46 UTC
and closing, thanks for getting back to us.