author | Brian Cameron <brian.cameron@oracle.com> |
Tue, 02 Apr 2013 15:14:34 -0700 | |
changeset 1246 | 164605dfef4e |
parent 1058 | 34d7aaa03423 |
child 1303 | 79b691ffbda3 |
permissions | -rw-r--r-- |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
1246
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
21 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
127
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
118
diff
changeset
|
23 |
include ../../../make-rules/shared-macros.mk |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
24 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
25 |
PATH=/usr/bin:/usr/gnu/bin:/usr/sbin |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
26 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
27 |
COMPONENT_NAME= Python |
841
1a62cefa636d
7121707 python 2.6.4 should be updated to latest 2.6.X release
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
28 |
COMPONENT_VERSION= 2.6.8 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
578
diff
changeset
|
29 |
COMPONENT_PROJECT_URL= http://python.org/ |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
30 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
774
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
841
1a62cefa636d
7121707 python 2.6.4 should be updated to latest 2.6.X release
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
33 |
sha256:c34036718ee1f091736677f543bc7960861cf9fcbea77d49572b59f7f1ab3c3f |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
578
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)ftp/python/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
975
diff
changeset
|
35 |
COMPONENT_BUGDB= utility/python |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
36 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
37 |
include $(WS_TOP)/make-rules/prep.mk |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
38 |
include $(WS_TOP)/make-rules/configure.mk |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
39 |
include $(WS_TOP)/make-rules/ips.mk |
578
4f51372decaf
7053223 python needs lint libraries
Danek Duvall <danek.duvall@oracle.com>
parents:
206
diff
changeset
|
40 |
include $(WS_TOP)/make-rules/lint-libraries.mk |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
41 |
|
1246
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
42 |
# Need to preserve timestamp for Grammar files. If the pickle files are older, |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
43 |
# Python will try to rebuild them. |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
44 |
PKGSEND_PUBLISH_OPTIONS += -T \*Grammar\*.txt |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
45 |
PKGSEND_PUBLISH_OPTIONS += -T \*Grammar\*.pickle |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
46 |
|
118
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
47 |
# We patch auto* files, so regenerate headers and configure |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
48 |
COMPONENT_PREP_ACTION = \ |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
49 |
(cd $(@D) ; autoheader ; autoconf) |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
50 |
|
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
51 |
# This seems horribly wrong, but these defines break the ability to build c99 |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
52 |
# compliant modules or with gcc. |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
53 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
54 |
(cd $(@D) ; \ |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
55 |
perl -pi -e 's/(^\#define _POSIX_C_SOURCE.*)/\/* $$1 *\//' pyconfig.h ; \ |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
56 |
perl -pi -e 's/^(\#define _XOPEN_SOURCE.*)/\/* $$1 *\//' pyconfig.h ; \ |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
57 |
perl -pi -e 's/^(\#define _XOPEN_SOURCE_EXTENDED.*)/\/* $$1 *\//' \ |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
58 |
pyconfig.h) |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
59 |
|
634
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
60 |
# The python build is profile-guided for studio; to see the benefits of that, |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
61 |
# Python must be compiled with -xO5 and a different build target must be used. |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
62 |
# Use of xprofile requires that the same options be used during compilation and |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
63 |
# linking. The targets chosen are based on Solaris 11 minimum supported system |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
64 |
# requirements. |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
65 |
COMPONENT_BUILD_TARGETS = profile-opt |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
66 |
XPROFILE_DIR = $(BUILD_DIR_$(BITS))/.profile |
975
44e81e837f1f
7197384 move to parfait 1.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
841
diff
changeset
|
67 |
PYFLAGS.i386 = -xtarget=opteron -xarch=sse2 -xcache=generic |
634
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
68 |
PYFLAGS.sparc = |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
69 |
CFLAGS += -xO5 $(PYFLAGS.$(MACH)) |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
70 |
LDFLAGS += -xO5 $(PYFLAGS.$(MACH)) |
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
71 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
72 |
# we don't want to leak $(CC_BITS) into BASECFLAGS as it causes problems with |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
73 |
# python-config |
118
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
74 |
CC += $(CFLAGS) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
75 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
76 |
C99MODE= |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
77 |
CPPFLAGS += -IPython |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
78 |
|
118
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
79 |
# so we find the ncurses headers |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
80 |
CPPFLAGS += -I/usr/include/ncurses |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
81 |
# enable large files how they did in JDS |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
82 |
CPPFLAGS += -D_LARGEFILE64_SOURCE |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
83 |
# libffi for _ctypes |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
84 |
CPPFLAGS += $(shell pkg-config --cflags-only-I libffi) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
85 |
|
578
4f51372decaf
7053223 python needs lint libraries
Danek Duvall <danek.duvall@oracle.com>
parents:
206
diff
changeset
|
86 |
# Python puts its header files in a special place. |
4f51372decaf
7053223 python needs lint libraries
Danek Duvall <danek.duvall@oracle.com>
parents:
206
diff
changeset
|
87 |
LINT_FLAGS += -I$(SOURCE_DIR)/Include |
4f51372decaf
7053223 python needs lint libraries
Danek Duvall <danek.duvall@oracle.com>
parents:
206
diff
changeset
|
88 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
89 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
90 |
CONFIGURE_OPTIONS += --enable-shared |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --with-system-ffi |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
92 |
CONFIGURE_OPTIONS += --without-gcc |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
93 |
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
118
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
94 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
049f3b3d6903
7016735 move mercurial from sfw to userland (fix module building)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
95 |
CONFIGURE_OPTIONS += CCSHARED="$(CC_PIC)" |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
181
diff
changeset
|
96 |
CONFIGURE_OPTIONS += CXX="$(CXX)" |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
181
diff
changeset
|
97 |
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
98 |
CONFIGURE_OPTIONS += DFLAGS="-$(BITS)" |
634
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
99 |
CONFIGURE_OPTIONS += XPROFILE_DIR="$(XPROFILE_DIR)" |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
100 |
COMPONENT_BUILD_ENV += DFLAGS="-$(BITS)" |
634
bd9c94f9f6e0
6771457 explore compiler performance improvements for python
Shawn Walker <shawn.walker@oracle.com>
parents:
609
diff
changeset
|
101 |
COMPONENT_BUILD_ENV += XPROFILE_DIR="$(XPROFILE_DIR)" |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
102 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
103 |
# 64 bit shared objects need to go in a 64-bit directory |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
104 |
COMPONENT_INSTALL_ARGS.64 += DESTSHARED=$(CONFIGURE_PREFIX)/lib/python2.6/lib-dynload |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
105 |
|
1246
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
106 |
# Setup pyconfig.h file to support 32 & 64 bit. |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
107 |
# If the /usr/lib/python2.6/lib2to3/*.pickle files are older than the related |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
108 |
# *.txt files in the same directory, it will rebuild them anytime you try to |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
109 |
# build a Python module. So here we also touch the pickle files to avoid this. |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
110 |
# |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
111 |
COMPONENT_POST_INSTALL_ACTION= \ |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
112 |
(cd $(PROTOUSRDIR) ; \ |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
113 |
$(MV) include/python2.6/pyconfig.h include/python2.6/pyconfig-$(BITS).h ; \ |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
114 |
$(TOUCH) lib/python2.6/lib2to3/*.pickle) |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
115 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
116 |
# common targets |
1246
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
117 |
$(INSTALL_32): $(INSTALL_64) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
118 |
build: $(BUILD_32_and_64) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
119 |
install: $(INSTALL_32_and_64) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
120 |
|
1246
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
121 |
# Using "-uall,-network" ensures all tests are run except the network tests. |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
122 |
# The network tests contain many expected failures when run behind a firewall. |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
123 |
# The "-v" ensures verbose mode. You can set TESTOPTS_PYTHON_TEST to a |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
124 |
# particular test if you want to run just one test. For example, run gmake with |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
125 |
# "-k" so it continues and does both 32-bit and 64-bit tests, even if there is a |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
126 |
# failure, like this: |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
127 |
# $ TESTOPTS_PYTHON_TEST=test_sys gmake -k test |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
128 |
# Note that when a test succeeds, the builds/*/.tested file gets created. You |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
129 |
# may need to remove these files, or run "gmake clobber" or "gmake clean" |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
130 |
# between tests. |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
131 |
# |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
132 |
COMPONENT_TEST_ENV = EXTRATESTOPTS="-v -uall,-network $(TESTOPTS_PYTHON_TEST)" |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
133 |
COMPONENT_TEST_TARGETS = test |
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
134 |
|
164605dfef4e
15799279 - Some Python 2.6 and 2.7 "gmake test" tests fail
Brian Cameron <brian.cameron@oracle.com>
parents:
1058
diff
changeset
|
135 |
test: $(TEST_32_and_64) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
136 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
137 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
138 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
139 |
include $(WS_TOP)/make-rules/depend.mk |