NetBSD Problem Report #51835

From www@NetBSD.org  Thu Jan 12 09:58:55 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C9B167A16D
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 Jan 2017 09:58:54 +0000 (UTC)
Message-Id: <20170112095853.A60187A2AE@mollari.NetBSD.org>
Date: Thu, 12 Jan 2017 09:58:53 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: icons missing in programs using GTK3+
X-Send-Pr-Version: www-1.0

>Number:         51835
>Category:       pkg
>Synopsis:       icons missing in programs using GTK3+
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 12 10:00:01 +0000 2017
>Closed-Date:    Mon Jan 23 17:40:48 +0000 2017
>Last-Modified:  Mon Jan 23 17:40:48 +0000 2017
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Programs linked to gtk3+ seem to be missing a lot of icons. "gtk3-icon-browser" shows no icons or symbols at all, "meld" and "wireshark-gtk" show some icons, but also a lot of what looks like placeholders. A network capture of wireshark shows a symbol for a text entity instead of a double-headed arrow, and icons are missing for unfolding blocks in the structured packet view.

wireshark emits warnings like

Gtk-WARNING **: Error loading theme icon 'go-top' for stock: Icon 'go-top' not present in theme Adwaita

but gtk3-icon-browser shows no output to the console at all.

I was hoping for instructions (pkg_info -D) in gtk3+ to set a path, update a cache or similar, but there are none.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Thu, 12 Jan 2017 11:04:29 +0100

 On Thu, Jan 12, 2017 at 10:00:01AM +0000, joern.clausen@uni-bielefeld.de wrote:
 > >Synopsis:       icons missing in programs using GTK3+

 Try installing graphics/adwaita-icon-theme.

 gtk3 cannot depend on it since adwaita-icon-theme needs gtk3 during packaging :(
  Thomas

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Thu, 12 Jan 2017 11:30:53 +0100

 Hello Thomas,

 Thomas Klausner writes:
 >  Try installing graphics/adwaita-icon-theme.
 >  =

 >  gtk3 cannot depend on it since adwaita-icon-theme needs gtk3 during pac=
 kaging :(
 > [...]
 What about adding a MESSAGE in x11/gtk3 suggesting that? Maybe something
 like that:

 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 $NetBSD$

 The default GTK+ 3 Adwaita theme is not automatically installed as part
 of this package because it needs x11/gtk3.
 You will need to install graphics/adwaita-icon-theme for GTK+ 3 programs
 that need icons.

 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

 (Yes, unfortunately MESSAGE sometimes are ignored especially after
 installing a lot of packages together but at least this will provide a
 tip about this issue.)

From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Thomas Klausner <wiz@NetBSD.org>, pkg-manager@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Thu, 12 Jan 2017 11:43:41 +0100

 >   Try installing graphics/adwaita-icon-theme.

 Thanks, this fixes the problem. And Leonardo beat me to rephrasing my 
 suggestion to add a post-installation note to the gtk3+ package. I agree 
 that during a bulk install this information will be lost, but at least 
 you *can* find it if you are looking really hard.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 Hochschulrechenzentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/hrz

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Thu, 12 Jan 2017 07:46:12 -0600 (CST)

 In my usual collection of packages, "graphics/adwaita-icon-theme" was
 installed as a dependency of:

   print/evince3
   editors/abiword

 Those are the only two packages listed in the "Required by:" section of
 "adwaita-icon-theme"'s 'pkg_info' output.

 I also have "net/wireshark" installed, but it claims only to depend on
 "hicolor-icon-theme".

 Perhaps if the "gtk3" option is selected (the default in the case of
 "net/wireshark"), the package should also depend on
 "graphics/adwaita-icon-theme"?

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51835 CVS commit: pkgsrc/net/wireshark
Date: Fri, 13 Jan 2017 12:16:03 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Fri Jan 13 12:16:03 UTC 2017

 Modified Files:
 	pkgsrc/net/wireshark: Makefile options.mk

 Log Message:
 Add a dependency to graphics/adwaita-icon-theme (for the gtk3 option)
 Bump PKGREVISION

 Pointed out by Joern Clausen via PR pkg/51835.


 To generate a diff of this commit:
 cvs rdiff -u -r1.161 -r1.162 pkgsrc/net/wireshark/Makefile
 cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/wireshark/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Fri, 13 Jan 2017 18:28:28 +0000

 On Thu, Jan 12, 2017 at 10:05:00AM +0000, Thomas Klausner wrote:
  >  Try installing graphics/adwaita-icon-theme.
  >  
  >  gtk3 cannot depend on it since adwaita-icon-theme needs gtk3
  >  during packaging :(

 A possible hack: slap it in gtk3's bl3 file... abusive but would
 probably do the trick.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 joern.clausen@uni-bielefeld.de
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Fri, 13 Jan 2017 21:46:32 +0100

 >=20
 >> gtk3 cannot depend on it since adwaita-icon-theme needs gtk3
 >> during packaging :(
 >=20
 > A possible hack: slap it in gtk3's bl3 file... abusive but would
 > probably do the trick.

 This is actually a decent idea. It seems like one of the very things a =
 buildlink3.mk is supposed to do.

 =E2=80=94Benny.=

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	joern.clausen@uni-bielefeld.de
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Fri, 13 Jan 2017 22:37:46 +0100

 On Fri, Jan 13, 2017 at 06:30:01PM +0000, David Holland wrote:
 > The following reply was made to PR pkg/51835; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/51835: icons missing in programs using GTK3+
 > Date: Fri, 13 Jan 2017 18:28:28 +0000
 > 
 >  On Thu, Jan 12, 2017 at 10:05:00AM +0000, Thomas Klausner wrote:
 >   >  Try installing graphics/adwaita-icon-theme.
 >   >  
 >   >  gtk3 cannot depend on it since adwaita-icon-theme needs gtk3
 >   >  during packaging :(
 >  
 >  A possible hack: slap it in gtk3's bl3 file... abusive but would
 >  probably do the trick.

 No, it doesn't. On the contrary, it will lead to even more funny errors.

 Joerg

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Sat, 14 Jan 2017 19:49:23 +0000

 On Fri, Jan 13, 2017 at 09:40:01PM +0000, Joerg Sonnenberger wrote:
  >  >  A possible hack: slap it in gtk3's bl3 file... abusive but would
  >  >  probably do the trick.
  >  
  >  No, it doesn't. On the contrary, it will lead to even more funny errors.

 Such as? Things using gtk3 need it and this will cause them to pull it
 in, while still letting it be built after gtk3.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	joern.clausen@uni-bielefeld.de
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Sat, 14 Jan 2017 21:16:44 +0100

 On Sat, Jan 14, 2017 at 07:50:01PM +0000, David Holland wrote:
 > The following reply was made to PR pkg/51835; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/51835: icons missing in programs using GTK3+
 > Date: Sat, 14 Jan 2017 19:49:23 +0000
 > 
 >  On Fri, Jan 13, 2017 at 09:40:01PM +0000, Joerg Sonnenberger wrote:
 >   >  >  A possible hack: slap it in gtk3's bl3 file... abusive but would
 >   >  >  probably do the trick.
 >   >  
 >   >  No, it doesn't. On the contrary, it will lead to even more funny errors.
 >  
 >  Such as? Things using gtk3 need it and this will cause them to pull it
 >  in, while still letting it be built after gtk3.

 You must not b3.mk a dependency that is not guaranteed to be installed.
 It doesn't work.

 Joerg

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Sun, 15 Jan 2017 02:57:49 +0000

 On Sat, Jan 14, 2017 at 08:20:01PM +0000, Joerg Sonnenberger wrote:
  >  >  Such as? Things using gtk3 need it and this will cause them to pull it
  >  >  in, while still letting it be built after gtk3.
  >  
  >  You must not b3.mk a dependency that is not guaranteed to be installed.
  >  It doesn't work.

 Adding to ordinary DEPENDS fails magically if it's inside BUILDLINK_TREE?
 Not sure how that would happen...

 -- 
 David A. Holland
 dholland@netbsd.org

From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Mon, 16 Jan 2017 09:09:11 +0100

 What about "There is no problem than cannot be solved by an additional 
 level of indirection" and adding a meta-package "gtk3+adwaita"?

 Who actually decides, what the correct icon set is? The application? Is 
 adwaita *the* icon set for GTK3+? Can it be replaced by another icon set 
 if the end user chooses another theme?

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 Hochschulrechenzentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/hrz

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51835: icons missing in programs using GTK3+
Date: Mon, 16 Jan 2017 09:28:34 +0100

 Hello Jörn,

 Jörn Clausen writes:
 > [...] 
 > Who actually decides, what the correct icon set is? The application? Is 
 > adwaita *the* icon set for GTK3+? Can it be replaced by another icon set 
 > if the end user chooses another theme?
 > [...] 

 Yes, it is possible to avoid using adwaita-icon-theme and use
 another *-icon-theme if the user has a ~/.config/gtk-3.0/settings.ini
 `gtk-icon-theme-name' entry.
 However, I think that only adwaita-icon-theme works without any
 user intervention.

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Sun, 22 Jan 2017 15:12:10 +0000
Responsible-Changed-Why:
Take (belatedly!)


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sun, 22 Jan 2017 15:12:10 +0000
State-Changed-Why:
net/wireshark and devel/meld were fixed adding
a dependency to graphics/adwaita-icon-theme respectively via:

 cvs rdiff -u -r1.161 -r1.162 pkgsrc/net/wireshark/Makefile
 cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/wireshark/options.mk
 cvs rdiff -u -r1.75 -r1.76 pkgsrc/devel/meld/Makefile

At least according to the various comments in this PR adding a
dependency to graphics/adwaita-icon-theme to GTK3+ programs that
need it seems the best way to address this problem ATM.


Jörn, ok to close this PR?


From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: leot@NetBSD.org, pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org,
 gnats-admin@NetBSD.org
Subject: Re: pkg/51835 (icons missing in programs using GTK3+)
Date: Mon, 23 Jan 2017 08:58:29 +0100

 This is looks indeed like the best solution at the moment. Please close 
 this PR. Thanks to all involved.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 Hochschulrechenzentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/hrz

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 23 Jan 2017 17:40:48 +0000
State-Changed-Why:
fixed, thanks


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.