[Buildroot] Package dependency

Arnout Vandecappelle arnout at mind.be
Thu Nov 25 14:51:12 UTC 2021



On 25/11/2021 13:27, José Pekkarinen wrote:
> 
>     Hi buildroot list,
> 
>     I'm working on a package for minijail that
> 
> has a build dependency on libcap. I'm having
> troubles to set the dependency in the recipe and
> I fail to find what is wrong, so I want to ask for hints.
> 
>     Current Config.in:
> 
> 
> config BR2_PACKAGE_MINIJAIL
>         bool "minijail"
>         select BR2_PACKAGE_HOST_LIBCAP
>         select BR2_PACKAGE_LIBCAP
>         help
>           Minijail is a sandboxing tool maintained by google.
> 
> https://google.github.io/minijail/
> 
>     Current recipe:
> 
> 
> ################################################################################
> #
> # minijail
> #
> ################################################################################
> 
> MINIJAIL_VERSION = linux-v17
> MINIJAIL_SOURCE = $(MINIJAIL_VERSION).tar.gz
> MINIJAIL_SITE = "https://github.com/google/minijail/archive/refs/tags"
> MINIJAIL_LICENSE = BSD-Style
> MINIJAIL_LICENSE_FILES = LICENSE
> MINIJAIL_DEPENDENCY=libcap host-libcap

  Try MINIJAIL_DEPENDENCIES.

  Also, of course, formatting - use check-package.

  Regards,
  Arnout

> 
> define MINIJAIL_BUILD_CMDS
>         (cd $(@D); \
>         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/$(d) CC="$(TARGET_CC)")
> endef
> 
> define MINIJAIL_INSTALL_TARGET_CMDS
>         $(INSTALL) -m 0755 -D $(@D)/minijail0 \
>                 $(TARGET_DIR)/usr/bin/minijail0
>         $(INSTALL) -m 0755 -D $(@D)/libminijailpreload.so \
>                 $(TARGET_DIR)/lib/libminijailpreload.so
>         $(INSTALL) -m 0755 -D $(@D)/libminijail.so \
>                 $(TARGET_DIR)/lib/libminijail.so
> endef
> 
> $(eval $(generic-package))
> 
>     Thanks!
> 
>     José Pekkarinen.
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
> 


More information about the buildroot mailing list