svn commit: r400853 - in head/sysutils/ipfs-go: . files

William Grzybowski wg at FreeBSD.org
Thu Nov 5 13:56:21 UTC 2015


Author: wg
Date: Thu Nov  5 13:56:20 2015
New Revision: 400853
URL: https://svnweb.freebsd.org/changeset/ports/400853

Log:
  sysutils/ipfs-go: fix build for i386
  
  PR:		203991
  Submitted by:	amdmi3

Added:
  head/sysutils/ipfs-go/files/extra-patch-32bit   (contents, props changed)
Modified:
  head/sysutils/ipfs-go/Makefile

Modified: head/sysutils/ipfs-go/Makefile
==============================================================================
--- head/sysutils/ipfs-go/Makefile	Thu Nov  5 13:25:47 2015	(r400852)
+++ head/sysutils/ipfs-go/Makefile	Thu Nov  5 13:56:20 2015	(r400853)
@@ -16,9 +16,6 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	ipfs
 GH_PROJECT=	go-ipfs
 
-ONLY_FOR_ARCHS=	amd64
-ONLY_FOR_ARCHS_REASON=	Does not build on i386 due to a dependency
-
 MAKE_ENV+=	GOPATH=${WRKSRC}
 
 PLIST_FILES=	bin/${PORTNAME}
@@ -27,6 +24,12 @@ USE_RC_SUBR=	${PORTNAME}
 
 STRIP=		# stripping can break go binaries
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386
+EXTRA_PATCHES+=	${FILESDIR}/extra-patch-32bit
+.endif
+
 # Prepare for possible extra modules in future
 post-extract:
 	@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
@@ -41,4 +44,4 @@ do-build:
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/ipfs/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Added: head/sysutils/ipfs-go/files/extra-patch-32bit
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/ipfs-go/files/extra-patch-32bit	Thu Nov  5 13:56:20 2015	(r400853)
@@ -0,0 +1,11 @@
+--- src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-reuseport/poll/poll_bsd.go.orig	2015-08-02 14:00:34 UTC
++++ src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-reuseport/poll/poll_bsd.go
+@@ -21,7 +21,7 @@ func New(fd int) (p *Poller, err error) 
+ 	}
+ 
+ 	p.event = syscall.Kevent_t{
+-		Ident:  uint64(fd),
++		Ident:  uint32(fd),
+ 		Filter: syscall.EVFILT_WRITE,
+ 		Flags:  syscall.EV_ADD | syscall.EV_ENABLE | syscall.EV_ONESHOT,
+ 		Fflags: 0,


More information about the svn-ports-all mailing list