Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[portage] modifier une variable de manière globale (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
letchideslandes
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 197
Location: Landes France

PostPosted: Mon Sep 22, 2008 2:41 pm    Post subject: [portage] modifier une variable de manière globale (résolu) Reply with quote

Bonjour

Je suis derrière un tunnel ssh, et j'utilise portage en le socksifiant avec tsocks.
Seulement, ça ne marche pas avec les ebuilds contenant un repo svn.
Pour cela, j'ajoute à l'ebuild la ligne :
Code:
ESVN_FETCH_CMD="tsocks ${ESVN_FETCH_CMD}"


Ca fonctionne bien mais y-a-t-il une solution globale pour appliquer à tous les ebuils utilisant des repos svn ?

merci


Last edited by letchideslandes on Tue Sep 23, 2008 8:26 am; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Mon Sep 22, 2008 2:45 pm    Post subject: Reply with quote

le mettre dans /etc/make.conf ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
letchideslandes
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 197
Location: Landes France

PostPosted: Tue Sep 23, 2008 6:24 am    Post subject: Reply with quote

XavierMiller wrote:
le mettre dans /etc/make.conf ?


J'ai essayé mais ça ne fonctionne pas, je cherche toujours ...
Back to top
View user's profile Send private message
Bapt
Veteran
Veteran


Joined: 14 Apr 2003
Posts: 1152
Location: Paris

PostPosted: Tue Sep 23, 2008 6:31 am    Post subject: Reply with quote

met ça
Code:
export ESVN_FETCH_CMD="tsocks ${ESVN_FETCH_CMD}"
dans /etc/portage/bashrc pour voir, mais ça devrait être sa place je pense.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1902
Location: 127.0.0.1

PostPosted: Tue Sep 23, 2008 6:45 am    Post subject: Reply with quote

Quote:
Seulement, ça ne marche pas avec les ebuilds contenant un repo svn.

En modifiant légèrement l'eclass de subversion via un overlay ?
Code:
$ grep ESVN_FETCH_CMD eclass/subversion.eclass
# @ECLASS-VARIABLE: ESVN_FETCH_CMD
ESVN_FETCH_CMD="svn checkout"
      debug-print "${FUNCNAME}: ${ESVN_FETCH_CMD} ${options} ${repo_uri}"
      ${ESVN_FETCH_CMD} ${options} "${repo_uri}" || die "${ESVN}: can't fetch to ${wc_path} from ${repo_uri}."
Back to top
View user's profile Send private message
letchideslandes
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 197
Location: Landes France

PostPosted: Tue Sep 23, 2008 8:25 am    Post subject: Reply with quote

netfab wrote:
Quote:
Seulement, ça ne marche pas avec les ebuilds contenant un repo svn.

En modifiant légèrement l'eclass de subversion via un overlay ?
Code:
$ grep ESVN_FETCH_CMD eclass/subversion.eclass
# @ECLASS-VARIABLE: ESVN_FETCH_CMD
ESVN_FETCH_CMD="svn checkout"
      debug-print "${FUNCNAME}: ${ESVN_FETCH_CMD} ${options} ${repo_uri}"
      ${ESVN_FETCH_CMD} ${options} "${repo_uri}" || die "${ESVN}: can't fetch to ${wc_path} from ${repo_uri}."


Bien, la surcharge de l'eclass dans mon overlay local semble fonctionner. Merci
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum