Blame SOURCES/fapolicyd-uthash-bundle.patch

afdf34
diff -up ./configure.ac.uthash ./configure.ac
afdf34
--- ./configure.ac.uthash	2021-03-25 22:12:48.164450403 +0100
afdf34
+++ ./configure.ac	2021-03-25 22:13:01.067282788 +0100
afdf34
@@ -67,10 +67,6 @@ AC_CHECK_HEADER(sys/fanotify.h, , [AC_MS
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)
afdf34
diff -up ./src/library/rpm-backend.c.uthash ./src/library/rpm-backend.c
afdf34
--- ./src/library/rpm-backend.c.uthash	2021-01-05 16:27:53.000000000 +0100
afdf34
+++ ./src/library/rpm-backend.c	2021-03-25 22:12:33.212644641 +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"
afdf34
 
afdf34
diff -up ./src/Makefile.am.uthash ./src/Makefile.am
afdf34
--- ./src/Makefile.am.uthash	2021-01-05 16:27:53.000000000 +0100
afdf34
+++ ./src/Makefile.am	2021-03-25 22:12:33.212644641 +0100
afdf34
@@ -5,6 +5,9 @@ AM_CPPFLAGS = \
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