#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# W3C XML Conformance Test Suites
CFLAGS += $(CPP_LARGEFILES)
# Cannot link to lzma since it's not in /lib and install media still has separate /usr.
# After we have configured, make a copy of the python bits so we can build and
# test separate python 2.7 and 3.4 support. Note for 3.4: .py files need to
# go in .../vendor-packages (whether building 32-bit or 64-bit) whereas .so
# files need to go in .../vendor-packages for 32-bit but .../vendor-packages/64
# for 64-bit. For 2.7, Python is built 32- and 64-bit, so .py files end
# up in both places even though only the 32-bit location is needed, but the
# superfluous files in the proto area are harmless; meanwhile, the .so files
# end up in their proper 32- and 64-bit locations. But Python 3.4 is built
# 64-bit only, so we have an extra sed edit below to force the .py files into
# the 32-bit location and we manually specify the 32-bit path in the manifest
# to correct for the .so file being installed there instead of the 64-bit path
# where it belongs. Further, Python 3.4 needs an extra 'm' on the link and
# include paths, plus a tweak to the binary path; see PEP 3149 for details.
-e 's/2[.]7/3.4/g' -e 's|vendor-packages/64|vendor-packages|' \
)
# It's also nice to test python 3.4 modules.
else \
true ; \
fi )
# We have patched our 64 bit python so it will search for modules only in
# '64/' directories. Now we need to provide one. Otherwise python will
# end up using libxml2mod.so installed on system.
'-e "s/^make\[.*$$/[EnD]/" ' \
'-e "/^\#\# XML regression tests/,/^\[EnD\]/p" ' \
'-e "/^\#\# running Python regression tests/,/^\[EnD\]/p" ' \
'-e "/.*/d" '
COMPONENT_POST_INSTALL_ACTION.32 += \
# support for python 3.4
COMPONENT_POST_INSTALL_ACTION.64 += \