From owner-freebsd-gnome@FreeBSD.ORG Thu Dec 27 19:29:49 2007 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D94D116A421; Thu, 27 Dec 2007 19:29:49 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao104.cox.net (eastrmmtao104.cox.net [68.230.240.46]) by mx1.freebsd.org (Postfix) with ESMTP id 8583513C465; Thu, 27 Dec 2007 19:29:49 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20071227192948.SDHH23675.eastrmmtao104.cox.net@eastrmimpo01.cox.net>; Thu, 27 Dec 2007 14:29:48 -0500 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id VvUx1Y0074iy4EG0000000; Thu, 27 Dec 2007 14:28:57 -0500 Date: Thu, 27 Dec 2007 13:30:05 -0600 To: "Doug Barton" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <4772C814.6000302@FreeBSD.org> <1198709162.11242.8.camel@shumai.marcuscom.com> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.25 (Linux) Cc: gnome@freebsd.org Subject: Re: In cairo, implicit depenencies on librsvg2 and/or poppler? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 19:29:49 -0000 On Thu, 27 Dec 2007 13:09:17 -0600, Doug Barton wrote: > On Wed, 26 Dec 2007, Joe Marcus Clarke wrote: > >> >> On Wed, 2007-12-26 at 13:31 -0800, Doug Barton wrote: >>> I was doing some stale ports cleanup recently and deleted a bunch of >>> stuff that didn't seem to be needed, including librsvg2 and poppler. >>> Deleting the former caused several of my applications to no longer be >>> able to display svg images. I tracked the problem down to the missing >>> librsvg2 of course, but only after carefully watching the configure >>> output of cairo and noticing that it gave a "can't use svg 'cuz you >>> don't have librsvg2" type message. It gives a similar message for >>> poppler, but AFAIK I don't actually need that. >>> >>> So, short version is that you might want to add OPTIONS for those two >>> libs, and related explicit dependencies for them in the cairo Makefile. >> >> Actually, it's not so simple. I assume the apps that could no longer >> display SVG images were GTK+ apps. > > That's where it got interesting. Some of them were GTK, yes. But, > firefox could still render SVG just fine without librsvg2 installed. > Weird. > >> If so, they get the ability to render SVG images from the SVG GDK image >> loader installed by librsvg2 >> (/usr/local/lib/gtk-2.0/2.10.0/loaders/svg_loader.so). This is a >> dlopen'd library, and thus is not really a hard dependency. It's more >> along the lines of, "if you want this functionality, install this port." > > Right, which is why I suggested that it be made an OPTION. :) Users enable that OPTIONS will getting the circular dependency. ;-) I never noticed Deluge port required librsvg2 for weeks until someone installed Deluge in lightweight desktop. All of this is just because of deluge.svg, that's it. There is no info of dependency. I hate when it happens. I have fixed Deluge port by add librsvg2 dependency, so if one of port that you have installed have SVG file or whatever then this port need to add librsvg2 dependency. But if this port has no SVG file and is a image viewer or graphic editor application, then user will have to install librsvg2 on their own or you can add an OPTION for that to show users that it is need for SVG file. Cheers, Mezz >> Neither gtk20 or cairo can depend on librsvg2, though, or we'd have a >> circular dependency (as librsvg2 needs gtk20 and gtk20 needs cairo). > > I don't see the dependency on cairo in gtk20 or glib20, where does it > come in? > > Doug -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org