NetBSD Problem Report #48410

From www@NetBSD.org  Tue Nov 26 20:51:20 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 71C43A628D
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 Nov 2013 20:51:20 +0000 (UTC)
Message-Id: <20131126205119.01E01A628D@mollari.NetBSD.org>
Date: Tue, 26 Nov 2013 20:51:19 +0000 (UTC)
From: joernc@gmail.com
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: linker/loader problems with gimp-ufraw/lensfun on Mac OS X
X-Send-Pr-Version: www-1.0

>Number:         48410
>Category:       pkg
>Synopsis:       linker/loader problems with gimp-ufraw/lensfun on Mac OS X
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    macos-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 26 20:55:00 +0000 2013
>Last-Modified:  Thu Nov 28 20:12:11 +0000 2013
>Originator:     Joern Clausen
>Release:        current pkgsrc
>Organization:
>Environment:
Mac OS X 10.9, Xcode 5.0.2
>Description:
graphics/gimp-ufraw compiles, but the dependency on liblensfun is not correct:

$ otool -L work/ufraw-0.19.2/ufraw
work/ufraw-0.19.2/ufraw:
	/Users/joern/pkg/lib/libexiv2.12.dylib (compatibility version 13.0.0, current version 13.0.0)
	/Users/joern/pkg/lib/libgthread-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.4.0)
	/Users/joern/pkg/lib/libglib-2.0.0.dylib (compatibility version 3601.0.0, current version 3601.4.0)
	/Users/joern/pkg/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
	/Users/joern/pkg/lib/liblcms.1.dylib (compatibility version 2.0.0, current version 2.19.0)
	liblensfun.dylib.0 (compatibility version 0.0.0, current version 0.0.0)
	/Users/joern/pkg/lib/libtiff.5.dylib (compatibility version 8.0.0, current version 8.0.0)
	/Users/joern/pkg/lib/libpng16.16.dylib (compatibility version 24.0.0, current version 24.0.0)
	/Users/joern/pkg/lib/libgtkimageview.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/Users/joern/pkg/lib/libgtk-x11-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.20.0)

The Makefile in graphics/lensfun already does some trickery on Mac OS, but it seems a correct build is even more complicated.
>How-To-Repeat:

>Fix:
I was able to fix ufraw for me with

$ install_name_tool -change liblensfun.dylib.0 /Users/joern/pkg/lib/liblensfun.dylib /Users/joern/pkg/bin/ufraw

(and the same on ufraw-batch and especially .../gimp/2.0/plug-ins/ufraw-gimp), but that looks only like the second best solution.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->macos-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Thu, 28 Nov 2013 20:12:11 +0000
Responsible-Changed-Why:
This is a MacOS X issue.


>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.