NetBSD Problem Report #49565

From ef@math.uni-bonn.de  Tue Jan 13 18:16:13 2015
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(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 01650A65BA
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 13 Jan 2015 18:16:13 +0000 (UTC)
Message-Id: <20150113181606.85D331BD49@trave.math.uni-bonn.de>
Date: Tue, 13 Jan 2015 19:16:06 +0100 (CET)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/libhid build failure on OS X
X-Send-Pr-Version: 3.95

>Number:         49565
>Category:       pkg
>Synopsis:       devel/libhid build failure on OS X
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 13 18:20:00 +0000 2015
>Last-Modified:  Thu Jan 15 22:50:35 +0000 2015
>Originator:     Edgar Fuß
>Release:        pkgsrc-2014Q4
>Organization:
	Mathematisches Institut der Universität Bonn
>Environment:

>Description:
	devel/libhid doesn't build on recent versions of OS X because it uses 
	-lIOKit where it should be using -framework IOKit.
>How-To-Repeat:
	cd devel/libhid && bmake build
>Fix:
	Add patch/patch-src_Makefile:
	$ NetBSD: patch-src_Makefile $
	Change -lIOKit to -framework IOKit
	--- src/Makefile.am.orig	2007-04-01 05:49:32.000000000 +0200
	+++ src/Makefile.am	2015-01-13 14:24:10.000000000 +0100
	@@ -17,7 +17,7 @@
	 if OS_DARWIN
	 OS_SUPPORT_SOURCE = darwin.c
	 AM_CFLAGS += -no-cpp-precomp
	-AM_LDFLAGS += -lIOKit -framework "CoreFoundation"
	+AM_LDFLAGS += -framework IOKit -framework "CoreFoundation"
	 else
	 OS_SUPPORT =
	 endif
	--- src/Makefile.in.orig	2007-04-26 02:25:30.000000000 +0200
	+++ src/Makefile.in	2015-01-13 14:23:58.000000000 +0100
	@@ -39,7 +39,7 @@
	 build_triplet = @build@
	 host_triplet = @host@
	 @OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_1 = -no-cpp-precomp
	-@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_2 = -lIOKit -framework "CoreFoundation"
	+@OS_BSD_FALSE@@OS_DARWIN_TRUE@@OS_LINUX_FALSE@@OS_SOLARIS_FALSE@am__append_2 = -framework IOKit -framework "CoreFoundation"
	 bin_PROGRAMS = libhid-detach-device$(EXEEXT)
	 subdir = src
	 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \

>Release-Note:

>Audit-Trail:

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