svn commit: r295044 - projects/release-pkg

Glen Barber gjb at FreeBSD.org
Fri Jan 29 17:05:31 UTC 2016


Author: gjb
Date: Fri Jan 29 17:05:30 2016
New Revision: 295044
URL: https://svnweb.freebsd.org/changeset/base/295044

Log:
  Reorder execution in the 'packages' target so both userland
  and kernel are staged before invoking the 'create-<foo>-packages'
  targets.
  
  Include PKG_VERSION value in the 'create-{world,kernel}-packages'
  targets so the value is not redefined when packaging the kernel,
  which otherwise results in inconsistent and confusing package
  version results.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/release-pkg/Makefile.inc1

Modified: projects/release-pkg/Makefile.inc1
==============================================================================
--- projects/release-pkg/Makefile.inc1	Fri Jan 29 16:42:03 2016	(r295043)
+++ projects/release-pkg/Makefile.inc1	Fri Jan 29 17:05:30 2016	(r295044)
@@ -1379,9 +1379,9 @@ packages:	_pkgbootstrap
 	@mkdir -p ${WSTAGEDIR} ${KSTAGEDIR} ${REPODIR}
 	${_+_}@cd ${.CURDIR}; \
 		${MAKE} DESTDIR=${DESTDIR:U${WSTAGEDIR}} -DNO_ROOT -B stageworld ; \
-		${MAKE} DESTDIR=${DESTDIR:U${WSTAGEDIR}} create-world-packages ; \
 		${MAKE} DESTDIR=${DESTDIR:U${KSTAGEDIR}} -DNO_ROOT -B stagekernel ; \
-		${MAKE} DESTDIR=${DESTDIR:U${KSTAGEDIR}} DISTDIR=kernel create-kernel-packages
+		${MAKE} DESTDIR=${DESTDIR:U${WSTAGEDIR}} PKG_VERSION=${PKG_VERSION} create-world-packages ; \
+		${MAKE} DESTDIR=${DESTDIR:U${KSTAGEDIR}} PKG_VERSION=${PKG_VERSION} DISTDIR=kernel create-kernel-packages
 
 create-world-packages:	_pkgbootstrap
 	@rm -f ${DESTDIR}/*.plist 2>/dev/null || :


More information about the svn-src-projects mailing list