Bug 222495 - x11-toolkits/gtk30: add dependency on librsvg2
Summary: x11-toolkits/gtk30: add dependency on librsvg2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
: 207640 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-21 16:53 UTC by Anton Yuzhaninov
Modified: 2018-01-12 20:50 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
Add dependency (727 bytes, patch)
2017-09-21 16:53 UTC, Anton Yuzhaninov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Yuzhaninov 2017-09-21 16:53:14 UTC
Created attachment 186595 [details]
Add dependency

gtk applications need librsvg2 to render SVG icons (if they are used in the current theme).

To do this an application dynamically loads /usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so (this lib installed by librsvg2).

Hot to reproduce the problem:
1. pkg delete librsvg2
2. run 'env GTK_THEME=Adwaita gtk3-icon-browser'

- in "Symbolic" tab/mode grey rectangles will be shown instead icons
- grey rectangles will be shown instead search, minimize and maximize window icons

The same problem can be seen in other gtk3 applications (but only some icons will be missing because raster icons will continue to work).

Problem can be fixed by installing librsvg2 back.

librsvg2 is an optional dependency for gtk, because it is possible to use a theme with only raster icons (and in this case librsvg2 will not be used), but given that SVG icons are used in default theme, I think this dependency should be added.
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-12-08 15:32:21 UTC
A commit references this bug:

Author: swills
Date: Fri Dec  8 15:31:37 UTC 2017
New revision: 455783
URL: https://svnweb.freebsd.org/changeset/ports/455783

Log:
  x11-toolkits/gtk30: add dependency on librsvg2

  PR:		222495
  Submitted by:	Anton Yuzhaninov <citrin+pr@citrin.ru>
  Approved by:	gnome@ (kwm)

Changes:
  head/x11-toolkits/gtk30/Makefile
Comment 2 Steve Wills freebsd_committer freebsd_triage 2017-12-08 15:32:45 UTC
Committed, thanks!
Comment 3 Jan Beich freebsd_committer freebsd_triage 2018-01-12 20:50:35 UTC
*** Bug 207640 has been marked as a duplicate of this bug. ***