components/cvs/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 7245 934578b959f0
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     1
#
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     3
#
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     7
#
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    12
#
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    18
#
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4770
diff changeset
    21
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4770
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4770
diff changeset
    25
BUILD_BITS= 64
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    27
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		cvs
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.12.13
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.nongnu.org/cvs/
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@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: 796
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 796
diff changeset
    33
    sha256:78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/non-gnu/cvs/source/feature/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7245
diff changeset
    35
COMPONENT_ANITYA_ID=	384
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    36
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1500
diff changeset
    37
TPNO=			6323
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1500
diff changeset
    38
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4770
diff changeset
    39
SYSTEM_TEST_TARGET= $(SYSTEM_TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4770
diff changeset
    40
include $(WS_MAKE_RULES)/common.mk
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    41
773
cfddc5466118 7160401 userland is unhappy on 13
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    42
CFLAGS += -D__ATTRIBUTE_DISABLED
169
8f267234cc5c 7033025 move cvs from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    43
CONFIGURE_OPTIONS  +=	--with-external-zlib
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    44
7245
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 5682
diff changeset
    45
# Enable adiheap and adistack security extensions
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 5682
diff changeset
    46
ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 5682
diff changeset
    47
ADISTACK_MODE =	$(ADISTACK_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 5682
diff changeset
    48
4770
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    49
# need gnu grep
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    50
COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH)
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 169
diff changeset
    51
# "check" is not working yet.  It's asking for a password.
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 169
diff changeset
    52
COMPONENT_TEST_TARGETS = localcheck
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 169
diff changeset
    53
4770
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    54
# mimic localcheck from src/Makefile
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    55
COMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)/src
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    56
COMPONENT_SYSTEM_TEST_ENV += PATH=$(GNUBIN):$(PATH)
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    57
COMPONENT_SYSTEM_TEST_CMD = ./sanity.sh
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4770
diff changeset
    58
COMPONENT_SYSTEM_TEST_ARGS = $(USRBINDIR)/cvs
4770
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    59
COMPONENT_SYSTEM_TEST_TARGETS =
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    60
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    61
# extract just the final results
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    62
# delete make lines
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    63
# delete cp lines
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    64
COMPONENT_TEST_TRANSFORMS += \
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    65
	'-e "/^This/,/^make/!d" ' \
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    66
	'-e "/^[mM]ake/d" ' \
b4623be47e9d 21608810 gawk and cvs need system-test hooked up
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4652
diff changeset
    67
	'-e "/^cp.*/d" '
4652
d0e37876680e 20460221 CVS should have some master test results to compare against
James Chang <james.c.chang@Oracle.COM>
parents: 4339
diff changeset
    68
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    69
REQUIRED_PACKAGES += library/zlib