[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [PATCH] icecc.bbclass: enable networking in all tasks
From:       "Jose Quaresma" <quaresma.jose () gmail ! com>
Date:       2022-02-28 16:10:28
Message-ID: CANPvuRn8mgL6FMWj0143ZTPXY5VyzHfA81kJruqFEq0xdpBgnQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This patch can't be the right fix but currently the icecc.bbclass doesn't
work on master.

Jose

Jose Quaresma via lists.openembedded.org <quaresma.jose=
gmail.com@lists.openembedded.org> escreveu no dia quarta, 16/02/2022 Ã (s)
23:27:

> The icecc.bbclass needs network access to work properly.
>
> Currently I build with icecc inside a container with network isolation and
> my icecc daemon runs outside of the build container in my host.
> The only thing I need to do for using the icecc inside my build container
> is
> mounting the unix socket /var/run/icecc/iceccd.socket inside the container.
>
> I think we need something like this mount functionality to have access to
> some sockets connections inside the tasks that runs on the new namespace
> created with unshare system call.
>
> This patch is not a the real solution for the problem and is more like
> an hack so we can use the icecc.bbclass again.
>
> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> ---
>  meta/classes/icecc.bbclass | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
> index 3bbd2645af..68415b04c7 100644
> --- a/meta/classes/icecc.bbclass
> +++ b/meta/classes/icecc.bbclass
> @@ -428,18 +428,22 @@ set_icecc_env() {
>      bbnote "Using icecc tarball: $ICECC_VERSION"
>  }
>
> +do_configure[network] = "1"
>  do_configure:prepend() {
>      set_icecc_env
>  }
>
> +do_compile[network] = "1"
>  do_compile:prepend() {
>      set_icecc_env
>  }
>
> +do_compile_kernelmodules[network] = "1"
>  do_compile_kernelmodules:prepend() {
>      set_icecc_env
>  }
>
> +do_install[network] = "1"
>  do_install:prepend() {
>      set_icecc_env
>  }
> --
> 2.35.1
>
>
> 
>
>

-- 
Best regards,

José Quaresma

[Attachment #5 (text/html)]

<div dir="ltr"><div>This patch can&#39;t be the right  fix but currently the \
icecc.bbclass doesn&#39;t work on \
master.<br></div><div><br></div><div>Jose</div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">Jose Quaresma via <a \
href="http://lists.openembedded.org">lists.openembedded.org</a> &lt;quaresma.jose=<a \
href="mailto:gmail.com@lists.openembedded.org">gmail.com@lists.openembedded.org</a>&gt; \
escreveu no dia quarta, 16/02/2022 Ã (s) 23:27:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">The icecc.bbclass needs network access to work \
properly.<br> <br>
Currently I build with icecc inside a container with network isolation and<br>
my icecc daemon runs outside of the build container in my host.<br>
The only thing I need to do for using the icecc inside my build container is<br>
mounting the unix socket /var/run/icecc/iceccd.socket inside the container.<br>
<br>
I think we need something like this mount functionality to have access to<br>
some sockets connections inside the tasks that runs on the new namespace<br>
created with unshare system call.<br>
<br>
This patch is not a the real solution for the problem and is more like<br>
an hack so we can use the icecc.bbclass again.<br>
<br>
Signed-off-by: Jose Quaresma &lt;<a href="mailto:quaresma.jose@gmail.com" \
                target="_blank">quaresma.jose@gmail.com</a>&gt;<br>
---<br>
  meta/classes/icecc.bbclass | 4 ++++<br>
  1 file changed, 4 insertions(+)<br>
<br>
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass<br>
index 3bbd2645af..68415b04c7 100644<br>
--- a/meta/classes/icecc.bbclass<br>
+++ b/meta/classes/icecc.bbclass<br>
@@ -428,18 +428,22 @@ set_icecc_env() {<br>
        bbnote &quot;Using icecc tarball: $ICECC_VERSION&quot;<br>
  }<br>
<br>
+do_configure[network] = &quot;1&quot;<br>
  do_configure:prepend() {<br>
        set_icecc_env<br>
  }<br>
<br>
+do_compile[network] = &quot;1&quot;<br>
  do_compile:prepend() {<br>
        set_icecc_env<br>
  }<br>
<br>
+do_compile_kernelmodules[network] = &quot;1&quot;<br>
  do_compile_kernelmodules:prepend() {<br>
        set_icecc_env<br>
  }<br>
<br>
+do_install[network] = &quot;1&quot;<br>
  do_install:prepend() {<br>
        set_icecc_env<br>
  }<br>
-- <br>
2.35.1<br>
<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature"><div dir="ltr">Best regards,<div><br>José \
Quaresma</div></div></div></div>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162509): https://lists.openembedded.org/g/openembedded-core/message/162509
Mute This Topic: https://lists.openembedded.org/mt/89198407/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic