8144dd1b4c
Drop patch and disable libseccomp when building statically to avoid the
following build failure raised since commit
29834d8a12
:
src/seccomp_notify.c: In function 'seccomp_notify_plugins_load':
src/seccomp_notify.c:136:42: warning: implicit declaration of function 'dlopen'; did you mean 'popen'? [-Wimplicit-function-declaration]
136 | ctx->plugins[s].handle = dlopen(it, RTLD_NOW);
| ^~~~~~
| popen
src/seccomp_notify.c:136:53: error: 'RTLD_NOW' undeclared (first use in this function)
136 | ctx->plugins[s].handle = dlopen(it, RTLD_NOW);
| ^~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/13d3b46990720bba8621c922b5dce54ab650e96d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
37 lines
985 B
Makefile
37 lines
985 B
Makefile
################################################################################
|
|
#
|
|
# conmon
|
|
#
|
|
################################################################################
|
|
|
|
CONMON_VERSION = 2.1.8
|
|
CONMON_SITE = $(call github,containers,conmon,v$(CONMON_VERSION))
|
|
CONMON_LICENSE = Apache-2.0
|
|
CONMON_LICENSE_FILES = LICENSE
|
|
|
|
CONMON_DEPENDENCIES = host-pkgconf libglib2
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP):$(BR2_STATIC_LIBS),y:)
|
|
CONMON_DISABLE_SECCOMP = 0
|
|
CONMON_DEPENDENCIES += libseccomp
|
|
else
|
|
CONMON_DISABLE_SECCOMP = 1
|
|
endif
|
|
|
|
define CONMON_CONFIGURE_CMDS
|
|
printf '#!/bin/bash\necho "$(CONMON_DISABLE_SECCOMP)"\n' > \
|
|
$(@D)/hack/seccomp-notify.sh
|
|
chmod +x $(@D)/hack/seccomp-notify.sh
|
|
endef
|
|
|
|
define CONMON_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) bin/conmon
|
|
endef
|
|
|
|
define CONMON_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 755 $(@D)/bin/conmon $(TARGET_DIR)/usr/bin/conmon
|
|
endef
|
|
|
|
$(eval $(generic-package))
|