Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 884BEE00D47; Mon, 5 Aug 2019 07:45:10 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [192.103.53.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4BE01E006EE for ; Mon, 5 Aug 2019 07:45:08 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id x75EiUHj009435 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 5 Aug 2019 07:44:41 -0700 Received: from soho-mhatle-m.local (172.25.36.227) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.468.0; Mon, 5 Aug 2019 07:44:20 -0700 To: ChenQi , Bruce Ashfield References: <20190805060143.24108-1-Qi.Chen@windriver.com> <20190805060143.24108-2-Qi.Chen@windriver.com> <62ce21c1-d9c9-7c83-5282-793c1a055f3f@windriver.com> From: Mark Hatle Openpgp: preference=signencrypt Autocrypt: addr=mark.hatle@windriver.com; prefer-encrypt=mutual; keydata= mQENBFYKxFgBCACt/pzutBp6p/xVKTFJjHbM3KpQKCblyot/YP+bpTr51Hrc5xDXBQhoG7TC aIRvRIvbhEevEQK9y04gW3JK/5lobq5ORebolcsHlYBUvpNeIPjupLQwGvz/TPtrLRNGLqDC rvsM6OA2XbQ2bwzxWaSQS3ImE2O2iXOZn9HhThMGeDB4N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8EoC7motWqVn2oEyxoonsg8AD9kFXiN+T dYp7dH99EZu9q4ptj56AXm4uHzOgywL/5/V2TY6twCGAjUGzDjAB5gzoi+JLIBlDiyOip0eL QswIhRk473xy3j8DA4oVamnSPWgyNJ+qsdt37YWDzoDFFvtDoRU7Eb+znfIMDKzlny0XU/8L cW1bNHJlpv/78GPdfP4tjysEd8MuA5jf5o5w4XqcwTqalffEJtQ/s3pbkstEi7qm5uPui5Kt gq6YYLSqcSNe0GWAF9/T+qwyo7burSTxUWCWtMmlXdAQLW9SynLhB3Jbch0nFAh0fCKi6yY= Organization: Wind River Systems Message-ID: <2b9ef4d5-8d38-f314-e3fc-c23a77650a84@windriver.com> Date: Mon, 5 Aug 2019 09:44:19 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <62ce21c1-d9c9-7c83-5282-793c1a055f3f@windriver.com> Cc: meta-virtualization@yoctoproject.org Subject: Re: [PATCH 2/4] runc: remove static to enable building systemd support X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2019 14:45:10 -0000 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit On 8/5/19 7:05 AM, ChenQi wrote: > On 08/05/2019 07:28 PM, Bruce Ashfield wrote: >> >> >> On Mon., Aug. 5, 2019, 3:02 a.m. Chen Qi, > > 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 > >> --- >>  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 >> runc is one of those things that may need to be static in some configurations. Since it has security impact, updating runc (and the libc) should be done in paralell and this can cause problems otherwise. Now, that doesn't mean it HAS to be static, but it should be a configuration and may be wise to have as the default to be static. >> >> 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. So PACKAGECONFIG is the right answer here. I'm not sure what the right default for the recipe is.... but in the end the users configuration and distro can and should be able to select what they want. --Mark > Right? > > Regards, > Chen Qi > >>  } >> >>  do_install() { >> -- >> 2.17.1 >> >> -- >> _______________________________________________ >> meta-virtualization mailing list >> meta-virtualization@yoctoproject.org >> >> https://lists.yoctoproject.org/listinfo/meta-virtualization >> > >