checkpolicy: build-depend on libselinux
authorDaniel Golle <daniel@makrotopia.org>
Mon, 31 Aug 2020 19:41:21 +0000 (20:41 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 31 Aug 2020 19:45:14 +0000 (20:45 +0100)
Static libraries and headers of libselinux and libsepol are required
for checkpolicy to build.
Fixes error:
policy_parse.y:45:10: fatal error: sepol/policydb/expand.h: No such file or directory
 #include <sepol/policydb/expand.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/utils/checkpolicy/Makefile

index 5e32bc5871c8ce18caefabde69b40525862e16c0..8def9ea65d00586ff8fef9597f9a79f6ca5920d6 100644 (file)
@@ -13,6 +13,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/20200710
 PKG_HASH:=dfc7707070520c93b14fbbdfdbe081364d806bf28e3e79e10318c2594c77bbb2
 PKG_INSTALL:=1
+PKG_BUILD_DEPENDS:=libselinux
 HOST_BUILD_DEPENDS:=libselinux/host
 
 PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>