pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49565: devel/libhid build failure on OS X



>Number:         49565
>Category:       pkg
>Synopsis:       devel/libhid build failure on OS X
>Confidential:   yes
>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
>Originator:     Edgar FuÃ?
>Release:        pkgsrc-2014Q4
>Organization:
	Mathematisches Institut der Universität Bonn
>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 \


Home | Main Index | Thread Index | Old Index