Re: [yocto] Network Isolation and CMake FetchContent

2023-03-24 Thread Ross Burton


> On 22 Mar 2023, at 16:58, Rudolf J Streif via lists.yoctoproject.org 
>  wrote:
> 
> I have a vendor project which uses CMake FetchContent.
> 
> It's simple to override FETCHCONTENT_FULLY_DISCONNECTED=ON which is set in 
> the cmake class. However, that does not fix the issue since network isolation 
> prevents the CMake from downloading the content.
> 
> I have not found a way to override the network isolation. Is there one?

Yes: do_compile[network] = “1”

Ross


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59514): https://lists.yoctoproject.org/g/yocto/message/59514
Mute This Topic: https://lists.yoctoproject.org/mt/97782979/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Network Isolation and CMake FetchContent

2023-03-22 Thread Rudolf J Streif


On 3/22/23 10:56, Jose Quaresma wrote:

Hi Rudolf,

Rudolf J Streif  escreveu no dia quarta, 
22/03/2023 à(s) 16:58:


I have a vendor project which uses CMake FetchContent.

It's simple to override FETCHCONTENT_FULLY_DISCONNECTED=ON which
is set
in the cmake class. However, that does not fix the issue since
network
isolation prevents the CMake from downloading the content.

I have not found a way to override the network isolation. Is there
one?


please try in a recipe bbappend with

do_configure[network] = "1"

Thank you. That did the trick. I should have known that. It's one of 
these days...

Jose


Now this is not a discussion about whether FetchContent or not is
a good
idea and any potential other issues that could arise from using
it. For
me it's to quickly enable a functionality without jumping through
hoops
of patching the vendor sources etc.

Cheers,
Rudi








--
Best regards,

José Quaresma


--
Rudolf J Streif
CEO/CTO
1.855.442.3386

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59494): https://lists.yoctoproject.org/g/yocto/message/59494
Mute This Topic: https://lists.yoctoproject.org/mt/97782979/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Network Isolation and CMake FetchContent

2023-03-22 Thread Jose Quaresma
Hi Rudolf,

Rudolf J Streif  escreveu no dia quarta,
22/03/2023 à(s) 16:58:

> I have a vendor project which uses CMake FetchContent.
>
> It's simple to override FETCHCONTENT_FULLY_DISCONNECTED=ON which is set
> in the cmake class. However, that does not fix the issue since network
> isolation prevents the CMake from downloading the content.
>
> I have not found a way to override the network isolation. Is there one?
>

please try in a recipe bbappend with

do_configure[network] = "1"

Jose


>
> Now this is not a discussion about whether FetchContent or not is a good
> idea and any potential other issues that could arise from using it. For
> me it's to quickly enable a functionality without jumping through hoops
> of patching the vendor sources etc.
>
> Cheers,
> Rudi
>
>
>
> 
>
>

-- 
Best regards,

José Quaresma

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59493): https://lists.yoctoproject.org/g/yocto/message/59493
Mute This Topic: https://lists.yoctoproject.org/mt/97782979/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Network Isolation and CMake FetchContent

2023-03-22 Thread Rudolf J Streif

I have a vendor project which uses CMake FetchContent.

It's simple to override FETCHCONTENT_FULLY_DISCONNECTED=ON which is set 
in the cmake class. However, that does not fix the issue since network 
isolation prevents the CMake from downloading the content.


I have not found a way to override the network isolation. Is there one?

Now this is not a discussion about whether FetchContent or not is a good 
idea and any potential other issues that could arise from using it. For 
me it's to quickly enable a functionality without jumping through hoops 
of patching the vendor sources etc.


Cheers,
Rudi



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59492): https://lists.yoctoproject.org/g/yocto/message/59492
Mute This Topic: https://lists.yoctoproject.org/mt/97782979/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-