Source: docker.io
Source-Version: 1.8.3~ds1-2
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

--


Hello,
golang 1.5.1 his available for debian so, but docker.io fails to build on
ppc64el.

I found 2 problems : 

1. compilation problem with some flag :
---------
+++ go build -o bundles/1.8.3/dynbinary/dockerinit-1.8.3 -a -tags 'netgo 
static_build apparmor selinux daemon' -installsuffix netgo -ldflags '
    -w
    -linkmode external
    -extldflags "-static"
  ' ./dockerinit
# _/home/debian/docker.io-1.8.3~ds1/dockerinit
2015/12/01 15:15:39 cannot use -linkmode=external with -H linux
debian/rules:59: recipe for target 'override_dh_auto_build' failed
---------
 So I added a section similar to one already in hack/make.sh for windows
 that prevent to use -linkmode external in linux case.
 This may not be the best way as it was suppose to build as-is on linux.
 I tried to check on amd64, but I can't build because of missing dependency on
 golang-github-docker-notary-dev which requires golang-golang-x-crypto-dev
 which seems unavailable on sid...

2. A compilation error on ppc64el :
---------
+++ go build -o bundles/1.8.3/dynbinary/docker-1.8.3 -a -tags 'apparmor selinux 
daemon' -installsuffix netgo -ldflags '
    -w
    
  ' ./docker
# github.com/docker/libnetwork/drivers/bridge
.gopath/src/github.com/docker/libnetwork/drivers/bridge/netlink_deprecated_linux.go:108:
 cannot use ifrDataByte(hw[i]) (type int8) as type uint8 in assignment
debian/rules:59: recipe for target 'override_dh_auto_build' failed
---------
Looking for that I stumbled on https://github.com/docker/docker/issues/13856 .
I adapted the fix for docker 1.8 in debian.

The package built after that.

F.

Reply via email to