无法使用makepkg构建docker包(docker-git)

时间:2015-10-06 21:22:24

标签: docker makefile archlinux building

我正在尝试在我的archlinux(i686)上构建 docker-git 包。

我从https://aur.archlinux.org/cgit/aur.git/snapshot/docker-git.tar.gz下载该软件包,解压缩并运行makepkg

但我得到以下输出:

$ makepkg
==> Making package: docker-git 1:1.9.0.dev.18703.670c488-1 (Tue Oct  6 22:27:42 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating docker git repo...
Fetching origin
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 5), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/docker/docker
 + 382d383...29cbec5 refs/pull/16758/merge -> refs/pull/16758/merge  (forced update)
  -> Found docker.service
  -> Found docker.install
  -> Found docker.conf
==> Validating source files with md5sums...
    docker ... Skipped
    docker.service ... Passed
    docker.install ... Passed
    docker.conf ... Passed
==> Extracting sources...
  -> Creating working copy of docker git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
#   officially supported.
#
# Try this instead: make all
#

bundles/1.9.0-dev already exists. Removing.

---> Making bundle: dynbinary (in bundles/1.9.0-dev/dynbinary)
Created binary: bundles/1.9.0-dev/dynbinary/dockerinit-1.9.0-dev
Building: bundles/1.9.0-dev/dynbinary/docker-1.9.0-dev
# _/home/vmonteco/Downloads/docker-git/src/docker/docker
/usr/lib/go/pkg/tool/linux_386/link: running gcc failed: exit status 1
/tmp/go-link-183610645/000007.o: In function `__udivdi3':
(.text+0x8ebc0): multiple definition of `__udivdi3'
/tmp/go-link-183610645/000003.o:(.text+0x740): first defined here
collect2: error: ld returned 1 exit status

==> ERROR: A failure occurred in build().
    Aborting...

我忘了什么吗?我不知道错误的含义。

我也按照 src / docker 子目录中的建议尝试make all,但我得到了:

$ make all
docker build -t "docker-dev:makepkg" .
/bin/sh: docker: command not found
Makefile:74: recipe for target 'build' failed
make: *** [build] Error 127

注意:我还必须替换 PKGBUILD 文件中的 docker.service md5总和,之前它无效。

1 个答案:

答案 0 :(得分:0)

尝试使用此PKGBUILD构建:https://gist.github.com/grimsock/8edc7c4f38800f3f992f

您是否安装了所有家属?特别是来自makedepends array?