Blame SOURCES/0017-build-update-pkg-modules-for-systemd.patch

2aa065
From c0d934651f0fb01687035c8750f0591ea8b5d0ee Mon Sep 17 00:00:00 2001
2aa065
From: Jakub Filak <jfilak@redhat.com>
2aa065
Date: Mon, 23 May 2016 14:28:40 +0200
2aa065
Subject: [PATCH] build: update pkg modules for systemd
2aa065
2aa065
systemd-journal was dropped in systemd-230
2aa065
2aa065
Signed-off-by: Jakub Filak <jfilak@redhat.com>
2aa065
---
2aa065
 src/CMakeLists.txt | 14 +++++++-------
2aa065
 1 file changed, 7 insertions(+), 7 deletions(-)
2aa065
2aa065
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2aa065
index 1d31602..36c9ce5 100644
2aa065
--- a/src/CMakeLists.txt
2aa065
+++ b/src/CMakeLists.txt
2aa065
@@ -4,14 +4,14 @@ include_directories(${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
2aa065
 include_directories(${PC_LIBREPORT_INCLUDE_DIRS})
2aa065
 include_directories(${PC_ABRT_INCLUDE_DIRS})
2aa065
 
2aa065
-pkg_check_modules(PC_JOURNALD libsystemd-journal)
2aa065
+pkg_check_modules(PC_SYSTEMD libsystemd)
2aa065
 
2aa065
-if (PC_JOURNALD_FOUND)
2aa065
-    include_directories(${PC_JOURNALD_INCLUDE_DIRS})
2aa065
+if (PC_SYSTEMD_FOUND)
2aa065
+    include_directories(${PC_SYSTEMD_INCLUDE_DIRS})
2aa065
     add_definitions(-DHAVE_SYSTEMD=1)
2aa065
 else()
2aa065
     add_definitions(-DHAVE_SYSTEMD=0)
2aa065
-endif (PC_JOURNALD_FOUND)
2aa065
+endif (PC_SYSTEMD_FOUND)
2aa065
 
2aa065
 set(AbrtChecker_SRCS configuration.c abrt-checker.c
2aa065
         jthrowable_circular_buf.c jthread_map.c)
2aa065
@@ -27,8 +27,8 @@ set_target_properties(
2aa065
 target_link_libraries(AbrtChecker ${PC_LIBREPORT_LIBRARIES})
2aa065
 target_link_libraries(AbrtChecker ${PC_ABRT_LIBRARIES})
2aa065
 
2aa065
-if (PC_JOURNALD_FOUND)
2aa065
-    target_link_libraries(AbrtChecker ${PC_JOURNALD_LIBRARIES})
2aa065
-endif (PC_JOURNALD_FOUND)
2aa065
+if (PC_SYSTEMD_FOUND)
2aa065
+    target_link_libraries(AbrtChecker ${PC_SYSTEMD_LIBRARIES})
2aa065
+endif (PC_SYSTEMD_FOUND)
2aa065
 
2aa065
 install(TARGETS AbrtChecker DESTINATION ${JNIAGENTLIB_INSTALL_DIR})
2aa065
-- 
2aa065
2.21.0
2aa065