components/findutils/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 07 Apr 2015 17:16:56 -0700
changeset 4060 5442feb5f71a
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters 19897909 Update GNU findutils to version 4.5.14
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
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2012, 2015, 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
#
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
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
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    29
COMPONENT_VERSION=	4.5.14
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/findutils/
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    34
    sha256:0de3cf625a5c9f154eee3171e072515ffdde405244dd00502af617ac57b73ae2
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://alpha.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
    36
COMPONENT_BUGDB=	utility/gnu-findutils
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    38
TPNO=			19655
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1882
diff changeset
    39
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
CONFIGURE_PREFIX =	/usr/gnu
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    47
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    48
# 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
    49
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
    50
1095
e720196b46b2 16064047 Fix component build file problems in various Userland components
Rich Burridge <rich.burridge@oracle.com>
parents: 1085
diff changeset
    51
# 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
    52
# 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
    53
CONFIGURE_OPTIONS +=	--disable-leaf-optimisation
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
1882
79ab74d321a8 PSARC 2013/349 GNU findutils 4.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    55
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
    56
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    57
COMPONENT_TEST_TRANSFORMS += \
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    58
	'-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
    59
	'-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
    60
	'-e "s|^.*DEPDIR=.deps.*$$|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
    61
	'-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
    62
	'-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
    63
	'-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
    64
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1095
diff changeset
    65
ASLR_MODE = $(ASLR_ENABLE)
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1095
diff changeset
    66
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    68
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    69
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
build:          $(BUILD_64)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
install:        $(INSTALL_64)
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
4060
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    74
# 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
    75
# 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
    76
# 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
    77
unexport SHELLOPTS
5442feb5f71a 15709334 SUNBT7036618 GNU xargs problem with some UTF-8 characters
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    78
1882
79ab74d321a8 PSARC 2013/349 GNU findutils 4.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    79
test:           $(TEST_64)
1085
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
23b00a0af1ef 15820203 SUNBT7202643 Move findutils from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    82
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    83
REQUIRED_PACKAGES += system/library/math