components/findutils/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Thu, 20 Oct 2016 09:26:57 -0700
changeset 7140 dda35b00b768
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
24925632 xsl-stylesheets missing default version symlink after the move to userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5548
9c8930ad5a98 22860252 Update GNU findutils to version 4.6.0
Rich Burridge <rich.burridge@oracle.com>
parents: 4356
diff changeset
    23
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5548
diff changeset
    25
BUILD_BITS= 64
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		findutils
5548
9c8930ad5a98 22860252 Update GNU findutils to version 4.6.0
Rich Burridge <rich.burridge@oracle.com>
parents: 4356
diff changeset
    29
COMPONENT_VERSION=	4.6.0
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH= \
5548
9c8930ad5a98 22860252 Update GNU findutils to version 4.6.0
Rich Burridge <rich.burridge@oracle.com>
parents: 4356
diff changeset
    31
    sha256:ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d
9c8930ad5a98 22860252 Update GNU findutils to version 4.6.0
Rich Burridge <rich.burridge@oracle.com>
parents: 4356
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB=	utility/gnu-findutils
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
5548
9c8930ad5a98 22860252 Update GNU findutils to version 4.6.0
Rich Burridge <rich.burridge@oracle.com>
parents: 4356
diff changeset
    35
TPNO=			27155
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1882
diff changeset
    36
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5548
diff changeset
    37
include $(WS_MAKE_RULES)/gnu-component.mk
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5548
diff changeset
    39
CONFIGURE_PREFIX =	$(USRGNUDIR)
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    40
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    41
# Fixes coredump in the tests/test-localename test.
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    42
CONFIGURE_OPTIONS  +=	ac_cv_func_newlocale=no
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    43
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    44
# Disable the leaf optimisation feature, because the st_nlinks directory
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    45
# field is incorrect on ZFS file systems.
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	--disable-leaf-optimisation
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
1882
79ab74d321a8 PSARC 2013/349 GNU findutils 4.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    48
COMPONENT_TEST_ENV +=	PATH="$(GNUBIN):$(PATH)"
79ab74d321a8 PSARC 2013/349 GNU findutils 4.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    49
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    50
COMPONENT_TEST_TRANSFORMS += \
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    51
	'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    52
	'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    53
	'-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
5548
9c8930ad5a98 22860252 Update GNU findutils to version 4.6.0
Rich Burridge <rich.burridge@oracle.com>
parents: 4356
diff changeset
    54
	'-e "s|^.*(core dumped).*$$|XXX_CC_XXX|g" ' \
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    55
	'-e "/^XXX_CC_XXX$$/d" ' \
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    56
	'-e "s|\(Test Run By\).*|\1|" ' \
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    57
	'-e "s|\(Native configuration is\).*|\1|" '
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    58
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    59
# Needed for "gmake test" to work successfully.
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    60
# Otherwise we see errors such as:
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    61
# FAIL: exec-nogaps.old-O3, sh: SHELLOPTS: readonly variable
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    62
unexport SHELLOPTS
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    63
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
4356
53082858cced 20861294 findutils Makefile missing cvs and git dependencies for test
April Chin <april.chin@oracle.com>
parents: 4339
diff changeset
    65
# test dependencies:
53082858cced 20861294 findutils Makefile missing cvs and git dependencies for test
April Chin <april.chin@oracle.com>
parents: 4339
diff changeset
    66
REQUIRED_PACKAGES += developer/versioning/cvs
53082858cced 20861294 findutils Makefile missing cvs and git dependencies for test
April Chin <april.chin@oracle.com>
parents: 4339
diff changeset
    67
REQUIRED_PACKAGES += developer/versioning/git
53082858cced 20861294 findutils Makefile missing cvs and git dependencies for test
April Chin <april.chin@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 += system/library/math