Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2020 22:25:20 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r544720 - head/sysutils/openzfs-kmod
Message-ID:  <202008112225.07BMPKiU025312@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers (src committer)
Date: Tue Aug 11 22:25:20 2020
New Revision: 544720
URL: https://svnweb.freebsd.org/changeset/ports/544720

Log:
  sysutils/openzfs-kmod: fix the build with a nonstandard SRC_BASE
  
  ports that need FreeBSD's src code should check $SRC_BASE rather than assume
  /usr/src. For example, it should be possible to build openzfs-kmod with a
  command like this:
  
  env SRC_BASE=$HOME/freebsd/base/head make
  
  Approved by:	freqlabs (maintainer)
  MFH:		2020Q3
  Sponsored by:	Axcient
  Differential Revision:	https://reviews.freebsd.org/D26033

Modified:
  head/sysutils/openzfs-kmod/Makefile

Modified: head/sysutils/openzfs-kmod/Makefile
==============================================================================
--- head/sysutils/openzfs-kmod/Makefile	Tue Aug 11 21:50:39 2020	(r544719)
+++ head/sysutils/openzfs-kmod/Makefile	Tue Aug 11 22:25:20 2020	(r544720)
@@ -32,6 +32,8 @@ GCOV_DESC=	Build kernel module with GCOV support (Requ
 IGNORE=	needs FreeBSD 12/13 with AES-CCM support
 .endif
 
+MAKE_OPTS+=	SYSDIR=${SRC_BASE}/sys
+
 .if ${PORT_OPTIONS:MDEBUG}
 MAKE_OPTS+=	WITH_DEBUG=true
 PLIST_FILES+=	${KMODDIR}/${KMODTARGET}.debug



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