Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2018 10:54:48 +0000 (UTC)
From:      =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <dumbbell@FreeBSD.org>
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
Message-ID:  <201801301054.w0UAsmNh099148@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801301054.w0UAsmNh099148>