[openwrt/openwrt] checkpolicy: build-depend on libselinux

LEDE Commits lede-commits at lists.infradead.org
Mon Aug 31 15:45:29 EDT 2020


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/86307bc908c0680bbfcf1ff204e841511b1c9c8a

commit 86307bc908c0680bbfcf1ff204e841511b1c9c8a
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Aug 31 20:41:21 2020 +0100

    checkpolicy: build-depend on libselinux
    
    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 at makrotopia.org>
---
 package/utils/checkpolicy/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/utils/checkpolicy/Makefile b/package/utils/checkpolicy/Makefile
index 5e32bc5871..8def9ea65d 100644
--- a/package/utils/checkpolicy/Makefile
+++ b/package/utils/checkpolicy/Makefile
@@ -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 at bootlin.com>



More information about the lede-commits mailing list