<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 9, 2014 at 3:18 AM, mancha <span dir="ltr"><<a href="mailto:mancha1@hush.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=mancha1@hush.com&cc=&bcc=&su=&body=','_blank');return false;">mancha1@hush.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 08 Feb 2014 20:07:21 +0000 "Ivan Stefanic" wrote:<br>
>I am running Slackware64 14.1. I also had problems building google-<br>
>go-lang,<br>
>same as Antonio Hernández Blas in another thread, but commenting<br>
>out<br>
>'set -e' made it build. I don't know if this caused problems with<br>
>docker<br>
>but that's how my build differs from what it should be, and google-<br>
>go-lang is<br>
>a build-time dependency for docker.<br>
><br>
>docker.Slackbuild output:<br>
><br>
>chmod: cannot operate on dangling symlink<br>
>'./utils/testdata/fs/a/d'<br>
>chmod: cannot operate on dangling symlink<br>
>'./utils/testdata/fs/a/f'<br>
>patching file graphdriver/btrfs/btrfs.go<br>
># WARNING! I don't seem to be running in the Docker container.<br>
># The result of this command might be an incorrect build, and will<br>
>not be<br>
>#   officially supported.<br>
>#<br>
># Try this instead: make all<br>
>#<br>
><br>
>---> Making bundle: dynbinary (in bundles/0.8.0/dynbinary)<br>
>Created binary: /tmp/SBo/docker-<br>
>0.8.0/bundles/0.8.0/dynbinary/dockerinit-0.8.0<br>
># <a href="http://github.com/dotcloud/docker/graphdriver/btrfs" target="_blank">github.com/dotcloud/docker/graphdriver/btrfs</a><br>
<div class="">>../package-<br>
>docker/usr/share/gocode/src/<a href="http://github.com/dotcloud/docker/graphdriver/" target="_blank">github.com/dotcloud/docker/graphdriver/</a><br>
>btrfs/btrfs.go:8:25: fatal error: btrfs/ioctl.h: No such file or<br>
>directory<br>
> #include <btrfs/ioctl.h><br>
>                         ^<br>
>compilation terminated.<br>
><br>
>End output.<br>
><br>
>Any ideas?<br>
><br>
</div>>--<br>
>Ivan Stefanic <<a href="mailto:stefanicivan@gmail.com" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=stefanicivan@gmail.com&cc=&bcc=&su=&body=','_blank');return false;">stefanicivan@gmail.com</a>><br>

<br>
Hi Vincent.<br>
<br>
On x86_64 the docker build process uses btrfs.go from $PKG<br>
but that copy is made prior to applying the btrfs reversion<br>
fix - triggering Ivan's build issue above.<br>
<br>
I've re-ordered things in docker.Slackbuild so source files<br>
get copied to $PKG post-patch (I think we want that anyways,<br>
regardless of build issues, right?).<br>
<br>
After this change it builds without errors on x86_64 but I<br>
don't use docker so I can't confirm what gets built works.<br>
<br>
Willy didn't have these issues when building on 32-bit x86<br>
so it seems there it uses btrfs.go from /tmp/SBo/docker-0.8.0.<br>
Why 32-bit and 64-bit builds differ? No clue. Ideas?<br>
<span class="HOEnZb"><font color="#888888"><br>
--mancha</font></span></blockquote><div><br></div><div>Ah, good catch. It built fine for me on my x86_64 machine. Regardless, it is a good change to have it reordered like you have.</div><div><br></div><div>vb </div></div>
</div></div>