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?
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. ;-)
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 :)
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.
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.