NetBSD Problem Report #55148

From www@netbsd.org  Mon Apr  6 19:44:00 2020
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 2186D1AC7B8
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 Apr 2020 19:44:00 +0000 (UTC)
Message-Id: <20200406194358.8EAAA1AC7B5@mollari.NetBSD.org>
Date: Mon,  6 Apr 2020 19:43:58 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: devel/glib2 fails build on darwin
X-Send-Pr-Version: www-1.0

>Number:         55148
>Category:       pkg
>Synopsis:       devel/glib2 fails build on darwin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 06 19:45:00 +0000 2020
>Closed-Date:    Thu Sep 17 20:05:22 +0000 2020
>Last-Modified:  Thu Sep 17 20:05:22 +0000 2020
>Originator:     scole_mail
>Release:        pkgsrc-2020Q1
>Organization:
none
>Environment:
Darwin shamu.local 17.7.0 Darwin Kernel Version 17.7.0: Tue Feb 18 22:51:29 PST 2020; root:xnu-4570.71.73~1/RELEASE_X86_64 x86_64
>Description:
glib2 fails to build on mac os:

...
[647/1150] Generating plugin-resources.c with a custom command.
FAILED: gio/tests/plugin-resources.c 
/Users/scole/pkgsrc/devel/glib2/work/.tools/bin/env LD_LIBRARY_PATH=gio:glib:gmodule:gobject /Users/scole/pkgsrc/devel/glib2/work/glib-2.64.1/output/gio/glib-compile-resources --target=gio/tests/plugin-resources.c --sourcedir=/Users/scole/pkgsrc/devel/glib2/work/glib-2.64.1/gio/tests --generate-source --c-name _g_plugin ../gio/tests/test4.gresource.xml
dyld: Library not loaded: @rpath/libgio-2.0.0.dylib
  Referenced from: /Users/scole/pkgsrc/devel/glib2/work/glib-2.64.1/output/gio/glib-compile-resources
  Reason: Incompatible library version: glib-compile-resources requires version 6401.0.0 or later, but libgio-2.0.0.dylib provides version 6001.0.0
ninja: build stopped: subcommand failed.
*** Error code 1

I think pkgsrc-2019Q4 has the same problem.

I got around it by down-grading to glib2-2.60.6 from pkgsrc-2019Q3 and changing
   .include "../../devel/py-meson/build.mk"
to
   .include "../../devel/meson/build.mk"

This old version seemed to work well enough for me to build and use modular-xorg-xquartz, but it'd be nice to have the up-to-date pkgsrc version of glib2 working.


>How-To-Repeat:
cd .../pkgsrc/devel/glib2 && bmake
>Fix:

>Release-Note:

>Audit-Trail:
From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/55148: devel/glib2 fails build on darwin
Date: Mon, 6 Apr 2020 21:48:23 +0200

 On Mon,  6 Apr 2020 19:45:00 +0000 (UTC)
 scole_mail@gmx.com wrote:

 >   Reason: Incompatible library version: glib-compile-resources requires version 6401.0.0 or later, but libgio-2.0.0.dylib provides version 6001.0.0

 Does it work if you pkg_delete -f the old glib2 package first?
 I think this is a known issue that happens when upstream bumps the lib.

From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/55148: devel/glib2 fails build on darwin
Date: Mon, 06 Apr 2020 13:05:45 -0700

 Tobias Nygren <tnn@NetBSD.org> writes:
 >
 >  Does it work if you pkg_delete -f the old glib2 package first?
 >  I think this is a known issue that happens when upstream bumps the lib.
 >

 Yes, that seemed complete the build and install, but there was this
 error:

 =3D=3D=3D> Installing binary package of glib2-2.64.1
 Unable to open directory /Users/scole/pkg/lib/gio/modules: Error opening d=
 irectory ?/Users/scole/pkg/lib/gio/modules?: No such file or directory
 No schema files found: doing nothing.

 I'm not sure if that was happening with previous version of
 pkgsrc/devel/glib2.

 I probably should've have mentioned I was using pkg_rolling-replace to
 upgrade, but things seem to be working now.

 Thanks!

From: "Patrick Welche" <prlw1@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55148 CVS commit: pkgsrc/devel/glib2
Date: Wed, 8 Apr 2020 12:22:10 +0000

 Module Name:	pkgsrc
 Committed By:	prlw1
 Date:		Wed Apr  8 12:22:10 UTC 2020

 Modified Files:
 	pkgsrc/devel/glib2: Makefile

 Log Message:
 Actually create GIO_MODULES_DIR. Mentioned in PR pkg/55148.


 To generate a diff of this commit:
 cvs rdiff -u -r1.270 -r1.271 pkgsrc/devel/glib2/Makefile

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

State-Changed-From-To: open->closed
State-Changed-By: scole@NetBSD.org
State-Changed-When: Thu, 17 Sep 2020 13:05:22 -0700
State-Changed-Why:
fixed and working in pkgsrc-2020Q2


>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.