Re: [yocto] behind corporate proxy

2018-02-21 Thread Andre McCurdy
On Wed, Feb 21, 2018 at 5:11 AM, Staffa, Christian AVL/DE
 wrote:
> Hi all
>
> I have got a problem with proxy settings and the yocto build system.
>
> I already read the ‘Behind a Proxy Guide’ and generally it works.
>
> But when it comes to build the linux-yocto package the buildsystem tries to
> clone a repo with the git:// scheme.
>
> This results in connecting to git.yoctoproject.org:9418 but this port is
> blocked by the corporate proxy and causes the build to fail.
>
> Had anyone the same problem? Is there a way to fetch the repo via http(s)?

Yes, many people have the same problem.

If you can update to OE 2.3 or above then this commit should provide a
fallback to fetch the repo using https:

  
http://git.openembedded.org/openembedded-core/commit/?id=abb8895d5b42a5dc171360a261a2652acd14ee7e

If you can't update, that patch should be an easy backport to older releases.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] behind corporate proxy

2018-02-21 Thread philippe gislard
2018-02-21 14:11 GMT+01:00 Staffa, Christian AVL/DE :
> Hi all
>
>
>
> I have got a problem with proxy settings and the yocto build system.
>
>
>
> I already read the ‘Behind a Proxy Guide’ and generally it works.
>
> But when it comes to build the linux-yocto package the buildsystem tries to
> clone a repo with the git:// scheme.
>
> This results in connecting to git.yoctoproject.org:9418 but this port is
> blocked by the corporate proxy and causes the build to fail.
>
>
>
> Had anyone the same problem? Is there a way to fetch the repo via http(s)?
>
>
>
> Regards
>
> Chris
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

Hi Chris,

I had the same kind of problem.
I fixed it this way (not sure it's the best solution):
===
$ cat ./meta/recipes-bsp/firmware-imx_%.bbappend
SRC_URI_remove =
"git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git"
SRC_URI_append =
"git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git;protocole=http"
===

Note: the git server must support the http (or maybe https) protocole.


-- 
Philippe GISLARD
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] behind corporate proxy

2018-02-21 Thread Staffa, Christian AVL/DE
Hi all

I have got a problem with proxy settings and the yocto build system.

I already read the 'Behind a Proxy Guide' and generally it works.
But when it comes to build the linux-yocto package the buildsystem tries to 
clone a repo with the git:// scheme.
This results in connecting to git.yoctoproject.org:9418 but this port is 
blocked by the corporate proxy and causes the build to fail.

Had anyone the same problem? Is there a way to fetch the repo via http(s)?

Regards
Chris
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto