The AUTORECONF variable was introduced in commit [1] with reference to the patches that modified the m4 and Makefile.am files. The commit [2] removed the last such patch but left the reference to the patch and the AUTORECONF variable. Later, commit [3] updated the mirror to the gitlab URL that no longer bundle a pre-generated `configure` file, making the execution of AUTORECONF necessary anyway. This patch removes the obsolete reference to the patch 0001 removed in [2] to avoid ambiguity with the new patch 0001 introduced in commit [4]. [1]01a82c1401package/libapparmor: enable python bindings [2]27cd0b5033package/apparmor: bump to version 3.0.4 [3]5649202ddcpackage/libapparmor: bump to version 3.1.7 [4]2640f5dcd0package/libapparmor: fix build w/ musl Signed-off-by: Thomas Perale <thomas.perale@mind.be> [Peter: add a comment explaining why] Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit50cac72f73) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# libapparmor
|
|
#
|
|
################################################################################
|
|
|
|
# When updating the version here, please also update the apparmor package
|
|
LIBAPPARMOR_VERSION_MAJOR = 3.1
|
|
LIBAPPARMOR_VERSION = $(LIBAPPARMOR_VERSION_MAJOR).7
|
|
LIBAPPARMOR_SOURCE = apparmor-v$(LIBAPPARMOR_VERSION).tar.gz
|
|
LIBAPPARMOR_SITE = https://gitlab.com/apparmor/apparmor/-/archive/v$(LIBAPPARMOR_VERSION)
|
|
LIBAPPARMOR_LICENSE = LGPL-2.1
|
|
LIBAPPARMOR_LICENSE_FILES = LICENSE libraries/libapparmor/COPYING.LGPL
|
|
|
|
LIBAPPARMOR_DEPENDENCIES = host-bison host-flex host-pkgconf
|
|
LIBAPPARMOR_SUBDIR = libraries/libapparmor
|
|
LIBAPPARMOR_INSTALL_STAGING = YES
|
|
|
|
# no configure in tarball
|
|
LIBAPPARMOR_AUTORECONF = YES
|
|
|
|
# Most AppArmor tools will want to link to the static lib.
|
|
# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
|
|
# provided by autoconf relies on wchar_t.
|
|
LIBAPPARMOR_CONF_OPTS = \
|
|
ac_cv_prog_cc_c99=-std=gnu99 \
|
|
--enable-static \
|
|
--disable-man-pages
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
LIBAPPARMOR_DEPENDENCIES += host-python3 host-python-setuptools host-swig python3
|
|
LIBAPPARMOR_CONF_OPTS += \
|
|
--with-python \
|
|
PYTHON=$(HOST_DIR)/bin/python3 \
|
|
PYTHON_CONFIG=$(STAGING_DIR)/usr/bin/python3-config \
|
|
SWIG=$(SWIG)
|
|
else
|
|
LIBAPPARMOR_CONF_OPTS += --without-python
|
|
endif
|
|
|
|
define LIBAPPARMOR_LINUX_CONFIG_FIXUPS
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_AUDIT)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_APPARMOR)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_DEFAULT_SECURITY_APPARMOR)
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|