author | Ben Chang <Benjamin.Chang@Oracle.COM> |
Fri, 10 Feb 2017 14:09:01 -0800 | |
changeset 7662 | e9ad40e73ba5 |
parent 7564 | f958607559a6 |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@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:
5669
diff
changeset
|
21 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
22 |
# |
7564
f958607559a6
25371161 Upgrade Solaris to BIND 9.10.4-P5
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
7286
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@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:
5669
diff
changeset
|
25 |
BUILD_BITS= 64 |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
27 |
|
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= bind |
7662
e9ad40e73ba5
25489958 Upgrade Solaris to BIND 9.10.4-P6
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
7564
diff
changeset
|
29 |
COMPONENT_VERSION= 9.10.4-P6 |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
30 |
HUMAN_VERSION= $(COMPONENT_VERSION) |
7662
e9ad40e73ba5
25489958 Upgrade Solaris to BIND 9.10.4-P6
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
7564
diff
changeset
|
31 |
IPS_COMPONENT_VERSION= 9.10.4.0.6 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
592
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://www.isc.org/software/bind/ |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
33 |
|
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
34 |
# hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
7662
e9ad40e73ba5
25489958 Upgrade Solaris to BIND 9.10.4-P6
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
7564
diff
changeset
|
36 |
sha256:a1dfbfd1d11cb52f2d9e5af0def25763798bda243841722dd0b319086a73ee65 |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
37 |
COMPONENT_ARCHIVE_URL= \ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
38 |
http://ftp.isc.org/isc/bind9/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
39 |
COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).sha512.asc |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1012
diff
changeset
|
40 |
COMPONENT_BUGDB= service/dns-server |
7662
e9ad40e73ba5
25489958 Upgrade Solaris to BIND 9.10.4-P6
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
7564
diff
changeset
|
41 |
TPNO= 33696 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1809
diff
changeset
|
42 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
43 |
include $(WS_MAKE_RULES)/common.mk |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
44 |
|
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
45 |
# PYVER is important for packaging and computing requisites. |
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
46 |
PYTHON_VERSION = 3.4 |
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
47 |
PKG_MACROS += PYVER=$(PYTHON_VERSION) |
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
48 |
|
6511
d283aa33e131
24336470 Upgrade Solaris to BIND 9.10.4-P2
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
6227
diff
changeset
|
49 |
# Some patches need configure script re-creation. |
d283aa33e131
24336470 Upgrade Solaris to BIND 9.10.4-P2
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
6227
diff
changeset
|
50 |
COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -vfi); |
d283aa33e131
24336470 Upgrade Solaris to BIND 9.10.4-P2
Ben Chang <Benjamin.Chang@Oracle.COM>
parents:
6227
diff
changeset
|
51 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
52 |
# Specify "configure" options and features. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
53 |
# FYI, The configure options are displayed by 'named -V'. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
54 |
CONFIGURE_OPTIONS += --enable-full-report |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
55 |
# Python: specifying version helps with packaging. |
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
56 |
CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(PYTHON_VERSION)) |
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
57 |
# - libtool: Build dynamic libraries, static libraries are not shipped. |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
58 |
CONFIGURE_OPTIONS += --with-libtool |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
59 |
# - openssl: use openssl, required for DNSSEC features. |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --with-openssl |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
61 |
# - pkcs11: Use openSSL pkcs11 engine (KMIP/KMS) |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --with-pkcs11 |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
63 |
# - Use xml2-config found uder /usr without checking its version. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --with-libxml2=$(USRDIR) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --enable-threads |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
66 |
CONFIGURE_OPTIONS += --enable-devpoll |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
67 |
# - Enabled fixed [order] resource-record sets for backward compatibility. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
68 |
# - Requires more memory to store the sets so is not the default. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
69 |
CONFIGURE_OPTIONS += --enable-fixed-rrset |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
70 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
71 |
# Override / set specific pathnames: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
72 |
# - DNS libraries are in usr/lib/dns - Override settings from configure.mk |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
73 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib/dns/$(MACH64) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
74 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5669
diff
changeset
|
75 |
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
76 |
CONFIGURE_OPTIONS += --with-randomdev=/dev/random |
6095
b6fe5d81e761
23284073 bind fails to build with MIT kerberos
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5693
diff
changeset
|
77 |
CONFIGURE_OPTIONS += --with-gssapi=krb5-config |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
78 |
CONFIGURE_OPTIONS += --with-docbook-xsl=/usr/share/sgml/docbook |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
79 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
80 |
# Compiler and compiler options: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
81 |
# - configure will add "-mt" to CC which is already set in CFLAGS, so override. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
82 |
CONFIGURE_OPTIONS += CC="$(CC)" |
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1074
diff
changeset
|
83 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
84 |
# Test configuration / helper targets: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
85 |
COMPONENT_TEST_MASTER = \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
86 |
$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
87 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
88 |
# Run BIND testing without test interfaces configured (limited testing). |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
89 |
COMPONENT_TEST_TARGETS = force-test |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
90 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
91 |
# Normalise results for comparison: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
92 |
# Remove Date and time from Start and End lines. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
93 |
COMPONENT_TEST_TRANSFORMS += '-e "s|\(^[SE]:[^:]*:\).*|\1|"' |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
94 |
# Remove task Information lines as order of that output has been seen to change. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
95 |
COMPONENT_TEST_TRANSFORMS += '-e "/^I:/d"' |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
96 |
|
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
97 |
# Uncomment to display summary of tests at completion. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
98 |
# COMPONENT_POST_TEST_ACTION = $(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT) |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
99 |
|
7245
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
7028
diff
changeset
|
100 |
# 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:
7028
diff
changeset
|
101 |
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:
7028
diff
changeset
|
102 |
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:
7028
diff
changeset
|
103 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
104 |
.PHONY: test-named-version test-summary test-clean |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
105 |
# summarize is a nawk script: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
106 |
# consumes the output generated by ISC's make target and provides an |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
107 |
# abridged summary. It works by looking for key elements: |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
108 |
# /^T:/ = Start of a test. |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
109 |
# /^I:/ = Info from a test; collected for possible use later. |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
110 |
# /^A:/ = About: summary of the test - not used here. |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
111 |
# /^S:/ = Start: pathname and date time - not used here. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
112 |
# /^E:/ = End: pathname and date time - not used here. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
113 |
# /^R:/ = Result: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
114 |
# When 'PASS' and report=1 (from command line) the result and |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
115 |
# test name are displayed. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
116 |
# For all other results (failures) the result, test name and |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
117 |
# other collected info is displayed. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
118 |
# Known issues may be accounted for by adding tests, for example: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
119 |
# /^R:UNTESTED/ && name ~ /^T:dst:2:A/ {known++;}\ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
120 |
# /^R:UNRESOLVED/ && name ~ /^T:dst:1:A/ {known++;}\ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
121 |
# Though with USERLAND automated test comparison the known |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
122 |
# case is kind of obsolete now. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
123 |
# @ EOF = Display count of RESULTS: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
124 |
# i.e. R:PASS=124 R:UNTESTED=26 Total=150 if not 100% pass rate and |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
125 |
# issue is not accounted for (known) the test 'issues!' is appended to |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
126 |
# resulting output. |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
127 |
# |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
128 |
summarize= '\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
129 |
/^T:/ {name=$$0;info="";}\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
130 |
/^I:/ {info=sprintf("%s%s\n", info, $$0);}\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
131 |
/^R:/ {test++; result[$$1]++;}\ |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
132 |
/^R:PASS/ { if (report) printf("%s: %s\n", $$1, name); next}\ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
133 |
/^R:UNRESOLVED/ && name ~ /^T:dst:2:A/ {known++;}\ |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
134 |
/^R:/ {printf("%s: %s\n%s\n", $$1, name, info);}\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
135 |
END{for (item in result)\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
136 |
printf("%s=%d ", item, result[item]);\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
137 |
printf("(known=%d) Total=%d%s\n", known, test, \ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
138 |
((result["R:PASS"] + known) < test)? \ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
139 |
" issues!" : "");\ |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
140 |
}' |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
141 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
142 |
# |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
143 |
# COMPONENT_TEST_OUTPUT is dependent on BITS which is set depending on |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
144 |
# the active build target and PYTHON_VERS!, so it's overridden here too for test-summary: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
145 |
test-summary: BITS=64 |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
146 |
test-summary: |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
147 |
@echo Summary of $(COMPONENT_TEST_OUTPUT) |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
148 |
@$(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT) |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
149 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
150 |
test-named-version: install |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
151 |
@if [ -e $(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named ]; then \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
152 |
echo '64bit version:'; \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
153 |
file $(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named; \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
154 |
LD_LIBRARY_PATH=$(PROTO_DIR)$(CONFIGURE_LIBDIR.64) \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
155 |
$(PROTO_DIR)$(CONFIGURE_SBINDIR.64)/named -V; \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
156 |
else \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
157 |
echo '64bit version not found.'; \ |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
158 |
fi; |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
diff
changeset
|
159 |
|
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
160 |
test-clean: |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
161 |
$(RM) $(TEST_64) |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
162 |
|
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
163 |
# Package dependencies |
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
164 |
# Created by 'gmake REQUIRED_PACKAGES', manually verified. |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
165 |
REQUIRED_PACKAGES += library/json-c |
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
166 |
REQUIRED_PACKAGES += library/libedit |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3541
diff
changeset
|
167 |
REQUIRED_PACKAGES += library/libxml2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3541
diff
changeset
|
168 |
REQUIRED_PACKAGES += library/security/openssl |
5668
d5f739f94514
21239234 BIND should have some master test results to compare against
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5298
diff
changeset
|
169 |
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3541
diff
changeset
|
170 |
REQUIRED_PACKAGES += network/dns/bind |
6227
a498cb624014
PSARC/2016/261 BIND 9.10
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
6095
diff
changeset
|
171 |
REQUIRED_PACKAGES += runtime/python-34 |
6095
b6fe5d81e761
23284073 bind fails to build with MIT kerberos
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
5693
diff
changeset
|
172 |
REQUIRED_PACKAGES += security/kerberos-5 |
7279
c2b1ddc7e31d
25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents:
7270
diff
changeset
|
173 |
ifeq ($(OS_VERSION),5.11) |
c2b1ddc7e31d
25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents:
7270
diff
changeset
|
174 |
REQUIRED_PACKAGES += service/security/kerberos-5 |
c2b1ddc7e31d
25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents:
7270
diff
changeset
|
175 |
endif |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3541
diff
changeset
|
176 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3541
diff
changeset
|
177 |
REQUIRED_PACKAGES += system/core-os |
7279
c2b1ddc7e31d
25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents:
7270
diff
changeset
|
178 |
ifeq ($(OS_VERSION),5.11) |
c2b1ddc7e31d
25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents:
7270
diff
changeset
|
179 |
REQUIRED_PACKAGES += system/library/security/gss |
c2b1ddc7e31d
25071339 partially revert 23333808 for FOSS evaluation builds
John Beck <John.Beck@Oracle.COM>
parents:
7270
diff
changeset
|
180 |
endif |