author | Tomas Kuthan <tomas.kuthan@oracle.com> |
Wed, 20 Apr 2016 14:58:30 -0700 | |
changeset 5823 | d41c1305c674 |
parent 5682 | 94c0ca64c022 |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
1 |
# |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
3 |
# |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
7 |
# |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
12 |
# |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
18 |
# |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
20 |
# |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
21 |
|
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
22 |
# |
5549
2dafe44bccaf
22862048 Update mlocate to version 0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
4942
diff
changeset
|
23 |
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@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:
5549
diff
changeset
|
25 |
BUILD_BITS= 64 |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
27 |
|
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= mlocate |
5549
2dafe44bccaf
22862048 Update mlocate to version 0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
4942
diff
changeset
|
29 |
COMPONENT_VERSION= 0.26 |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= https://fedorahosted.org/mlocate |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
5549
2dafe44bccaf
22862048 Update mlocate to version 0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
4942
diff
changeset
|
33 |
sha256:3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/m/l/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
35 |
|
5549
2dafe44bccaf
22862048 Update mlocate to version 0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
4942
diff
changeset
|
36 |
TPNO= 27159 |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
37 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5549
diff
changeset
|
38 |
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5549
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/common.mk |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
40 |
|
4942
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
41 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
42 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5549
diff
changeset
|
43 |
CONFIGURE_OPTIONS += --localstatedir="$(VARDIR)/cache" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5549
diff
changeset
|
44 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
45 |
|
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
46 |
COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake) |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
47 |
COMPONENT_POST_INSTALL_ACTION= \ |
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
48 |
@$(MKDIR) -p $(PROTO_DIR)/etc/; \ |
4924
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
49 |
$(CP) files/updatedb.conf $(PROTO_DIR)/etc/ |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
50 |
|
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
51 |
COMPONENT_TEST_TRANSFORMS += \ |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
52 |
'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
53 |
'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
54 |
'-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \ |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
55 |
'-e "s|^/usr/gnu/bin/make.*$$|XXX_REMOVE_XXX|g" ' \ |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
56 |
'-e "/^XXX_REMOVE_XXX$$/d" ' |
1230
51caab77ce23
PSARC/2012/123 Replace slocate(1) with mlocate(1)
Edwin Beasant <Edwin.Beasant@oracle.com>
parents:
diff
changeset
|
57 |
|
4942
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
58 |
# Test 41 needs to be able to open at least 950 fds. Bump up the limit. |
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
59 |
COMPONENT_TEST_ENV_CMD = ulimit -n 1000; env |
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
60 |
|
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
61 |
# Need /usr/gnu/bin before /usr/bin for GNU diff. |
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
62 |
COMPONENT_TEST_ENV += PATH="$(@D)/src:$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)" |
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
63 |
|
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
64 |
COMPONENT_TEST_CMD = $(SOURCE_DIR)/tests/testsuite |
4924
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
65 |
COMPONENT_TEST_TARGETS = |
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
66 |
|
4942
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
67 |
COMPONENT_SYSTEM_TEST_ENV_CMD = ulimit -n 1000; env |
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
68 |
COMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)" |
4924
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
69 |
COMPONENT_SYSTEM_TEST_CMD = $(SHELL) $(SOURCE_DIR)/tests/testsuite |
4942
dff90b344418
21941539 "gmake test" failures for mlocate
Rich Burridge <rich.burridge@oracle.com>
parents:
4924
diff
changeset
|
70 |
COMPONENT_SYSTEM_TEST_ARGS = AUTOTEST_PATH=$(GNUBIN):$(USRBINDIR):$(USRSBINDIR) |
4924
3100caf65c36
19847666 mlocate should enable its test suite
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
71 |
COMPONENT_SYSTEM_TEST_TARGETS = |