mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
moby: fix docker-proxy issue
Resolves https://github.com/void-linux/void-packages/issues/54486
This commit is contained in:
parent
7750dad552
commit
76c36dd57a
1 changed files with 16 additions and 32 deletions
|
@ -2,13 +2,8 @@
|
|||
# should be kept in sync with docker-cli
|
||||
pkgname=moby
|
||||
version=28.0.0
|
||||
revision=1
|
||||
# libnetwork commit is mentioned in vendor.conf
|
||||
_libnetwork_commit=05b93e0d3a95952f70c113b0bc5bdb538d7afdd7
|
||||
create_wrksrc=yes
|
||||
build_style=go
|
||||
go_import_path="github.com/docker/docker"
|
||||
hostmakedepends="pkg-config"
|
||||
revision=2
|
||||
hostmakedepends="go pkg-config"
|
||||
makedepends="libbtrfs-devel device-mapper-devel libseccomp-devel"
|
||||
depends="containerd iptables xz"
|
||||
short_desc="Container engine for the Docker ecosystem"
|
||||
|
@ -16,43 +11,32 @@ maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|||
license="Apache-2.0"
|
||||
homepage="https://www.docker.com"
|
||||
changelog="https://github.com/moby/moby/releases"
|
||||
distfiles="https://github.com/moby/moby/archive/v${version}.tar.gz>moby-$version.tar.gz
|
||||
https://github.com/moby/libnetwork/archive/$_libnetwork_commit.tar.gz>libnetwork-$_libnetwork_commit.tar.gz"
|
||||
distfiles="https://github.com/moby/moby/archive/v${version}.tar.gz"
|
||||
checksum="89e26ecb0c13ef7037305811b0eb6dd4c70741c34ec3428d4396d68b03deb641
|
||||
5c5e3aa7599e85036438a65016796aa11df4afb44d13b5927dcfb0ec5947a86b"
|
||||
system_groups="docker"
|
||||
make_check=no
|
||||
|
||||
_moby_builddir="moby-$version"
|
||||
_libnetwork_builddir="libnetwork-$_libnetwork_commit"
|
||||
case $XBPS_TARGET_MACHINE in
|
||||
i686*) broken="libnetwork/drivers/bridge/port_mapping_linux.go:679:45: undefined\: syscall.SYS_SETSOCKOPT";;
|
||||
esac
|
||||
|
||||
case $XBPS_TARGET_MACHINE in
|
||||
i686*) broken="libnetwork/drivers/bridge/port_mapping_linux.go:679:45: undefined: syscall.SYS_SETSOCKOPT";;
|
||||
esac
|
||||
|
||||
do_build() {
|
||||
export AUTO_GOPATH=1
|
||||
export DOCKER_GITCOMMIT="tag v${version}"
|
||||
export DOCKER_BUILDTAGS="seccomp"
|
||||
export DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||
export AUTO_GOPATH=1
|
||||
export DOCKER_GITCOMMIT="tag v${version}"
|
||||
export DOCKER_BUILDTAGS="seccomp"
|
||||
export DISABLE_WARN_OUTSIDE_CONTAINER=1
|
||||
|
||||
mkdir -p "$wrksrc/$_moby_builddir"
|
||||
mkdir -p "$wrksrc/$_libnetwork_builddir"
|
||||
|
||||
msg_normal "Building docker-proxy (libnetwork)\n"
|
||||
cd "$wrksrc/$_libnetwork_builddir"
|
||||
mkdir -p src/github.com/docker/
|
||||
ln -sf "$wrksrc/$_libnetwork_builddir" src/github.com/docker/libnetwork
|
||||
GOPATH="$PWD" go build -v -ldflags="-linkmode=external" -o docker-proxy github.com/docker/libnetwork/cmd/proxy
|
||||
|
||||
msg_normal "Building docker-engine (moby)\n"
|
||||
cd "$wrksrc/$_moby_builddir"
|
||||
mkdir -p src/github.com/docker/
|
||||
ln -sf "$wrksrc/$_moby_builddir" src/github.com/docker/docker
|
||||
GOPATH="$PWD" VERSION="$version" hack/make.sh dynbinary
|
||||
GOPATH="$PWD" VERSION="$version" hack/make.sh dynbinary
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin $_libnetwork_builddir/docker-proxy
|
||||
vbin $_moby_builddir/bundles/dynbinary-daemon/dockerd
|
||||
vsv docker
|
||||
vbin bundles/dynbinary-daemon/dockerd
|
||||
vbin bundles/dynbinary-daemon/docker-proxy
|
||||
vsv docker
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue