Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13408 - app-office/dia doesn't have PNG support -- for no apparent reason
Summary: app-office/dia doesn't have PNG support -- for no apparent reason
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-06 23:26 UTC by Peter Simons
Modified: 2003-01-12 19:34 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 Peter Simons 2003-01-06 23:26:59 UTC
I have an interesting problem. I installed app-office/dia on two almost
idencital machines. On one of them, dia can export the diagrams as PNG, on the
other it cannot. Everything is the same, the USE settings are identical, the
versions match, etc.

Apparently, on the machine where PNG support works dia is linked with
libart_lgpl, on the other machine it is not. libart_lgpl is available on _both_
machines, though. Weird, isn't it?

I re-build dia a couple of times now, I tried to mess with the USE setting, but
nothing helped. Any ideas what might cause this?
Comment 1 Peter Simons 2003-01-06 23:41:58 UTC
Cool. The minute I sent the bug report, I figured out what's causing this.
Apparently, the machine where PNG support works has gnome-base/gnome-libs
installed. And these create the executable "libart-config", which in turn allows
dia to link with that library. Amazing.

Does anyone want to investigate, why libart-config is part of gnome-libs and not
of the libart_lgpl package? The library obviously _works_ ... So it could as
well be linked. ;-)
Comment 2 foser (RETIRED) gentoo-dev 2003-01-07 06:31:50 UTC
Could you investigate it ? I mean, i have a lot of other bugs to attent to and i
probably wouldn't get around to it anytime soon. 

Oh and libart_lgpl ebuild is for libart2, so big chance that gnome-libs provides
the old one for itsself.

Your help would be appreciated :)
Comment 3 Peter Simons 2003-01-07 07:36:57 UTC
You were right. gnome-libs does provide a different version of libart, which is
used by dia if it is installed. The new version is not used at all. Hence, the
ebuild file should be changed as follows:

        png? ( media-libs/libpng
                >=media-libs/libart_lgpl-2.1 )"

        png? ( media-libs/libpng
                >=gnome-base/gnome-libs-1.4.2 )"

This fixes the problem. Probably a comment should be added to the ebuild file to
watch out for new versions of dia, which might use libart2 instead.
Comment 4 foser (RETIRED) gentoo-dev 2003-01-12 19:34:36 UTC
ok changed according to your changes. I dont think they will switch to libart2
as long as the whole of dia isn't going gtk2.