* Network Isolation and CMake FetchContent
@ 2023-03-22 16:58 Rudolf J Streif
2023-03-22 17:56 ` [yocto] " Jose Quaresma
2023-03-24 11:01 ` Ross Burton
0 siblings, 2 replies; 4+ messages in thread
From: Rudolf J Streif @ 2023-03-22 16:58 UTC (permalink / raw)
To: Yocto-mailing-list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] Network Isolation and CMake FetchContent
2023-03-22 16:58 Network Isolation and CMake FetchContent Rudolf J Streif
@ 2023-03-22 17:56 ` Jose Quaresma
2023-03-22 18:00 ` Rudolf J Streif
2023-03-24 11:01 ` Ross Burton
1 sibling, 1 reply; 4+ messages in thread
From: Jose Quaresma @ 2023-03-22 17:56 UTC (permalink / raw)
To: Rudolf J Streif; +Cc: Yocto-mailing-list
[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]
Hi Rudolf,
Rudolf J Streif <rudolf.streif@ibeeto.com> 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
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> 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/5052612
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
--
Best regards,
José Quaresma
[-- Attachment #2: Type: text/html, Size: 2370 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] Network Isolation and CMake FetchContent
2023-03-22 17:56 ` [yocto] " Jose Quaresma
@ 2023-03-22 18:00 ` Rudolf J Streif
0 siblings, 0 replies; 4+ messages in thread
From: Rudolf J Streif @ 2023-03-22 18:00 UTC (permalink / raw)
To: Jose Quaresma; +Cc: Yocto-mailing-list
[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]
On 3/22/23 10:56, Jose Quaresma wrote:
> Hi Rudolf,
>
> Rudolf J Streif <rudolf.streif@ibeeto.com> 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
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> 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/5052612
> Group Owner: yocto+owner@lists.yoctoproject.org
> <mailto:yocto%2Bowner@lists.yoctoproject.org>
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
> [quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
>
> --
> Best regards,
>
> José Quaresma
--
Rudolf J Streif
CEO/CTO
1.855.442.3386
[-- Attachment #2: Type: text/html, Size: 4489 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] Network Isolation and CMake FetchContent
2023-03-22 16:58 Network Isolation and CMake FetchContent Rudolf J Streif
2023-03-22 17:56 ` [yocto] " Jose Quaresma
@ 2023-03-24 11:01 ` Ross Burton
1 sibling, 0 replies; 4+ messages in thread
From: Ross Burton @ 2023-03-24 11:01 UTC (permalink / raw)
To: rudolf.streif; +Cc: Yocto-mailing-list
> On 22 Mar 2023, at 16:58, Rudolf J Streif via lists.yoctoproject.org <rudolf.streif=ibeeto.com@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-24 11:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 16:58 Network Isolation and CMake FetchContent Rudolf J Streif
2023-03-22 17:56 ` [yocto] " Jose Quaresma
2023-03-22 18:00 ` Rudolf J Streif
2023-03-24 11:01 ` Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).