Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406639 - git-2.eclass through Socks proxy
Summary: git-2.eclass through Socks proxy
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Donnie Berkholz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 18:54 UTC by Bhaavan Merchant
Modified: 2014-04-30 14:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info vlc-9999 output (info,6.26 KB, text/plain)
2012-03-02 18:54 UTC, Bhaavan Merchant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bhaavan Merchant 2012-03-02 18:54:55 UTC
Created attachment 304019 [details]
emerge --info vlc-9999 output

I am behind a SOCKS proxy. I can connect to this either using 10.1.2.13:1080 as socks proxy address or, by doing ssh -D 9999 bha1@10.1.2.13 . Subsequently I set my SOCKS proxy to 127.0.0.1:9999.

After this is done, I am able to access net through firefox entering the above mentioned ips.

I set that SOCKS proxy in gnome environment settings, however, emerge was uanable to pick it up.

Also, i used a polipo http proxy on my localhost, where I set socksParentProxy as 10.1.2.13:1080. This created a http proxy on my localhost:8123.

Now after doing this, I am able to do emerge --sync. and also emerge -av git-sources (which pull kernel through regular git)

However, the problem is this:
I am unable to emerge the 9999 packages which pull code through egit.
egit doesnt listen to regular proxy settings.


While i am able to do regular git clone request, egit on the same envirronment fails.

Do let me know if i can post any files pertaining to my environment configuration.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 12:58:25 UTC
Not really sure whether the ebuild or portage should arrange for this.
Comment 2 Bhaavan Merchant 2012-03-05 13:08:24 UTC
This could be an "egit" bug i guess. Since all ebuild use egit, it might nt be possible to accomodate change in individual ebuilds.
Comment 3 Zac Medico gentoo-dev 2012-03-05 17:00:35 UTC
(In reply to comment #0)
> However, the problem is this:
> I am unable to emerge the 9999 packages which pull code through egit.
> egit doesnt listen to regular proxy settings.

I guess emerge calls git-2.eclass for this, so assigning to relevant maintainers.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-03-05 18:02:31 UTC
AFAICS git doesn't support SOCKS. You can either:

1) use http proxy forwarding requests over SOCKS,
2) use GIT_PROXY_COMMAND and an external tool (I guess socat may have such a capability) to forward requests over SOCKS [1],
3) request including SOCKS support in git upstream.

[1]:http://www.patthoyts.tk/blog/using-git-with-socks-proxy.html