components/logilab-common/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 14 Aug 2013 10:54:58 -0700
changeset 1434 c782e620dd26
parent 1310 ed3f9d06a78b
child 1907 446472de62e9
permissions -rw-r--r--
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
#
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    23
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		logilab-common
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    29
COMPONENT_VERSION=	0.58.2
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.logilab.org/project/logilab-common/
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 706
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    34
	sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1023
diff changeset
    36
COMPONENT_BUGDB=	python-mod/logilab-common
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/ips.mk
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/setup.py.mk
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    42
# rename pytest to its versioned name; mediated links (depending on
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    43
# the python version) in the manifest will create the link from pytest
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    44
# to the correct pytest-${PYTHON_VERSION}
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    45
# compile all of the python .py files in the proto area since setup.py doesn't
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    46
# seem to be doing it for this component.
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    47
COMPONENT_POST_INSTALL_ACTION = \
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    48
	(cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    49
	($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    50
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1310
diff changeset
    51
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    52
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    53
# common targets
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    54
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    55
build:		$(BUILD_NO_ARCH)
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    56
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    57
install:	$(INSTALL_NO_ARCH)
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    58
	
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    59
# The tests are run using python 2.7 only and require that the
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    60
# python-27 package is installed (does not have to be the default python). 
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    61
# Testing using python-26 is done manually, since it requires
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    62
# downloading and installing the unittest2 component (not part of Solaris).
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    63
# which provides python 2.7 functionality to the unittest python library
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    64
# in the python2.6 package.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    65
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    66
# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    67
test: PYTHON_VERSION=2.7
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    68
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    69
COMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    70
COMPONENT_TEST_ARGS =
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    71
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    72
# Expected failures for test target:
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    73
# 413 test cases, 1 error, 1 failures, 22 skipped
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    74
# 21 modules OK (2 failed)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    75
# failures: unittest_shellutils [1/23], unittest_date [1/45]
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    76
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    77
test:	$(TEST_NO_ARCH)
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    78
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    79
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    80
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    81
include ../../make-rules/depend.mk