21389899 pkg://solaris/runtime/python-34 is not pkg verify clean s11u3-sru
authorJohn Beck <John.Beck@Oracle.COM>
Fri, 28 Aug 2015 12:50:41 -0700
branchs11u3-sru
changeset 5806 b6d54fc7632a
parent 5803 aa1ed0b542dc
child 5812 ac16f94826c3
21389899 pkg://solaris/runtime/python-34 is not pkg verify clean
components/python/python34/Makefile
--- a/components/python/python34/Makefile	Tue Apr 19 00:24:12 2016 -0700
+++ b/components/python/python34/Makefile	Fri Aug 28 12:50:41 2015 -0700
@@ -147,12 +147,14 @@
 COMPONENT_INSTALL_ENV +=	PATH="$(PATH)"
 COMPONENT_INSTALL_ARGS +=	-e
 
-# Strip build machine paths from _sysconfigdata.py & config/Makefile.
+# Strip build machine paths from _sysconfigdata.py & config/Makefile,
+# then (re)compile _sysconfigdata.py since we just updated it.
 COMPONENT_POST_INSTALL_ACTION= \
     (cd $(PROTOUSRLIBDIR)/python3.4 ; \
      $(GSED) -i -e 's|$(SOURCE_DIR)|.|g' -e 's|$(COMPONENT_DIR)|..|g' \
 	-e 's|$(SPRO_VROOT)/bin/||g' lib-dynload/64/_sysconfigdata.py \
-	config-3.4m/Makefile)
+	config-3.4m/Makefile; \
+	$(PYTHON.3.4) -m py_compile lib-dynload/64/_sysconfigdata.py)
 
 # common targets
 build:		$(BUILD_64)