From 3442dca7a4676306c8f61fc13d08051fad20141b Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Tue, 12 Feb 2019 20:41:44 +0530 Subject: [PATCH] Fixed build fail issue when building only plugin-firewall Description: This patch fixes a build fail issue when we try to build only plugin-firewall. Below is the error which is generated when build fails:- ======================================================== [ 11s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/include/stc-manager.h:21:0, [ 11s] from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/plugin/firewall/include/stc-plugin-firewall.h:30, [ 11s] from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/plugin/firewall/stc-plugin-firewall.c:17: [ 11s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/include/stc-manager-util.h:21:18: fatal error: glib.h: No such file or directory [ 11s] #include [ 11s] ^ [ 11s] compilation terminated. ======================================================= Change-Id: Id8a01d4ab761c39f9c2bfd1cf3bbfd664e1322b0 Signed-off-by: Nishant Chaprana --- packaging/stc-manager.spec | 2 +- plugin/firewall/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/stc-manager.spec b/packaging/stc-manager.spec index 6c7bbcf..a7acd9a 100644 --- a/packaging/stc-manager.spec +++ b/packaging/stc-manager.spec @@ -1,6 +1,6 @@ Name: stc-manager Summary: STC(Smart Traffic Control) manager -Version: 0.0.89 +Version: 0.0.90 Release: 0 Group: Network & Connectivity/Other License: Apache-2.0 diff --git a/plugin/firewall/CMakeLists.txt b/plugin/firewall/CMakeLists.txt index 1b8404b..05c4d90 100644 --- a/plugin/firewall/CMakeLists.txt +++ b/plugin/firewall/CMakeLists.txt @@ -10,7 +10,7 @@ PKG_CHECK_MODULES(firewall_plugin REQUIRED glib-2.0 ) -FOREACH(flag ${pcap_plugin_CFLAGS}) +FOREACH(flag ${firewall_plugin_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -- 2.7.4