> >+do_configure[network] = "1"
> >+
> >+do_configure:prepend() {
> >+    if [ -n "${http_proxy}" ]; then
> >+        export HTTP_PROXY=${http_proxy}
> >+        export http_proxy=${http_proxy}
> >+    fi
> >+
> >+    if [ -n "${https_proxy}" ]; then
> >+        export HTTPS_PROXY=${https_proxy}
> >+        export https_proxy=${https_proxy}
> >+    fi
> 
> 
> Are these checks needed? If it is unset then exporting doesn't hurt,
> could replace all this with:
> 
> export http_proxy
> export https_proxy
> do_configure[network] = "1"
> 
> >+do_compile[network] = "1"
> >+
> >+do_compile:prepend() {
> >+    # Used to download cmake dependencies when behind a proxy
> >+    if [ -n "${http_proxy}" ]; then
> >+        export HTTP_PROXY=${http_proxy}
> >+        export http_proxy=${http_proxy}
> >+    fi
> >+
> >+    if [ -n "${https_proxy}" ]; then
> >+        export HTTPS_PROXY=${https_proxy}
> >+        export https_proxy=${https_proxy}
> >+    fi
> 
> Do you need network during compile? Seems to only be used in configure.

Both of the above will get you in trouble later on - these are considered a 
very bad antisocial behavior and an almost sure way to strip off of any Yocto 
Project Compatible status...

I'd suggest spending some time trying to find a way to do any and all 
downloads inside the do_fetch() task, which is the only one allowed to have 
network access.

In other words - do_configure() and do_compile() are definitely not the right 
places to do any network fetching...

-- 
Denys


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15752): 
https://lists.yoctoproject.org/g/meta-arago/message/15752
Mute This Topic: https://lists.yoctoproject.org/mt/110775616/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to