author | Rich Burridge <rich.burridge@oracle.com> |
Tue, 02 May 2017 17:33:26 -0700 | |
changeset 7964 | d9801318ed3d |
parent 7848 | 75d3cd4c779b |
permissions | -rw-r--r-- |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
21 |
|
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7428
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@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:
4339
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
27 |
|
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= libevent |
5921
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
29 |
COMPONENT_VERSION= 2.0.22 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
604
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://monkey.org/~provos/libevent/ |
604
c25824a87b1f
6674902 a lot of superfluous calls to clock_gettime if timed events is not used
Milan Jurik <Milan.Jurik@oracle.com>
parents:
209
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-stable |
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
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
5921
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
33 |
sha256:71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3 |
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= http://github.com/libevent/libevent/releases/download/release-$(COMPONENT_VERSION)-stable/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
35 |
COMPONENT_BUGDB= library/libevent |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7428
diff
changeset
|
36 |
COMPONENT_ANITYA_ID= 1606 |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
37 |
|
5921
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
38 |
TPNO= 27840 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
39 |
|
7428
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
40 |
TEST_TARGET= install $(TEST_32_and_64) |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
41 |
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_32_and_64) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4339
diff
changeset
|
42 |
include $(WS_MAKE_RULES)/common.mk |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
43 |
|
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
44 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
45 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
46 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4339
diff
changeset
|
47 |
# The original manpage is in a format that the Solaris man command does not |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4339
diff
changeset
|
48 |
# understand. Hence it has been manually converted. |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
49 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4339
diff
changeset
|
50 |
# List of files from the original package that are not being delivered |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4339
diff
changeset
|
51 |
# |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4339
diff
changeset
|
52 |
# /usr/bin/event_rpcgen.py |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
53 |
|
5921
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
54 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
604
c25824a87b1f
6674902 a lot of superfluous calls to clock_gettime if timed events is not used
Milan Jurik <Milan.Jurik@oracle.com>
parents:
209
diff
changeset
|
55 |
CONFIGURE_OPTIONS += --disable-static |
209
2961eca161ad
7040066 move libevent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
56 |
|
7848
75d3cd4c779b
25427170 event-config.h definitions are valid just for 64bit apps
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
57 |
# 32 and 64 bits event-config.h headers need to be merged to the final one. |
75d3cd4c779b
25427170 event-config.h definitions are valid just for 64bit apps
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
58 |
EVENTH=include/event2/event-config.h |
75d3cd4c779b
25427170 event-config.h definitions are valid just for 64bit apps
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
59 |
$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \ |
75d3cd4c779b
25427170 event-config.h definitions are valid just for 64bit apps
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
60 |
-diff -D __$(MACH64) $(BUILD_DIR_32)/$(EVENTH) \ |
75d3cd4c779b
25427170 event-config.h definitions are valid just for 64bit apps
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
61 |
$(BUILD_DIR_64)/$(EVENTH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(EVENTH); |
75d3cd4c779b
25427170 event-config.h definitions are valid just for 64bit apps
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
62 |
|
7428
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
63 |
# Get correct libevent-2.0.so.5 from the proto area. |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
64 |
TEST_LIBPATH.32 = $(PROTOUSRLIBDIR) |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
65 |
TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64) |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
66 |
COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS)) |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
67 |
|
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
68 |
COMPONENT_TEST_DIR = $(@D)/test |
3750
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
69 |
COMPONENT_TEST_TARGETS = verify |
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
70 |
|
7428
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
71 |
COMPONENT_SYSTEM_TEST_DIR = $(@D)/test |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
72 |
COMPONENT_SYSTEM_TEST_TARGETS = verify |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
73 |
|
3750
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
74 |
# \x24 represents the character '$' |
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
75 |
COMPONENT_TEST_TRANSFORMS += \ |
7428
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
76 |
'-e "s/^type: .* OKAY\x24/TYPE-COUNT-LINE OKAY/" ' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
77 |
'-e "/cp test.sh test-script.sh/d" ' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
78 |
'-e "/Entering directory/d"' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
79 |
'-e "/Leaving directory/d"' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
80 |
'-e "/^make/d"' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
81 |
'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
82 |
'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
83 |
'-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \ |
64402cafe411
22589819 Enable libevent system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents:
5921
diff
changeset
|
84 |
'-e "/^XXX_CC_XXX$$/d" ' |
3750
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
85 |
|
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
86 |
# Master test results are the same for 32-bit and 64-bit, so override |
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
87 |
# here, rather than create multiple identical master files. |
60902b5c3237
20217381 libevent should run its tests
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
88 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
5921
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
89 |
|
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
90 |
REQUIRED_PACKAGES += library/security/openssl |
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
91 |
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
92 |
REQUIRED_PACKAGES += runtime/python-27 |
cf3796081ab1
15801008 upgrade libevent to 2.0.22
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5682
diff
changeset
|
93 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |