NetBSD Problem Report #53933

From martin@aprisoft.de  Sat Feb  2 17:55:02 2019
Return-Path: <martin@aprisoft.de>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E084E7A1E5
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  2 Feb 2019 17:55:02 +0000 (UTC)
Message-Id: <20190202175450.235365CC84E@emmas.aprisoft.de>
Date: Sat,  2 Feb 2019 18:54:50 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gobject introspection linker issue
X-Send-Pr-Version: 3.95

>Number:         53933
>Category:       pkg
>Synopsis:       gobject introspection linker issue
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 02 18:00:00 +0000 2019
>Closed-Date:    Tue Jun 07 17:10:51 +0000 2022
>Last-Modified:  Tue Jun 07 17:10:51 +0000 2022
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.33
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 8.99.33 NetBSD 8.99.33 (WHOEVER) #248: Fri Feb 1 16:31:20 CET 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

My favorite problem child is back: gobject introspection fails with:

  CCLD     wnck-urgency-monitor
  GISCAN   Wnck-3.0.gir

** (process:12576): CRITICAL **: 13:00:44.994: Failed to get connection to xfconfd: Could not connect: No such file or directory

** (process:22964): CRITICAL **: 13:00:58.521: Failed to get connection to xfconfd: Could not connect: No such file or directory
/usr/pkg/lib/libgthread-2.0.so.0: Trying to call undefined weak symbol `__deregister_frame_info'
gmake[3]: *** [/usr/pkg/share/gobject-introspection-1.0/Makefile.introspection:160: Wnck-3.0.gir] Error 1
gmake[3]: Leaving directory '/usr/pkgobj/devel/libwnck3/work/libwnck-3.24.1/libw

>How-To-Repeat:

Try to build  xfce4 on sparc64 (or something, don't know exact details yet)

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53933: gobject introspection linker issue
Date: Mon, 4 Feb 2019 14:23:46 +0100

 On Sat, Feb 2, 2019 at 7:00 PM <martin@netbsd.org> wrote:
 > ** (process:12576): CRITICAL **: 13:00:44.994: Failed to get connection to xfconfd: Could not connect: No such file or directory
 >
 > ** (process:22964): CRITICAL **: 13:00:58.521: Failed to get connection to xfconfd: Could not connect: No such file or directory

 Is this on a machine that has XFCE installed? I noticed that a number
 of issues with gobject-introspection (e.g. being unhappy without
 DISPLAY) happen because it tries to connect to xfconfd (the XFCE
 config daemon) and if that fails, tries unsuccessfully to start a user
 DBus session. Maybe the fix is making it not do that.


 -- 
 Benny

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	martin@NetBSD.org
Subject: Re: pkg/53933: gobject introspection linker issue
Date: Mon, 4 Feb 2019 14:56:46 +0100

 On Mon, Feb 04, 2019 at 01:25:00PM +0000, Benny Siegert wrote:
 >  On Sat, Feb 2, 2019 at 7:00 PM <martin@netbsd.org> wrote:
 >  > ** (process:12576): CRITICAL **: 13:00:44.994: Failed to get connection to xfconfd: Could not connect: No such file or directory
 >  >
 >  > ** (process:22964): CRITICAL **: 13:00:58.521: Failed to get connection to xfconfd: Could not connect: No such file or directory
 >  
 >  Is this on a machine that has XFCE installed? I noticed that a number
 >  of issues with gobject-introspection (e.g. being unhappy without
 >  DISPLAY) happen because it tries to connect to xfconfd (the XFCE
 >  config daemon) and if that fails, tries unsuccessfully to start a user
 >  DBus session. Maybe the fix is making it not do that.

 It was building some xfce4 dependency - so probably something relevant
 is already installed.

 However, the "calling weak symbol" should never be possible, so something is
 seriously wrong here.

 Martin

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53933: gobject introspection linker issue
Date: Sun, 24 Feb 2019 22:10:08 -0800

 Trying to build graphics/adwaita-icon-themes:

 gmake[1]: Leaving directory
 '/usr/pkgsrc/graphics/adwaita-icon-theme/work/adwaita-icon-theme-3.30.1'
 /usr/pkg/bin/rsvg-convert
 /usr/pkgsrc/graphics/adwaita-icon-theme/files/distributor-logo.svg  -w
 16 -h 16 -o  /usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/16x16/places/start-here.png

 ** (rsvg-convert:251929): WARNING **: 21:42:42.080: Failed to get
 connection to xfconfd: The connection is closed
 /usr/pkg/bin/rsvg-convert
 /usr/pkgsrc/graphics/adwaita-icon-theme/files/distributor-logo.svg  -w
 22 -h 22 -o  /usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/22x22/places/start-here.png

 ** (rsvg-convert:251930): WARNING **: 21:42:42.092: Failed to get
 connection to xfconfd: The connection is closed
 /usr/pkg/bin/rsvg-convert
 /usr/pkgsrc/graphics/adwaita-icon-theme/files/distributor-logo.svg  -w
 24 -h 24 -o  /usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/24x24/places/start-here.png
 ...
 => Generating post-install file lists
 pkg_create: can't stat
 `/usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/16x16/devices/drive-multidisk-symbolic.symbolic.png'
 pkg_create: can't stat
 `/usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/16x16/status/battery-good-charging-symbolic.symbolic.png'
 ...
 => Checking file-check results for adwaita-icon-theme-3.30.1
 ERROR: ************************************************************
 ERROR: The following files are in the PLIST but not in
 /usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg:
 ERROR:         /usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/16x16/devices/drive-multidisk-symbolic.symbolic.png
 ERROR:         /usr/pkgsrc/graphics/adwaita-icon-theme/work/.destdir/usr/pkg/share/icons/Adwaita/16x16/status/battery-good-charging-symbolic.symbolic.png
 ...

 As it happens, devel/xfce4-conf has an option to not build the
 gsettings backend.
 At least on DragonFly, the following patch seems to work:

 diff -x CVS -Nur devel/xfce4-conf.orig/Makefile devel/xfce4-conf/Makefile
 --- devel/xfce4-conf.orig/Makefile    2019-02-07 02:40:50.000000000 -0800
 +++ devel/xfce4-conf/Makefile    2019-02-24 21:47:07.770642000 -0800
 @@ -23,6 +23,22 @@

  TOOL_DEPENDS+=    gdbus-codegen-[0-9]*:../../devel/gdbus-codegen

 +.include "../../mk/bsd.prefs.mk"
 +
 +PKG_OPTIONS_VAR=    PKG_OPTIONS.xfce4-conf
 +PKG_SUPPORTED_OPTIONS=     no_gsettings
 +PKG_SUGGESTED_OPTIONS=     no_gsettings
 +
 +.include "../../mk/bsd.options.mk"
 +
 +PLIST_VARS+=    gsettings
 +
 +.if !empty(PKG_OPTIONS:Mno_gsettings)
 +CONFIGURE_ARGS+=    --disable-gsettings-backend
 +.else
 +PLIST.gsettings=    yes
 +.endif
 +
  .include "../../sysutils/dbus/buildlink3.mk"
  .include "../../sysutils/dbus-glib/buildlink3.mk"
  .include "../../x11/libxfce4util/buildlink3.mk"
 diff -x CVS -Nur devel/xfce4-conf.orig/PLIST devel/xfce4-conf/PLIST
 --- devel/xfce4-conf.orig/PLIST    2019-02-07 02:41:00.000000000 -0800
 +++ devel/xfce4-conf/PLIST    2019-02-24 21:48:06.750660000 -0800
 @@ -5,7 +5,7 @@
  include/xfce4/xfconf-0/xfconf/xfconf-errors.h
  include/xfce4/xfconf-0/xfconf/xfconf-types.h
  include/xfce4/xfconf-0/xfconf/xfconf.h
 -lib/gio/modules/libxfconfgsettingsbackend.la
 +${PLIST.gsettings}lib/gio/modules/libxfconfgsettingsbackend.la
  lib/libxfconf-0.la
  lib/pkgconfig/libxfconf-0.pc
  lib/xfce4/xfconf/xfconfd

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53933: gobject introspection linker issue
Date: Mon, 25 Feb 2019 08:30:47 +0100

 This issue has been worked around in pkgsrc and upsteam bug reports have been
 filed. Both involved upstreams should fight this out internally.

 Martin

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 07 Jun 2022 16:58:22 +0000
State-Changed-Why:
What's the current state of this PR, have the upstreams found a common solution?


State-Changed-From-To: feedback->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Tue, 07 Jun 2022 17:10:51 +0000
State-Changed-Why:
The workaround was removed with later xfce4-conf updates and
both upstream reports are closed:
https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/261
https://bugzilla.xfce.org/show_bug.cgi?id=15122


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.