How to build golang-src when it depends on golang-1.6-src (which depends on golang-src) ¯\_(ツ)_/¯

xuanbao · · 528 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Rebuilding <a href="https://packages.debian.org/jessie-backports/golang-1.6-src" rel="nofollow">golang-1.6-src/golang-1.6-go</a> for SteamOS, and I have many of the prereqs already built (go has a lot of individual packages for, reasons?). I am at a rock and a hard place. The build requires golang-src/golang-go, which I have, but those in turn depend on golang-1.6-src/golang-1.6-go, which I am building. I don&#39;t see in debian/rules or control where a binary-arch or build profile line would bootstrap this process (which I have done with Qt5 in the past). A catch-22, by what I can see. Is there any way to build this using sbuild/pbuilder without just installing those on a local system and building without pbuilder/sbuild?</p> <pre><code> golang-src : Depends: golang-1.6-src which is a virtual package. golang-go : Depends: golang-1.6-go which is a virtual package. </code></pre> <ul> <li><a href="http://packages.libregeek.org/steamos-tools/pool/main/g/" rel="nofollow">existing packages</a></li> <li><a href="http://sprunge.us/EPPR" rel="nofollow">build log</a></li> </ul> <hr/>**评论:**<br/><br/>mcandre: <pre><p>If you just want Go, gvm is a relatively painless way to set it up. If you specifically want to build Go from source, you&#39;ll want to bootstrap from go 1.4, which was written in C, and offers official binaries for major OSs</p></pre>ProfessorKaos64: <pre><p>That was my backup, to download golang-1.6-src and golang-1.6-go .debs into my package pool to build with. Thanks fr the advice.</p></pre>LimEJET: <pre><p>Isn&#39;t SteamOS just Debian?</p> <p>You can enable the normal Debian repos using <a href="https://steamcommunity.com/groups/steamuniverse/discussions/1/648814396114274132/" rel="nofollow">this guide</a>, and then you can just get Go using apt. I&#39;d recommend using debian.org rather than leaseweb though.</p></pre>epiris: <pre><p>I imagine you have alteady visited: <a href="https://golang.org/doc/install/source" rel="nofollow">https://golang.org/doc/install/source</a> but that is what I used to build Go from src for the first time. Since then I&#39;ve picked up some scripts and make files from <a href="https://go.googlesource.com/build/+/master" rel="nofollow">https://go.googlesource.com/build/+/master</a> to build the latest Go versions. If you are stuck at a specific point let me know.</p></pre>ProfessorKaos64: <pre><p>I just used the Debian 8 backports package to build the set of packages. Seemed to work fine. Kinda stumped building docker (local or pbuilder), but that&#39;s outside the scope of this subreddit :/</p> <p><a href="http://sprunge.us/fLaa" rel="nofollow">http://sprunge.us/fLaa</a></p></pre>hobbified: <pre><p>Yes, Go needs Go to build. There&#39;s no catch-22, you can break the loop by either A) installing the binary package, or B) cross-building on another machine. B would be your choice if you were building on some new and exciting platform, which SteamOS is definitely not, so A works fine.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

528 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传