20616942 package runtime/python-27 is not pkg verify clean s11-update
authorJohn Beck <John.Beck@Oracle.COM>
Fri, 27 Feb 2015 14:35:08 -0800
branchs11-update
changeset 3980 a5c4d6759ee0
parent 3979 46744fa00de4
child 3981 3584872e1034
20616942 package runtime/python-27 is not pkg verify clean
components/python/python27/Makefile
--- a/components/python/python27/Makefile	Tue Feb 10 14:10:51 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)