From 504e3a9edddee67ab12e3ad2387cff6fb8dd8336 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 2 Sep 2015 23:55:21 +0200 Subject: [PATCH] libnfc: fix musl. --- srcpkgs/libnfc/patches/fix-musl.patch | 10 ++++++++++ srcpkgs/libnfc/template | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libnfc/patches/fix-musl.patch diff --git a/srcpkgs/libnfc/patches/fix-musl.patch b/srcpkgs/libnfc/patches/fix-musl.patch new file mode 100644 index 00000000000..e2a3a000f55 --- /dev/null +++ b/srcpkgs/libnfc/patches/fix-musl.patch @@ -0,0 +1,10 @@ +--- libnfc/buses/spi.c.orig 2015-09-02 23:53:39.609374047 +0200 ++++ libnfc/buses/spi.c 2015-09-02 23:53:44.994373644 +0200 +@@ -51,6 +51,7 @@ + #include + #include + #include ++#include + + #include + #include "nfc-internal.h" diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template index d6f8f8478bb..fbdc5187d03 100644 --- a/srcpkgs/libnfc/template +++ b/srcpkgs/libnfc/template @@ -1,7 +1,7 @@ # Template file for 'libnfc' pkgname=libnfc version=1.7.1 -revision=1 +revision=2 wrksrc="${pkgname}-${pkgname}-${version}" build_style=cmake short_desc="Low level NFC SDK and Programmers API" @@ -12,6 +12,7 @@ license="GPL-3" homepage="http://nfc-tools.org/" distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz" checksum=30de35b4f1af3f57dab40d91ffb2275664a35859ff2b014ba7b226aa3f5465f5 +CFLAGS="-D_GNU_SOURCE" pre_configure() { sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/42-pn53x.rules