NetBSD Problem Report #57429

From www@netbsd.org  Tue May 23 09:13:27 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0532A1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 23 May 2023 09:13:27 +0000 (UTC)
Message-Id: <20230523091325.A0CA91A9241@mollari.NetBSD.org>
Date: Tue, 23 May 2023 09:13:25 +0000 (UTC)
From: adr@sdf.org
Reply-To: adr@sdf.org
To: gnats-bugs@NetBSD.org
Subject: graphics/gdk-pixbuf2 needs librsvg so applications can load svg icons
X-Send-Pr-Version: www-1.0

>Number:         57429
>Category:       pkg
>Synopsis:       graphics/gdk-pixbuf2 needs librsvg so applications can load svg icons
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 23 09:15:00 +0000 2023
>Last-Modified:  Thu May 25 20:20:01 +0000 2023
>Originator:     adr
>Release:        NetBSD 10.0_BETA
>Organization:
>Environment:
NetBSD npi 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #32: Sun May 21 23:38:40 WEST 2023  adr@npi:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
graphics/gdk-pixbuf2 needs librsvg so applications can load svg icons.

>How-To-Repeat:
Install an application depending on gdk-pixbuf2 which uses svg icons, inkscape for example. Librsvg will not be installed and svg icons will not be shown. Other application will not work correctly or even run.
>Fix:
Add the librsvg buildlink3.mk to the Makefile. 

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Tue, 23 May 2023 11:22:07 +0200

 On Tue, May 23, 2023 at 09:15:01AM +0000, adr@sdf.org wrote:
 > >Number:         57429
 > >Category:       pkg
 > >Synopsis:       graphics/gdk-pixbuf2 needs librsvg so applications can load svg icons

 We can't do that right now because librsvg depends on gdk-pixbuf2 and
 that would introduce a dependency loop.
  Thomas

From: adr <adr@sdf.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Tue, 23 May 2023 15:16:30 +0000 (UTC)

 On Tue, 23 May 2023, Thomas Klausner wrote:
 > We can't do that right now because librsvg depends on gdk-pixbuf2 and
 > that would introduce a dependency loop.

 I see. Then I recommend to make each package that uses gdk-pixbuf2 and
 have svg icons depend on librvsg, and toolkits like gtk3+.

 adr.

From: adr <adr@sdf.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Tue, 23 May 2023 15:23:02 +0000 (UTC)

 On Tue, 23 May 2023, adr wrote:
 > I see. Then I recommend to make each package that uses gdk-pixbuf2 and
 > have svg icons depend on librvsg, and toolkits like gtk3+.

 This sounded a little ambiguous, I mean make gtk3+ depend on librsvg.

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Tue, 23 May 2023 23:09:01 +0200

 On Tue, May 23, 2023 at 03:23:02PM +0000, adr wrote:
 > On Tue, 23 May 2023, adr wrote:
 > > I see. Then I recommend to make each package that uses gdk-pixbuf2 and
 > > have svg icons depend on librvsg, and toolkits like gtk3+.
 > 
 > This sounded a little ambiguous, I mean make gtk3+ depend on librsvg.

 That's easy to do, but I don't understand how it would help - AFAICT
 gtk3 does not have any code to link against librsvg. Can you please
 explain what this would improve and how?

 Thanks,
  Thomas

From: adr <adr@sdf.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Tue, 23 May 2023 22:10:03 +0000 (UTC)

 On Tue, 23 May 2023, Thomas Klausner wrote:
 > > > I see. Then I recommend to make each package that uses gdk-pixbuf2 and
 > > > have svg icons depend on librvsg, and toolkits like gtk3+.
 > >
 > > This sounded a little ambiguous, I mean make gtk3+ depend on librsvg.
 >
 > That's easy to do, but I don't understand how it would help - AFAICT
 > gtk3 does not have any code to link against librsvg. Can you please
 > explain what this would improve and how?

 Yes, you are right. I'm sorry I got it wrong. I thought the
 gdk-pixbuf2 had the svg loader, but it's in librsvg. I don't
 understand why is it not in gdk-pixbuf2, like the rest. And that's
 why librsvg depends on gdk-pixbuf2, and not the other way, like it
 does already with jpg, png &c.  And all in the same proyect. Crazy
 , crazy little gnome.

 Librsvg has to be added to each package that uses svg icons. These
 are some I tested when adding support for a Huion tablet:

 inkscape
 drawing
 mypaint

 People don't notice it because other applications like gimp has the
 dependency on librsvg already.

 adr

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Wed, 24 May 2023 22:10:38 +0000

 On Tue, May 23, 2023 at 10:15:02PM +0000, adr wrote:
  >  Librsvg has to be added to each package that uses svg icons. These
  >  are some I tested when adding support for a Huion tablet:
  >  
  >  inkscape
  >  drawing
  >  mypaint
  >  
  >  People don't notice it because other applications like gimp has the
  >  dependency on librsvg already.

 They shouldn't be allowed to link to librsvg if they don't depend on
 it; if they are, that's also a bug.

 Also, add netsurf to the list (see PR 57221, the icon in question is
 an svg image and netsurf doesn't explicitly depend on librsvg)

 -- 
 David A. Holland
 dholland@netbsd.org

From: adr <adr@sdf.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Wed, 24 May 2023 22:49:05 +0000 (UTC)

 On Wed, 24 May 2023, David Holland wrote:
 >  >  Librsvg has to be added to each package that uses svg icons. These
 >  >  are some I tested when adding support for a Huion tablet:
 >  >
 >  >  inkscape
 >  >  drawing
 >  >  mypaint
 >  >
 >  >  People don't notice it because other applications like gimp has the
 >  >  dependency on librsvg already.
 >
 > They shouldn't be allowed to link to librsvg if they don't depend on
 > it; if they are, that's also a bug.
 >
 > Also, add netsurf to the list (see PR 57221, the icon in question is
 > an svg image and netsurf doesn't explicitly depend on librsvg)

 For what I see, I'm afraid that the developers of those projects
 just expect pixbuf to load the icon. The mess is because the svg
 loader is not in gdk-pixbuf2, like the rest, but in librsvg. You
 can't make gdk-pixbuf2 depend on librsvg, because librsvg depends
 on gdk-pixbuf2. I checked and freebsd and debian are making inkscape
 depend on librsvg. Note that some applications like mypaint will
 not even launch, and others like azpainter (not in pkgsrc) will
 lose functionality.

 adr

From: adr <adr@sdf.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/57429: graphics/gdk-pixbuf2 needs librsvg so applications
 can load svg icons
Date: Thu, 25 May 2023 20:15:22 +0000 (UTC)

 On Wed, 24 May 2023, adr wrote:
 > and others like azpainter (not in pkgsrc) will lose functionality.

 Just in case someone is interested in azpainter: this was another
 issue, I'm not sure  what, but I suspect is related with the icon
 cache.

 adr

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.