From owner-svn-ports-all@freebsd.org Tue Jan 30 10:54:49 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5588CEC159D; Tue, 30 Jan 2018 10:54:49 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00D348707D; Tue, 30 Jan 2018 10:54:49 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E905F164A9; Tue, 30 Jan 2018 10:54:48 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0UAsmRn099150; Tue, 30 Jan 2018 10:54:48 GMT (envelope-from dumbbell@FreeBSD.org) Received: (from dumbbell@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0UAsmNh099148; Tue, 30 Jan 2018 10:54:48 GMT (envelope-from dumbbell@FreeBSD.org) Message-Id: <201801301054.w0UAsmNh099148@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dumbbell set sender to dumbbell@FreeBSD.org using -f From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= Date: Tue, 30 Jan 2018 10:54:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460380 - in head/net/bosh-bootloader: . files X-SVN-Group: ports-head X-SVN-Commit-Author: dumbbell X-SVN-Commit-Paths: in head/net/bosh-bootloader: . files X-SVN-Commit-Revision: 460380 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2018 10:54:49 -0000 Author: dumbbell Date: Tue Jan 30 10:54:48 2018 New Revision: 460380 URL: https://svnweb.freebsd.org/changeset/ports/460380 Log: net/bosh-bootloader: Fix build on 32-bit platforms The build was failing with the following error: bosh/ip.go:55:16: constant 4278190080 overflows int Sponsored by: Pivotal Added: head/net/bosh-bootloader/files/ head/net/bosh-bootloader/files/patch-bosh_ip.go (contents, props changed) Modified: head/net/bosh-bootloader/Makefile Modified: head/net/bosh-bootloader/Makefile ============================================================================== --- head/net/bosh-bootloader/Makefile Tue Jan 30 10:50:22 2018 (r460379) +++ head/net/bosh-bootloader/Makefile Tue Jan 30 10:54:48 2018 (r460380) @@ -2,6 +2,7 @@ PORTNAME= bosh-bootloader PORTVERSION= 6.0.0 +PORTREVISION= 1 CATEGORIES= net sysutils MAINTAINER= dumbbell@FreeBSD.org Added: head/net/bosh-bootloader/files/patch-bosh_ip.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/bosh-bootloader/files/patch-bosh_ip.go Tue Jan 30 10:54:48 2018 (r460380) @@ -0,0 +1,20 @@ +This patch fixes the build on 32-bit platforms. It was failing with the +following error: +bosh/ip.go:55:16: constant 4278190080 overflows int + +--- bosh/ip.go.orig 2018-01-20 21:01:35 UTC ++++ bosh/ip.go +@@ -52,9 +52,9 @@ func (i IP) Subtract(offset int) IP { + } + + func (i IP) String() string { +- first := i.ip & 0xff000000 >> 24 +- second := i.ip & 0xff0000 >> 16 +- third := i.ip & 0xff00 >> 8 +- fourth := i.ip & 0xff ++ first := uint32(i.ip) & 0xff000000 >> 24 ++ second := uint32(i.ip) & 0xff0000 >> 16 ++ third := uint32(i.ip) & 0xff00 >> 8 ++ fourth := uint32(i.ip) & 0xff + return fmt.Sprintf("%v.%v.%v.%v", first, second, third, fourth) + }