20616942 package runtime/python-27 is not pkg verify clean
authorJohn Beck <John.Beck@Oracle.COM>
Fri, 27 Feb 2015 14:35:08 -0800
changeset 3872 22a6f441c13d
parent 3871 ddf9e355ac16
child 3873 03a07a0b1e90
20616942 package runtime/python-27 is not pkg verify clean
components/python/python27/Makefile
--- a/components/python/python27/Makefile	Fri Feb 27 09:41:59 2015 -0800
+++ b/components/python/python27/Makefile	Fri Feb 27 14:35:08 2015 -0800
@@ -141,6 +141,7 @@
 #    Note that although the 64-bit version is not used (and thus commented
 #    out in the manifest), we still need to specify the 32-/64-bit paths,
 #    otherwise the 64-bit build will fail to find the 32-bit path.
+# 4. (Re)compile _sysconfigdata.py since we just updated it.
 CONFIG_MAKEFILE.32=	lib/python2.7/config/Makefile
 CONFIG_MAKEFILE.64=	lib/$(MACH64)/python2.7/config/Makefile
 CONFIG_MAKEFILE=	$(CONFIG_MAKEFILE.$(BITS))
@@ -150,7 +151,8 @@
              $(TOUCH) lib/python2.7/lib2to3/*.pickle ; \
 	     $(GSED) -i -e 's|$(SOURCE_DIR)|.|g' -e 's|$(COMPONENT_DIR)|..|g' \
 		-e 's|$(SPRO_VROOT)/bin/||g' lib/python2.7/_sysconfigdata.py \
-		$(CONFIG_MAKEFILE))
+		$(CONFIG_MAKEFILE); \
+	     $(PYTHON.2.7) -m py_compile lib/python2.7/_sysconfigdata.py)
 
 ASLR_MODE = $(ASLR_ENABLE)