2015-10-06 185 views
0

我试图在archlinux(i686)上构建docker-git软件包。无法使用makepkg构建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... 

我是不是忘了什么东西?我不知道错误的含义。

我也试过make all的src /泊坞窗子目录建议,但我得到:

$ 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值,之前它是无效的。

回答

0

尝试建立与此PKGBUILD:https://gist.github.com/grimsock/8edc7c4f38800f3f992f

你已经安装了所有的依赖条件?特别是从makedepends数组?

+0

不幸的是,我得到了与此相同的错误。 :/你尝试了什么? 我在维护人员的github上发布了一个问题。 – vmonteco

+0

这是我打开的问题: https://github.com/ido/packages-archlinux/issues/69 – vmonteco

+0

更新md5sums后,我安装了它没有问题。我正在使用64位arch linux,也许架构是问题。 – grimsock