From 8fa42fe787e5e11c6ae2fa7a7970f76dd42c08d4 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 11 Oct 2020 21:50:32 -0700 Subject: [PATCH] mariadb: fix compilation when selinux is present Signed-off-by: Rosen Penev --- utils/mariadb/Makefile | 2 +- utils/mariadb/patches/200-no-selinux.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 utils/mariadb/patches/200-no-selinux.patch diff --git a/utils/mariadb/Makefile b/utils/mariadb/Makefile index 96b01fe2fa..321ee70a9b 100644 --- a/utils/mariadb/Makefile +++ b/utils/mariadb/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mariadb PKG_VERSION:=10.4.14 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL := \ diff --git a/utils/mariadb/patches/200-no-selinux.patch b/utils/mariadb/patches/200-no-selinux.patch new file mode 100644 index 0000000000..d7ed569f71 --- /dev/null +++ b/utils/mariadb/patches/200-no-selinux.patch @@ -0,0 +1,11 @@ +--- a/support-files/CMakeLists.txt ++++ b/support-files/CMakeLists.txt +@@ -61,7 +61,7 @@ IF(UNIX) + INSTALL(FILES magic DESTINATION ${inst_location} COMPONENT SupportFiles) + INSTALL(DIRECTORY policy DESTINATION ${inst_location} COMPONENT SupportFiles) + FIND_PROGRAM(CHECKMODULE checkmodule) +- FIND_PROGRAM(SEMODULE_PACKAGE semodule_package) ++# FIND_PROGRAM(SEMODULE_PACKAGE semodule_package) + MARK_AS_ADVANCED(CHECKMODULE SEMODULE_PACKAGE) + + # Build pp files in policy/selinux