fapolicyd/SOURCES/fapolicyd-uthash-bundle.patch

40 lines
1.3 KiB
Diff
Raw Normal View History

2023-09-21 18:24:07 +00:00
diff -up ./configure.ac.uthash ./configure.ac
--- ./configure.ac.uthash 2023-06-15 16:45:13.000000000 +0200
+++ ./configure.ac 2023-06-16 14:32:53.112363230 +0200
@@ -96,10 +96,6 @@ AC_CHECK_HEADER(sys/fanotify.h, , [AC_MS
2021-11-02 19:42:47 +00:00
["Couldn't find sys/fanotify.h...your kernel might not be new enough"] )])
AC_CHECK_FUNCS(fexecve, [], [])
-AC_CHECK_HEADER(uthash.h, , [AC_MSG_ERROR(
-["Couldn't find uthash.h...uthash-devel is missing"] )])
-
-
echo .
echo Checking for required libraries
AC_CHECK_LIB(udev, udev_device_get_devnode, , [AC_MSG_ERROR([libudev not found])], -ludev)
2023-09-21 18:24:07 +00:00
diff -up ./src/library/rpm-backend.c.uthash ./src/library/rpm-backend.c
--- ./src/library/rpm-backend.c.uthash 2023-06-16 14:32:53.112363230 +0200
+++ ./src/library/rpm-backend.c 2023-06-16 14:35:20.467338604 +0200
@@ -33,7 +33,7 @@
#include <rpm/rpmpgp.h>
2021-11-02 19:42:47 +00:00
#include <fnmatch.h>
-#include <uthash.h>
+#include "uthash.h"
#include "message.h"
2022-01-11 17:53:04 +00:00
#include "gcc-attributes.h"
2023-09-21 18:24:07 +00:00
diff -up ./src/Makefile.am.uthash ./src/Makefile.am
--- ./src/Makefile.am.uthash 2023-06-15 16:45:13.000000000 +0200
+++ ./src/Makefile.am 2023-06-16 14:32:53.112363230 +0200
@@ -5,6 +5,9 @@ AM_CPPFLAGS = \
2021-11-02 19:42:47 +00:00
-I${top_srcdir} \
-I${top_srcdir}/src/library
+AM_CPPFLAGS += \
+ -I${top_srcdir}/uthash-2.3.0/include
+
sbin_PROGRAMS = fapolicyd fapolicyd-cli
lib_LTLIBRARIES= libfapolicyd.la