All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Package dependency
@ 2021-11-25 12:27 José Pekkarinen
  2021-11-25 14:51 ` Arnout Vandecappelle
  0 siblings, 1 reply; 3+ messages in thread
From: José Pekkarinen @ 2021-11-25 12:27 UTC (permalink / raw)
  To: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 1508 bytes --]

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

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.

[-- Attachment #1.2: Type: text/html, Size: 2768 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] Package dependency
  2021-11-25 12:27 [Buildroot] Package dependency José Pekkarinen
@ 2021-11-25 14:51 ` Arnout Vandecappelle
  2021-11-29  7:10   ` José Pekkarinen
  0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2021-11-25 14:51 UTC (permalink / raw)
  To: José Pekkarinen, buildroot



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@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] Package dependency
  2021-11-25 14:51 ` Arnout Vandecappelle
@ 2021-11-29  7:10   ` José Pekkarinen
  0 siblings, 0 replies; 3+ messages in thread
From: José Pekkarinen @ 2021-11-29  7:10 UTC (permalink / raw)
  To: Arnout Vandecappelle; +Cc: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 1385 bytes --]

On Thu, Nov 25, 2021 at 4:51 PM Arnout Vandecappelle <arnout@mind.be> wrote:

>
>
> 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.
>

Ah! What a typo, thanks Arnout!


José.

[-- Attachment #1.2: Type: text/html, Size: 2407 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-29  7:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 12:27 [Buildroot] Package dependency José Pekkarinen
2021-11-25 14:51 ` Arnout Vandecappelle
2021-11-29  7:10   ` José Pekkarinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.