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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 13 18:20:00 +0000 2015
>Closed-Date: Sun Dec 10 15:47:34 +0000 2017
>Last-Modified: Sun Dec 10 15:50:01 +0000 2017
>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:
State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Sun, 10 Dec 2017 15:47:34 +0000
State-Changed-Why:
Fixed. Thank you
From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/49565 CVS commit: pkgsrc/devel/libhid
Date: Sun, 10 Dec 2017 15:46:27 +0000
Module Name: pkgsrc
Committed By: adam
Date: Sun Dec 10 15:46:27 UTC 2017
Modified Files:
pkgsrc/devel/libhid: Makefile distinfo
Added Files:
pkgsrc/devel/libhid/patches: patch-src_Makefile.in
Log Message:
libhid: cleanup; fixed building on Darwin (PR 49565)
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/libhid/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libhid/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libhid/patches/patch-src_Makefile.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.