Blame SOURCES/fapolicyd-uthash-bundle.patch

b63e47
diff --color -ru a/configure.ac b/configure.ac
b63e47
--- a/configure.ac	2021-11-12 20:21:54.000000000 +0100
b63e47
+++ b/configure.ac	2021-12-14 13:47:11.890649552 +0100
b63e47
@@ -67,10 +67,6 @@
afdf34
 ["Couldn't find sys/fanotify.h...your kernel might not be new enough"] )])
afdf34
 AC_CHECK_FUNCS(fexecve, [], [])
afdf34
 
afdf34
-AC_CHECK_HEADER(uthash.h, , [AC_MSG_ERROR(
afdf34
-["Couldn't find uthash.h...uthash-devel is missing"] )])
afdf34
-
afdf34
-
afdf34
 echo .
afdf34
 echo Checking for required libraries
afdf34
 AC_CHECK_LIB(udev, udev_device_get_devnode, , [AC_MSG_ERROR([libudev not found])], -ludev)
b63e47
diff --color -ru a/src/library/rpm-backend.c b/src/library/rpm-backend.c
b63e47
--- a/src/library/rpm-backend.c	2021-11-12 20:21:54.000000000 +0100
b63e47
+++ b/src/library/rpm-backend.c	2021-12-14 13:47:26.833926203 +0100
afdf34
@@ -32,7 +32,7 @@
afdf34
 #include <rpm/rpmdb.h>
afdf34
 #include <fnmatch.h>
afdf34
 
afdf34
-#include <uthash.h>
afdf34
+#include "uthash.h"
afdf34
 
afdf34
 #include "message.h"
b63e47
 #include "gcc-attributes.h"
b63e47
diff --color -ru a/src/Makefile.am b/src/Makefile.am
b63e47
--- a/src/Makefile.am	2021-11-12 20:21:54.000000000 +0100
b63e47
+++ b/src/Makefile.am	2021-12-14 13:48:03.218599808 +0100
b63e47
@@ -5,6 +5,9 @@
afdf34
 	-I${top_srcdir} \
afdf34
 	-I${top_srcdir}/src/library
afdf34
 
afdf34
+AM_CPPFLAGS += \
afdf34
+	-I${top_srcdir}/uthash-2.3.0/include
afdf34
+
afdf34
 sbin_PROGRAMS = fapolicyd fapolicyd-cli
afdf34
 lib_LTLIBRARIES= libfapolicyd.la
afdf34