From 1d822b795da44ff931bf7b03a43805f976fd4292 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Tue, 12 Mar 2019 17:06:08 +0000 Subject: [PATCH] - Fix build with go 1.12 --- sysutils/beats/Makefile | 2 -- ...endor_github.com_docker_docker_pkg_system_mknod.go | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 sysutils/beats/files/patch-vendor_github.com_docker_docker_pkg_system_mknod.go diff --git a/sysutils/beats/Makefile b/sysutils/beats/Makefile index 1a7b1509514f..a59e1060db07 100644 --- a/sysutils/beats/Makefile +++ b/sysutils/beats/Makefile @@ -12,8 +12,6 @@ COMMENT= Collect logs locally and send to remote logstash LICENSE= APACHE20 -BROKEN_i386= fails to build - USE_GITHUB= yes GH_ACCOUNT= elastic diff --git a/sysutils/beats/files/patch-vendor_github.com_docker_docker_pkg_system_mknod.go b/sysutils/beats/files/patch-vendor_github.com_docker_docker_pkg_system_mknod.go new file mode 100644 index 000000000000..a14cd42cb584 --- /dev/null +++ b/sysutils/beats/files/patch-vendor_github.com_docker_docker_pkg_system_mknod.go @@ -0,0 +1,11 @@ +--- vendor/github.com/docker/docker/pkg/system/mknod.go.orig 2019-03-12 15:33:33 UTC ++++ vendor/github.com/docker/docker/pkg/system/mknod.go +@@ -9,7 +9,7 @@ import ( + // Mknod creates a filesystem node (file, device special file or named pipe) named path + // with attributes specified by mode and dev. + func Mknod(path string, mode uint32, dev int) error { +- return syscall.Mknod(path, mode, dev) ++ return syscall.Mknod(path, mode, uint64(dev)) + } + + // Mkdev is used to build the value of linux devices (in /dev/) which specifies major