[meta-virtualization] [PATCH 2/4] runc: remove static to enable building systemd support

ChenQi Qi.Chen at windriver.com
Mon Aug 5 05:05:15 PDT 2019


On 08/05/2019 07:28 PM, Bruce Ashfield wrote:
>
>
> On Mon., Aug. 5, 2019, 3:02 a.m. Chen Qi, <Qi.Chen at windriver.com 
> <mailto:Qi.Chen at windriver.com>> wrote:
>
>     Remove the 'static' from do_compile to enable systemd support.
>     This avoid runtime error is docker's cgroup driver is set to systemd
>     on systemd based images.
>
>     Signed-off-by: Chen Qi <Qi.Chen at windriver.com
>     <mailto:Qi.Chen at windriver.com>>
>     ---
>      recipes-containers/runc/runc.inc | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
>
>     diff --git a/recipes-containers/runc/runc.inc
>     b/recipes-containers/runc/runc.inc
>     index 46fd09d..1f2f944 100644
>     --- a/recipes-containers/runc/runc.inc
>     +++ b/recipes-containers/runc/runc.inc
>     @@ -54,7 +54,7 @@ do_compile() {
>             export CFLAGS=""
>             export LDFLAGS=""
>
>     -       oe_runmake static
>     +       oe_runmake
>
>
>
> This needs to be optional, via a packageconfig that can be overidden 
> and that can trigger a default of the init manager is systemd. (I 
> actually want static and systemd in my configs )
>
> Bruce
>

So we introduce a PACKAGECONFIG, whose effect is using static when 
enabled and dropping static when disabled. By default, it's disabled if 
systemd is in use.

Right?

Regards,
Chen Qi

>      }
>
>      do_install() {
>     -- 
>     2.17.1
>
>     -- 
>     _______________________________________________
>     meta-virtualization mailing list
>     meta-virtualization at yoctoproject.org
>     <mailto:meta-virtualization at yoctoproject.org>
>     https://lists.yoctoproject.org/listinfo/meta-virtualization
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20190805/17d21917/attachment.html>


More information about the meta-virtualization mailing list