svn commit: r460380 - in head/net/bosh-bootloader: . files

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Tue Jan 30 10:54:49 UTC 2018


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 at 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)
+ }


More information about the svn-ports-all mailing list