Date: Sun, 9 Oct 2011 16:52:15 -0700 (PDT) From: Garrett Cooper <yanegomi@gmail.com> To: freebsd-bugs@freebsd.org, bug-followup@FreeBSD.org Cc: Garrett Cooper <yanegomi@gmail.com> Subject: Re: kern/161452: [patch] make PORTS_MODULES compile more sane with proper OSVERSION / SRC_BASE values Message-ID: <alpine.BSF.2.00.1110091651030.4348@toaster.local> In-Reply-To: <201110092350.p99No9iS045529@freefall.freebsd.org> References: <201110092350.p99No9iS045529@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Silly me.. I submitted an empty patch in the original PR. This is
what I meant to submit.
Thanks,
-Garrett
[-- Attachment #2 --]
Index: sys/conf/kern.post.mk
===================================================================
--- sys/conf/kern.post.mk (revision 226171)
+++ sys/conf/kern.post.mk (working copy)
@@ -38,7 +38,13 @@
# Handle out of tree ports
.if !defined(NO_MODULES) && defined(PORTS_MODULES)
-PORTSMODULESENV=SYSDIR=${SYSDIR}
+.if !defined(OSRELDATE)
+OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
+ /usr/include/osreldate.h
+.endif
+PORTSMODULESENV=OSVERSION=${OSRELDATE} \
+ PATH="${PATH}:/usr/local/bin" \
+ SRC_BASE="$$(realpath "${SYSDIR:H}/")"
.for __target in all install reinstall clean
${__target}: ports-${__target}
ports-${__target}:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1110091651030.4348>
