You are not logged in.

#1 2010-09-10 12:18:09

bananaoomarang
Member
Registered: 2009-10-29
Posts: 180

makepkg git pulling behind ntlm proxy

Hi I have recently gotten pacman to work generally behind an ntlm proxy using wget. However when using clyde or bauerbill to build packages from the AUR I run into problems. This appears to be because the problamatic packages don't seem to be able to connect to git behind the proxy. I would like to automatically use libntlm for everything. It appears kde4 does this nativly but wget fails and spits out ISA auth errors so I use cntlm (like ntlmaps). I think this might be because git is used in a fakeroot enviroment and the http_proxy and ftp_proxy variables don't work there. Is there an easy way to set these proxy variable GLOBALLY. Throughout sudo and fakeroot as well. I use zsh if that helps.

Thanks,

bananaoomarang

Last edited by bananaoomarang (2010-09-13 20:37:26)

Offline

#2 2010-09-11 01:23:29

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: makepkg git pulling behind ntlm proxy

Does git work outside the fakeroot? You may want to look at /etc/profile.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-09-11 15:15:26

bananaoomarang
Member
Registered: 2009-10-29
Posts: 180

Re: makepkg git pulling behind ntlm proxy

Actually, it doesn't appear to work outside fakeroot either.

$export http_proxy=http://localhost:7070

$export ftp_proxy=http://localhost:7070                     

$git clone git://github.com/Kiwi/clyde.git clyde-git                                              
Cloning into clyde-git...
github.com[0: 207.97.227.239]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

and cntlm in verbose mode doesn't seem to report that anything is accessing it. I just added the two export lines to /etc/profile. Here it is

# 
# /etc/profile
#
# This file is intended to be used for ALL common
# Bourne-compatible shells. Shell specifics should be
# handled in /etc/profile.$SHELL where $SHELL is the name
# of the binary being run (discounting symlinks)
#
# Sections taken from SuSe's /etc/profile
# Note the explicit use of 'test' to cover all bases
#  and potentially incompatible shells

#Determine our shell without using $SHELL, which may lie
shell="sh"
if test -f /proc/mounts; then
   case $(/bin/ls -l /proc/$$/exe) in
        *bash) shell=bash ;;
        *dash) shell=dash ;;
        *ash)  shell=ash ;;
        *ksh)  shell=ksh ;;
        *zsh)  shell=zsh ;;
    esac
fi

# Load shell specific profile settings
test -f "/etc/profile.$shell" &&  . "/etc/profile.$shell"

#Set our umask
umask 022

# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH

# Export default pkg-config path
PKG_CONFIG_PATH="/usr/lib/pkgconfig"
export PKG_CONFIG_PATH

# Some readline stuff that is fairly common
HISTSIZE=1000
HISTCONTROL="erasedups"

INPUTRC="/etc/inputrc"
LESS="-R"

export HISTSIZE HISTCONTROL INPUTRC LESS

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
        test -x $profile && . $profile
    done
    unset profile
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH

export http_proxy=http://localhost:7070
export ftp_proxy=http://localhost:7070

I ran:

git config --global http.proxy localhost:7070   

still no joy.

EDIT: It works if I replace git:// with http://

EDIT: but only for some urls

EDITL: Dammit I think I found the cause,

2010/09/13 21:43:49 socat[6082] E CONNECT anongit.compiz-fusion.org:9418: Blocked by Websense                                   
fatal: The remote end hung up unexpectedly     

I think that's unsolvable.

Last edited by bananaoomarang (2010-09-13 20:45:31)

Offline

Board footer

Powered by FluxBB