Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POLICYCOREUTILS_VERSION = 2.6
|
||||
POLICYCOREUTILS_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014
|
||||
POLICYCOREUTILS_LICENSE = GPLv2
|
||||
POLICYCOREUTILS_VERSION = 2.7
|
||||
POLICYCOREUTILS_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804
|
||||
POLICYCOREUTILS_LICENSE = GPL-2.0
|
||||
POLICYCOREUTILS_LICENSE_FILES = COPYING
|
||||
|
||||
POLICYCOREUTILS_DEPENDENCIES = libsemanage libcap-ng
|
||||
@@ -41,15 +41,9 @@ POLICYCOREUTILS_MAKE_OPTS += \
|
||||
|
||||
POLICYCOREUTILS_MAKE_DIRS = \
|
||||
load_policy newrole run_init \
|
||||
secon semodule semodule_deps \
|
||||
semodule_expand semodule_link \
|
||||
semodule_package sepolgen-ifgen \
|
||||
sestatus setfiles setsebool
|
||||
secon semodule sestatus setfiles \
|
||||
setsebool
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POLICYCOREUTILS_RESTORECOND),y)
|
||||
POLICYCOREUTILS_MAKE_DIRS += restorecond
|
||||
POLICYCOREUTILS_DEPENDENCIES += libglib2
|
||||
endif
|
||||
# We need to pass DESTDIR at build time because it's used by
|
||||
# policycoreutils build system to find headers and libraries.
|
||||
define POLICYCOREUTILS_BUILD_CMDS
|
||||
@@ -67,19 +61,23 @@ define POLICYCOREUTILS_INSTALL_TARGET_CMDS
|
||||
endef
|
||||
|
||||
HOST_POLICYCOREUTILS_DEPENDENCIES = \
|
||||
host-libsemanage host-dbus-glib \
|
||||
host-sepolgen host-setools
|
||||
host-libsemanage host-dbus-glib host-setools
|
||||
|
||||
# Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h
|
||||
# large file support.
|
||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=574992 for more information
|
||||
# We need to pass DESTDIR at build time because it's used by
|
||||
# policycoreutils build system to find headers and libraries.
|
||||
# We also need to pass PREFIX because it defaults to $(DESTDIR)/usr
|
||||
HOST_POLICYCOREUTILS_MAKE_OPTS = \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(HOST_CFLAGS) -U_FILE_OFFSET_BITS" \
|
||||
CPPFLAGS="$(HOST_CPPFLAGS) -U_FILE_OFFSET_BITS" \
|
||||
PYTHON="$(HOST_DIR)/usr/bin/python" \
|
||||
PYTHON="$(HOST_DIR)/bin/python" \
|
||||
PYTHON_INSTALL_ARGS="$(HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPTS)" \
|
||||
ARCH="$(HOSTARCH)"
|
||||
ARCH="$(HOSTARCH)" \
|
||||
DESTDIR=$(HOST_DIR) \
|
||||
PREFIX=$(HOST_DIR)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
HOST_POLICYCOREUTILS_DEPENDENCIES += host-python3
|
||||
@@ -93,29 +91,20 @@ endif
|
||||
|
||||
# Note: We are only building the programs required by the refpolicy build
|
||||
HOST_POLICYCOREUTILS_MAKE_DIRS = \
|
||||
load_policy semodule semodule_deps \
|
||||
semodule_expand semodule_link \
|
||||
semodule_package setfiles restorecond \
|
||||
audit2allow scripts semanage sepolicy
|
||||
load_policy newrole run_init \
|
||||
secon semodule sestatus setfiles \
|
||||
setsebool
|
||||
|
||||
# We need to pass DESTDIR at build time because it's used by
|
||||
# policycoreutils build system to find headers and libraries.
|
||||
define HOST_POLICYCOREUTILS_BUILD_CMDS
|
||||
$(foreach d,$(HOST_POLICYCOREUTILS_MAKE_DIRS),
|
||||
$(MAKE) -C $(@D)/$(d) $(HOST_POLICYCOREUTILS_MAKE_OPTS) \
|
||||
DESTDIR=$(HOST_DIR) all
|
||||
$(MAKE) -C $(@D)/$(d) $(HOST_POLICYCOREUTILS_MAKE_OPTS) all
|
||||
)
|
||||
endef
|
||||
|
||||
define HOST_POLICYCOREUTILS_INSTALL_CMDS
|
||||
$(foreach d,$(HOST_POLICYCOREUTILS_MAKE_DIRS),
|
||||
$(MAKE) -C $(@D)/$(d) $(HOST_POLICYCOREUTILS_MAKE_OPTS) \
|
||||
DESTDIR=$(HOST_DIR) install
|
||||
$(MAKE) -C $(@D)/$(d) $(HOST_POLICYCOREUTILS_MAKE_OPTS) install
|
||||
)
|
||||
# Fix python paths
|
||||
$(SED) 's%/usr/bin/%$(HOST_DIR)/usr/bin/%g' $(HOST_DIR)/usr/bin/audit2allow
|
||||
$(SED) 's%/usr/bin/%$(HOST_DIR)/usr/bin/%g' $(HOST_DIR)/usr/bin/sepolgen-ifgen
|
||||
$(SED) 's%/usr/bin/%$(HOST_DIR)/usr/bin/%g' $(HOST_DIR)/usr/bin/sepolicy
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
Reference in New Issue
Block a user