summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/hidapi/configure.ac.patch13
-rw-r--r--libraries/hidapi/hidapi.SlackBuild2
2 files changed, 15 insertions, 0 deletions
diff --git a/libraries/hidapi/configure.ac.patch b/libraries/hidapi/configure.ac.patch
new file mode 100644
index 0000000000..7aae59deff
--- /dev/null
+++ b/libraries/hidapi/configure.ac.patch
@@ -0,0 +1,13 @@
+diff -Naur hidapi-hidapi-0.8.0-rc1.orig/configure.ac hidapi-hidapi-0.8.0-rc1/configure.ac
+--- hidapi-hidapi-0.8.0-rc1.orig/configure.ac 2013-10-07 00:43:37.000000000 +0200
++++ hidapi-hidapi-0.8.0-rc1/configure.ac 2020-12-13 19:26:32.602903000 +0100
+@@ -18,8 +18,7 @@
+ lt_age="0"
+ LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
+
+-AC_CONFIG_MACRO_DIR([m4])
+-AM_INIT_AUTOMAKE([foreign -Wall -Werror])
++AM_INIT_AUTOMAKE([foreign -Wall])
+ AC_CONFIG_MACRO_DIR([m4])
+
+ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
diff --git a/libraries/hidapi/hidapi.SlackBuild b/libraries/hidapi/hidapi.SlackBuild
index 7d26d8d259..028766847a 100644
--- a/libraries/hidapi/hidapi.SlackBuild
+++ b/libraries/hidapi/hidapi.SlackBuild
@@ -71,6 +71,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/configure.ac.patch
+
./bootstrap
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \