Makefile revision 5666
1313N/A# The contents of this file are subject to the terms of the 1313N/A# Common Development and Distribution License (the "License"). 1313N/A# You may not use this file except in compliance with the License. 1313N/A# See the License for the specific language governing permissions 1313N/A# and limitations under the License. 1313N/A# When distributing Covered Code, include this CDDL HEADER in each 1313N/A# If applicable, add the following below this CDDL HEADER, with the 1313N/A# fields enclosed by brackets "[]" replaced with your own identifying 1313N/A# information: Portions Copyright [yyyy] [name of copyright owner] 1313N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 1313N/A# hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' 1313N/A# Specify "configure" options and features. 1313N/A# FYI, The configure options are displayed by 'named -V'. 1313N/A# - Build dynamic libraries, static libraries are not shipped. 1313N/A# - Use openssl, but don't check version as that is also delivered dynamically. 1313N/A# - Use xml2-config found uder /usr without checking its version. 1313N/A# - Enabled fixed [order] resource-record sets for backward compatibility. 1313N/A# - Requires more memory to store the sets so is not the default. 1313N/A# Override / set specific pathnames: 1313N/A# - Traditionally all BIND executables are installed in sbin not bin. 1313N/A# Compiler and compiler options: 1313N/A# - configure will add "-mt" to CC which is already set in CFLAGS, so override. 1313N/A# Enable ASLR for this component # Test configuration / helper targets: # Run BIND testing without test interfaces configured (limited testing). # Normalise results for comparison: # Remove Date and time from Start and End lines. # Remove task Information lines as order of that output has been seen to change. # Uncomment to display summary of tests at completion. # COMPONENT_POST_TEST_ACTION = $(NAWK) $(summarize) $(COMPONENT_TEST_OUTPUT) # summarize is a nawk script: # consumes the output generated by ISC's make target and provides an # abridged summary. It works by looking for key elements: # /^T:/ = Start of a test. # /^I:/ = Info from a test; collected for possible use later. # /^A:/ = About: summary of the test - not used here. # /^S:/ = Start: pathname and date time - not used here. # /^E:/ = End: pathname and date time - not used here. # When 'PASS' and report=1 (from command line) the result and # test name are displayed. # For all other results (failures) the result, test name and # other collected info is displayed. # Known issues may be accounted for by adding tests, for example: # /^R:UNTESTED/ && name ~ /^T:dst:2:A/ {known++;}\ # /^R:UNRESOLVED/ && name ~ /^T:dst:1:A/ {known++;}\ # Though with USERLAND automated test comparison the known # case is kind of obsolete now. # @ EOF = Display count of RESULTS: # i.e. R:PASS=124 R:UNTESTED=26 Total=150 if not 100% pass rate and # issue is not accounted for (known) the test 'issues!' is appended to /^T:/ {name=$$0;info="";}\ /^I:/ {info=sprintf("%s%s\n", info, $$0);}\ /^R:/ {test++; result[$$1]++;}\ /^R:PASS/ { if (report) printf("%s: %s\n", $$1, name); next}\ /^R:UNRESOLVED/ && name ~ /^T:dst:2:A/ {known++;}\ /^R:/ {printf("%s: %s\n%s\n", $$1, name, info);}\ END{for (item in result)\ printf("%s=%d ", item, result[item]);\ printf("(known=%d) Total=%d%s\n", known, test, \ ((result["R:PASS"] + known) < test)? \ # COMPONENT_TEST_OUTPUT is dependent on BITS which is set depending on # the active build target and PYTHON_VERS!, so it's overridden here too for test-summary: echo '64bit version not found.'; \
echo '32bit version not found.'; \
# Common Command line targets # Created by 'gmake REQUIRED_PACKAGES', manually verified.