author | John Beck <John.Beck@Oracle.COM> |
Fri, 13 Jun 2014 12:36:52 -0700 | |
changeset 1948 | 2d1537e7942d |
parent 1847 | b43426a2f6ba |
child 3817 | 30b42c38bbc4 |
permissions | -rw-r--r-- |
1847
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
1 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
3 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
7 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
12 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
18 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
20 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
21 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
22 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
23 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
24 |
# |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
25 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
26 |
include ../../../make-rules/shared-macros.mk |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
27 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= xattr |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 0.7.4 |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
33 |
sha256:16c612ac01b9b5a31967e231c7f7d32b7263f151d5e3c617c69378170054805f |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= $(call pypi_url) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
35 |
COMPONENT_PROJECT_URL= http://github.com/xattr/xattr |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= python-mod/xattr |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
37 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1847
diff
changeset
|
38 |
TPNO= 16912 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1847
diff
changeset
|
39 |
|
1847
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
40 |
include $(WS_TOP)/make-rules/prep.mk |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
41 |
include $(WS_TOP)/make-rules/setup.py.mk |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
42 |
include $(WS_TOP)/make-rules/ips.mk |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
43 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
44 |
ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
45 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
46 |
# Look over into the pycparser and cffi proto areas until they're available in |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
47 |
# the build environment. Make sure that cffi is built. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
48 |
PYCPARSER = $(WS_COMPONENTS)/python/pycparser/build/prototype/$(MACH)/$(PYTHON_LIB) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
49 |
CFFI = $(WS_COMPONENTS)/python/cffi/build/prototype/$(MACH)/$(PYTHON_LIB) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
50 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
51 |
$(CFFI): |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
52 |
(cd ../cffi; $(MAKE) install) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
53 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
54 |
PYTHONPATH_DEP = $(PYCPARSER):$(CFFI) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
55 |
COMPONENT_BUILD_ENV += PYTHONPATH=$(PYTHONPATH_DEP) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
56 |
COMPONENT_INSTALL_ENV += PYTHONPATH=$(PYTHONPATH_DEP):$(PROTO_DIR)/$(PYTHON_LIB) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
57 |
COMPONENT_TEST_ENV += PYTHONPATH=$(PYTHONPATH_DEP):$(PROTO_DIR)/$(PYTHON_LIB) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
58 |
# The test suite wants to use some unicode filenames, which don't work in the C |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
59 |
# locale. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
60 |
COMPONENT_TEST_ENV += LC_CTYPE=en_US.UTF-8 |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
61 |
COMPONENT_TEST_DIR = $(@D)/tests |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
62 |
COMPONENT_TEST_CMD = $(PYTHON) setup.py |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
63 |
COMPONENT_TEST_ARGS = test |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
64 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
65 |
COMPONENT_POST_INSTALL_ACTION += \ |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
66 |
(cd $(PROTO_DIR)/usr/bin; $(MV) xattr xattr-$(PYTHON_VERSION)) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
67 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
68 |
# Tests run under setuptools work very hard to run in the source directory |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
69 |
# itself, and will thus blow up with an VerificationError (wrong ELF class) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
70 |
# when running 64-bit tests after 32-bit or vice-versa. So copy the source off |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
71 |
# to a target-specific directory and run the tests. Note that this will also |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
72 |
# rebuild the package, since it doesn't want to use what it should already be |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
73 |
# finding in PYTHONPATH. |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
74 |
COMPONENT_PRE_TEST_ACTION = $(CP) -r $(SOURCE_DIR) $(@D)/tests |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
75 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
76 |
$(BUILD_32_and_64): $(CFFI) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
77 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
78 |
# common targets |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
79 |
build: $(BUILD_32_and_64) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
80 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
81 |
install: $(INSTALL_32_and_64) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
82 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
83 |
test: $(TEST_32_and_64) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
84 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
85 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
86 |
|
b43426a2f6ba
PSARC/2014/113 xattr: filesystem extended attribute support for Python
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
87 |
include $(WS_TOP)/make-rules/depend.mk |