4

現在、Ubuntu 12.04 と jhbuild バージョン 3.12.0 および git バージョン 1.7.9.5 を使用しています。

以前に質問して解決しましたが、jhbuild を使用してビルドすると同じ問題 (同じ問題だと思います) が発生し、プロキシの背後にあるため、URL に git:// があるリポジトリを複製できません。 URL は http:// または https:// のいずれかである必要があります。クローン作成プロセスは jhbuild によって自動化されるため、次のようなエラーが発生します -

$ jhbuild build glib
W: Circular dependencies detected: glib -> gvfs -> glib
W: Circular dependencies detected: glib -> glib-networking -> glib
W: Circular dependencies detected: glib -> dconf -> glib
*** Checking out itstool *** [1/5]
*** Skipping itstool (package and dependencies not updated) *** [1/5]
*** Checking out yelp-xsl *** [2/5]
git clone git://git.gnome.org/yelp-xsl
Cloning into 'yelp-xsl'...
fatal: unable to connect to git.gnome.org:
git.gnome.org[0: 209.132.180.184]: errno=Connection timed out

*** Error during phase checkout of yelp-xsl: ########## Error running git clone git://git.gnome.org/yelp-xsl *** [2/5]

それに対する可能な解決策は何ですか?

4

2 に答える 2

0

ドキュメントは、git URL の代わりに HTTP URL を使用するように JHBuild をセットアップする方法を説明するブログ投稿にリンクしています。そこから、HTTP プロキシを使用できます。

基本的に、構成ファイルを設定して、リポジトリ URL を置き換えます。

repos['git.gnome.org'] = 'https://git.gnome.org/browse/'  
repos['git.freedesktop.org'] = 'http://anongit.freedesktop.org/git/'  
repos['wayland.freedesktop.org'] = 'http://anongit.freedesktop.org/git/wayland'  
repos['gstreamer.freedesktop.org'] = 'http://anongit.freedesktop.org/git/gstreamer'  
repos['pulseaudio.freedesktop.org'] = 'http://anongit.freedesktop.org/git/pulseaudio'  
repos['telepathy.freedesktop.org'] = 'http://anongit.freedesktop.org/git/telepathy'  
repos['modemmanager.freedesktop.org'] = 'http://anongit.freedesktop.org/git/ModemManager'  
repos['git.savannah.nongnu.org'] = 'http://git.savannah.gnu.org/r/'  
repos['github.com'] = 'https://github.com/'

同様の主題間のリンクを適切に維持するために、この回答にもリンクさせてください。

于 2016-07-19T09:54:17.057 に答える