NetBSD Problem Report #53765

From www@NetBSD.org  Fri Dec  7 12:23:10 2018
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 932AD7A158
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  7 Dec 2018 12:23:10 +0000 (UTC)
Message-Id: <20181207122309.7D6F97A1D7@mollari.NetBSD.org>
Date: Fri,  7 Dec 2018 12:23:09 +0000 (UTC)
From: alexwgarvin@gmail.com
Reply-To: alexwgarvin@gmail.com
To: gnats-bugs@NetBSD.org
Subject: net/glib-networking build error (PLIST entry) on x64 Linux
X-Send-Pr-Version: www-1.0

>Number:         53765
>Category:       pkg
>Synopsis:       net/glib-networking build error (PLIST entry) on x64 Linux
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 12:25:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Sat Dec 31 05:54:49 +0000 2022
>Originator:     Alexander Garvin
>Release:        current 2018-12-06
>Organization:
>Environment:
Linux -- 4.19.5-300.fc29.x86_64 #1 SMP Tue Nov 27 19:29:23 UTC 2018 x86_64 GNU/Linux
>Description:
In PLIST, incorrect location of:

libgiognomeproxy.so
libgiognutls.so
libgiolibproxy.so

>How-To-Repeat:
cd /usr/pkgsrc/net/glib-networking && bmake install
>Fix:
in PLIST, change:

lib/gio/modules/libgiognomeproxy.so
lib/gio/modules/libgiognutls.so
lib/gio/modules/libgiolibproxy.so

to 

lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so

bmake clean && bmake install

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 17 Dec 2018 09:30:50 +0000
State-Changed-Why:
Possible initial analysis of the problem (still unclear why the
`x86_64-linux-gnu' is added though!), some questions asked.


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53765: net/glib-networking build error (PLIST entry) on x64 Linux
Date: Mon, 17 Dec 2018 10:29:40 +0100

 Hello Alex,

 alexwgarvin@gmail.com writes:
 > [...]
 > >Environment:
 > Linux -- 4.19.5-300.fc29.x86_64 #1 SMP Tue Nov 27 19:29:23 UTC 2018 x86_=
 64 GNU/Linux
 > >Description:
 > In PLIST, incorrect location of:
 >
 > libgiognomeproxy.so
 > libgiognutls.so
 > libgiolibproxy.so
 >
 > >How-To-Repeat:
 > cd /usr/pkgsrc/net/glib-networking && bmake install
 > >Fix:
 > in PLIST, change:
 >
 > lib/gio/modules/libgiognomeproxy.so
 > lib/gio/modules/libgiognutls.so
 > lib/gio/modules/libgiolibproxy.so
 >
 > to =

 >
 > lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
 > lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
 > lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
 > [...]

 It seems that glib-networking uses
 `pkg-config --variable=3Dgiomoduledir gio-2.0' to retrieve that path and
 devel/glib2 is responsable for that.

 devel/glib2 set GIO_MODULES_DIR in modules.mk seems to assume that
 modules are installed in ${BUILDLINK_PREFIX.glib2}/lib/gio/modules.

 The glib2 configure script support a `--with-gio-module-dir' argument
 to set it, and if not passed (as it is actually done in pkgsrc),
 the default value should be LIBDIR/gio/modules (I do not see where
 the extra `x86_64-linux-gnu' come from though).

 Can you please share the output of:

  % pkg-config --variable=3Dgiomoduledir gio-2.0

 ...and share the output of:

  % cd pkgsrc/devel/glib2
  % bmake configure
  % grep -E '^(GIO_MODULE_DIR|libdir|exec_prefix|prefix)=3D' `bmake show-va=
 r VARNAME=3DWRKSRC`/config.log


 Thank you!

From: =?UTF-8?B?5bed5bWc5rSL56WQ?= <you.kawasaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org, alexwgarvin@gmail.com
Subject: Re: pkg/53765
Date: Thu, 17 Jan 2019 11:38:23 +0900

 --000000000000902e7d057f9e4af1
 Content-Type: text/plain; charset="UTF-8"

 Hello Alex,

 I encountered the same problem on Linux xpc-debian 4.9.0-8-amd64 #1
 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux.

 This problem is resolved by providing option argument for $libdir to
 meson build system, which is used by glib-networing.
 Specifically, I added following line to the Makefile of glib-networling
 MESON_ARGS+=    -Dlibdir=${PREFIX}/lib

 Then the modules
 lib/gio/modules/libgiognomeproxy.so
 lib/gio/modules/libgiognutls.so
 lib/gio/modules/libgiolibproxy.so
 went into /usr/pkg/lib/gio/modules as PLIST states.
 This also helped building gimp, which depends on glib-networking,
 without setting GIO_EXTRA_MODULES environmental variable.

 I hope this also helps your problem.

 Yosuke Kawasaki

 --000000000000902e7d057f9e4af1
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">
 <pre>Hello Alex,<br><br></pre><pre>I encountered the same problem on Linux =
 xpc-debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Li=
 nux.<br><br></pre><pre>This problem is resolved by providing option argumen=
 t for $libdir to meson build system, which is used by glib-networing.<br>Sp=
 ecifically, I added following line to the Makefile of glib-networling<br>ME=
 SON_ARGS+=3D    -Dlibdir=3D${PREFIX}/lib<br></pre><pre>Then the modules
 lib/gio/modules/libgiognomeproxy.so
 lib/gio/modules/libgiognutls.so
 lib/gio/modules/libgiolibproxy.so
 went into /usr/pkg/lib/gio/modules as PLIST states.
 <br>This also helped building gimp, which depends on glib-networking, witho=
 ut setting <span class=3D"gmail-st">GIO_EXTRA_MODULES</span> environmental =
 variable.
 <br></pre><pre>I hope this also helps your problem.<br></pre><pre>Yosuke Ka=
 wasaki
 </pre><pre><br></pre>

 </div></div></div>

 --000000000000902e7d057f9e4af1--

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 31 Dec 2022 05:54:49 +0000
State-Changed-Why:
A proposed fix was received as feedback in 2019


>Unformatted:

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.