From 5a41e98305726c221d0e2864f45ec2e7ae466002 Mon Sep 17 00:00:00 2001 From: slava86 Date: Tue, 20 Sep 2022 13:52:38 +0300 Subject: [PATCH] Bug 750983 gentoo autoconf fix --- autoconf-2.70.patch | 12 ++++++++++++ hidapi.spec | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 autoconf-2.70.patch diff --git a/autoconf-2.70.patch b/autoconf-2.70.patch new file mode 100644 index 0000000..b71a9b6 --- /dev/null +++ b/autoconf-2.70.patch @@ -0,0 +1,12 @@ +diff --git a/configure.ac b/configure.ac-diff +index 220909a..77da67a 100644 +--- a/configure.ac ++++ b/configure.ac-diff +@@ -13,7 +13,6 @@ LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}" + + AC_CONFIG_MACRO_DIR([m4]) + AM_INIT_AUTOMAKE([foreign -Wall -Werror]) +-AC_CONFIG_MACRO_DIR([m4]) + + m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + LT_INIT diff --git a/hidapi.spec b/hidapi.spec index 4918436..0716de9 100644 --- a/hidapi.spec +++ b/hidapi.spec @@ -6,11 +6,12 @@ Summary: Library for communicating with USB and Bluetooth HID devices Name: hidapi Version: 0.10.1 -Release: 2 +Release: 3 License: GPLv3 Group: Communications Url: https://github.com/libusb/hidapi Source0: https://github.com/libusb/hidapi/archive/%{name}-%{version}.tar.gz +Patch0: autoconf-2.70.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool