Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 09:00:01 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r392614 - head/sysutils/cloudabi-utils
Message-ID:  <201507210900.t6L901ZY048549@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed (src committer)
Date: Tue Jul 21 09:00:00 2015
New Revision: 392614
URL: https://svnweb.freebsd.org/changeset/ports/392614

Log:
  Make this port build properly.
  
  Summary:
  It looks like we forgot to add '${SETENV} ${MAKE_ENV}' to the build
  script. Right now it ignores the compiler entirely.
  
  Furthermore, regardless of whether a C11 compiler is being used, the
  build will fail, for the reason that some C11 headers such as
  <stdnoreturn.h> are being used in the code. Instead of trying to fix
  that, simply disable this port on FreeBSD <10.1. I have no intent on
  ever getting CloudABI to work on FreeBSD 9.
  
  Reviewers: bapt
  
  Reviewed By: bapt
  
  Differential Revision: https://reviews.freebsd.org/D3077

Modified:
  head/sysutils/cloudabi-utils/Makefile

Modified: head/sysutils/cloudabi-utils/Makefile
==============================================================================
--- head/sysutils/cloudabi-utils/Makefile	Tue Jul 21 07:39:35 2015	(r392613)
+++ head/sysutils/cloudabi-utils/Makefile	Tue Jul 21 09:00:00 2015	(r392614)
@@ -23,8 +23,12 @@ PLIST_FILES=	bin/cloudabi-run \
 		libexec/cloudabi-reexec \
 		man/man1/cloudabi-run.1.gz
 
+CFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
 do-build:
 	@cd ${WRKSRC} && \
+		${SETENV} ${MAKE_ENV} \
 		PREFIX=${LOCALBASE} \
 		CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \
 		${SH} build
@@ -34,4 +38,10 @@ do-install:
 		PREFIX=${STAGEDIR}${PREFIX} \
 		${SH} install
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1000100
+IGNORE=		CloudABI will never support this version of FreeBSD
+.endif
+
+.include <bsd.port.post.mk>



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