From: Laurentiu Palcu <laurentiu.palcu@intel.com>
To: Roseville House <championoaks@gmail.com>
Cc: poky@yoctoproject.org
Subject: Re: build issues when behind a proxy
Date: Tue, 21 Jan 2014 11:48:13 +0200 [thread overview]
Message-ID: <20140121094813.GF7512@lpalcu-linux> (raw)
In-Reply-To: <CAOqG5mw2znFmrSW72P7Dt+twjmTcfwh8h6hrV9x1-OqAMWO0_A@mail.gmail.com>
On Tue, Jan 21, 2014 at 12:47:21AM -0800, Roseville House wrote:
> When I commented out socat in git-proxy I made some progress but still
> failed on following URLs
>
>
> ERROR: Function failed: Fetcher failure for URL:
> 'git://git.yoctoproject.org/opkg-utils'. Unable to fetch URL from any
> source.
> ERROR: Function failed: Fetcher failure for URL:
> 'git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1'.
> Unable to fetch URL from any source.
> ERROR: Function failed: Fetcher failure for URL:
> 'git://git.yoctoproject.org/yocto-kernel-tools.git'. Unable to fetch
> URL from any source.
> ERROR: Function failed: Fetcher failure for URL:
> 'git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'. Unable to
> fetch URL from any source.
> WARNING: Failed to fetch URL
> git://git.yoctoproject.org/linux-yocto-3.10.git;bareclone=1;branch=standard/common-pc/base,meta;name=machine,meta,
> attempting MIRRORS if available
Does 'git clone git://git.yoctoproject.org/linux-yocto-3.10.git' work
in terminal?
>
> On Tue, Jan 21, 2014 at 12:34 AM, Roseville House
> <championoaks@gmail.com> wrote:
> > Thanks a lot for your reply :)
> > I followed the instructions but still stuck
> >
> > user@user:~/yocto/poky/build$ echo $GIT_PROXY_COMMAND
> > /usr/local/bin/git-proxy
> > user@user:~/yocto/poky/build$ cat /usr/local/bin/git-proxy
> > #!/bin/bash
> > PROXY=proxy.company.com
> > PORT=901
> > exec socat STDIO SOCKS4:$proxy:$1:$2
> > case $1 in
> > # list git servers here that you do not want to use
> > # the proxy with, separated by a pipe character '|' as below:
> >
> > review.tizen.org)
> > METHOD="-X connect"
> > ;;
> > *)
> > METHOD="-X 5 -x ${PROXY}:${PORT}"
> > #The line above is applicable to Ubuntu and openSUSE.
> > #For Fedora, use the variation below since it only supports socks v4.
> > #METHOD="-X 4 -x ${PROXY}:${PORT}"
> > ;;
> > esac
> >
> > nc $METHOD $*
> > user@user:~/yocto/poky/build$ cat ~/.gitconfig
> > [http]
> > proxy = http://proxy.company.com:901
> > [core]
> > gitProxy = git-proxy
> >
It looks like you have an interesting combination of socat and nc in the
same proxy script, plus the GIT_PROXY_COMMAND in your environment and
proxy setting in ~/.gitconfig. :) GIT_PROXY_COMMAND normally overrides
these settings.
Also, it looks like the socat solution has a small bug: s/proxy/PROXY
I suggest you try the following:
* remove the proxy settings in ~/.gitconfig;
* set the proxy script to the example below (I'm using this one);
* put GIT_PROXY_COMMAND in your ~/.bashrc
Here is how my proxy script looks, maybe it helps:
******************
#!/bin/sh
case $1 in
*.company.com|192.168.*|127.0.*|localhost)
METHOD="-X connect"
;;
*)
METHOD="-X 5 -x proxy.company.com:8080"
;;
esac
/bin/nc $METHOD $*
******************
Laurentiu
next prev parent reply other threads:[~2014-01-21 9:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 8:02 build issues when behind a proxy Roseville House
2014-01-21 8:11 ` Laurentiu Palcu
[not found] ` <CAOqG5myC7zb_Bo1SrcDwULKkMOHYGJTX-tcXN-8bcczVbuQyYA@mail.gmail.com>
2014-01-21 8:47 ` Roseville House
2014-01-21 9:48 ` Laurentiu Palcu [this message]
2014-01-21 9:52 ` Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140121094813.GF7512@lpalcu-linux \
--to=laurentiu.palcu@intel.com \
--cc=championoaks@gmail.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.