Michal Nowak
2018-06-29 153758dbd33d98048305ff84944c7afff3b642ff
Add pcre2  from solaris-userland

6 files added
1 files modified
691 ■■■■■ changed files
components/library/pcre2/Makefile 133 ●●●●● patch | view | raw | blame | history
components/library/pcre2/manifests/sample-manifest.p5m 243 ●●●●● patch | view | raw | blame | history
components/library/pcre2/patches/01-doc.patch 26 ●●●●● patch | view | raw | blame | history
components/library/pcre2/patches/05-pcre2-config.in.patch 17 ●●●●● patch | view | raw | blame | history
components/library/pcre2/pcre2.p5m 255 ●●●●● patch | view | raw | blame | history
components/library/pcre2/test/results-all.master 17 ●●●●● patch | view | raw | blame | history
tools/.gnupg/pubring.gpg patch | view | raw | blame | history
components/library/pcre2/Makefile
New file
@@ -0,0 +1,133 @@
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, Michal Nowak
#
PREFERRED_BITS=64
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        pcre2
COMPONENT_VERSION=    10.31
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.bz2
COMPONENT_ARCHIVE_HASH=    \
    sha256:e07d538704aa65e477b6a392b32ff9fc5edf75ab9a40ddfc876186c4ff4d68ac
COMPONENT_ARCHIVE_URL=    ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$(COMPONENT_ARCHIVE)
COMPONENT_SIG_URL=    $(COMPONENT_ARCHIVE_URL).sig
COMPONENT_PROJECT_URL=  http://pcre.org/
COMPONENT_FMRI=        library/pcre2
COMPONENT_CLASSIFICATION=    Development/C
COMPONENT_LICENSE=    BSD
COMPONENT_LICENSE_FILE=    LICENCE
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk
TEST_TARGET= install $(TEST_32_and_64)
# pick up -std=c99 in CFLAGS
CFLAGS+=    -std=c99
# turn on largefile support
CFLAGS+=    $(CPP_LARGEFILES)
# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
# here, otherwise -norunpath doesn't get set when creating the shared
# libraries (CC -G).
CXX+=    $(studio_NORUNPATH)
CXXFLAGS+=    $(CC_PIC)
# turn on support for large files
CXXFLAGS+=    $(CPP_LARGEFILES)
CONFIGURE_ENV+=    "CPP=$(CC) $(CPPFLAGS) $(CFLAGS) -E"
CONFIGURE_ENV+=    "CXXCPP=$(CXX) $(CPPFLAGS) $(CXXFLAGS) -E"
CONFIGURE_ENV+=    "CXXLDFLAGS=$(LDFLAGS)"
CONFIGURE_ENV+= "CXXLD=$(CXX) $(CXXFLAGS) $(LDFLAGS)"
CONFIGURE_ENV+= "INSTALL=$(INSTALL)"
CONFIGURE_ENV+= "MAKE=$(GMAKE)"
CONFIGURE_ENV.64+= "CXXLINKLIB=$(CXX) $(CCFLAGS) $(LDFLAGS)"
CONFIGURE_ENV.64+= "MACH64=$(MACH64)"
CONFIGURE_OPTIONS+=    --includedir=$(CONFIGURE_INCLUDEDIR)/pcre
CONFIGURE_OPTIONS+=    --localstatedir=$(VARDIR)
CONFIGURE_OPTIONS+=    --disable-static
CONFIGURE_OPTIONS+=    --enable-rebuild-chartables
CONFIGURE_OPTIONS+=    --enable-newline-is-any
CONFIGURE_OPTIONS+=    --enable-pcre2grep-libz
CONFIGURE_OPTIONS+=    --enable-pcre2grep-libbz2
CONFIGURE_OPTIONS+=    --with-link-size=4
CONFIGURE_OPTIONS+=    --with-match-limit=10000000
CONFIGURE_OPTIONS+=    --with-pic
# Enable UTF8 support    (was --enable-utf8 in pcre(1) configure).
CONFIGURE_OPTIONS+=    --enable-pcre2-8
# Enable Unicode support (was --enable-unicode-properties in pcre(1) configure).
CONFIGURE_OPTIONS+=    --enable-unicode
COMPONENT_BUILD_ENV+=    "LDFLAGS=$(LDFLAGS)"
COMPONENT_BUILD_ENV+=    "INSTALL=$(INSTALL)"
COMPONENT_BUILD_ENV+=    "MAKE=$(GMAKE)"
COMPONENT_BUILD_ARGS+=    -e
COMPONENT_INSTALL_ARGS+=    "INSTALL=$(INSTALL)"
# Needed for "gmake test" to work successfully.
# If SHELLOPTS is exported (as it is by the userland makefiles),
# then all shell options get exported to child invocations of bash,
# which results in test failures due to nounset and xtrace being
# set unexpectedly, and errors such as "$1: unbound variable" and
# diffs failing due to script tracing in output files.
unexport SHELLOPTS
# Master test results are the same for 32-bit and 64-bit, so override
# here, rather than create multiple identical master files.
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
# Get correct libpcre2-8.so.0 from the build area.
TEST_LIBPATH.32 =    $(PROTOUSRLIBDIR)
TEST_LIBPATH.64 =    $(PROTOUSRLIBDIR64)
COMPONENT_TEST_ENV +=    LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
COMPONENT_TEST_TRANSFORMS += \
    '-e "/Nothing to be done/d"' \
    '-e "/Leaving directory/d"' \
    '-e "/Entering directory/d"' \
    '-e "s|Testsuite summary for PCRE .*|Testsuite summary for PCRE|" '
# common targets
build:        $(BUILD_32_and_64)
install:    $(INSTALL_32_and_64)
test:        $(TEST_32_and_64)
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += compress/bzip2
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
components/library/pcre2/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,243 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2017 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/bin/$(MACH32)/pcre2-config
file path=usr/bin/$(MACH32)/pcre2grep
file path=usr/bin/$(MACH32)/pcre2test
file path=usr/bin/pcre2-config
file path=usr/bin/pcre2grep
file path=usr/bin/pcre2test
file path=usr/include/pcre/pcre2.h
file path=usr/include/pcre/pcre2posix.h
link path=usr/lib/$(MACH64)/libpcre2-8.so target=libpcre2-8.so.0.7.0
link path=usr/lib/$(MACH64)/libpcre2-8.so.0 target=libpcre2-8.so.0.7.0
file path=usr/lib/$(MACH64)/libpcre2-8.so.0.7.0
link path=usr/lib/$(MACH64)/libpcre2-posix.so target=libpcre2-posix.so.2.0.0
link path=usr/lib/$(MACH64)/libpcre2-posix.so.2 target=libpcre2-posix.so.2.0.0
file path=usr/lib/$(MACH64)/libpcre2-posix.so.2.0.0
file path=usr/lib/$(MACH64)/pkgconfig/libpcre2-8.pc
file path=usr/lib/$(MACH64)/pkgconfig/libpcre2-posix.pc
link path=usr/lib/libpcre2-8.so target=libpcre2-8.so.0.7.0
link path=usr/lib/libpcre2-8.so.0 target=libpcre2-8.so.0.7.0
file path=usr/lib/libpcre2-8.so.0.7.0
link path=usr/lib/libpcre2-posix.so target=libpcre2-posix.so.2.0.0
link path=usr/lib/libpcre2-posix.so.2 target=libpcre2-posix.so.2.0.0
file path=usr/lib/libpcre2-posix.so.2.0.0
file path=usr/lib/pkgconfig/libpcre2-8.pc
file path=usr/lib/pkgconfig/libpcre2-posix.pc
file path=usr/share/doc/pcre2/AUTHORS
file path=usr/share/doc/pcre2/COPYING
file path=usr/share/doc/pcre2/ChangeLog
file path=usr/share/doc/pcre2/LICENCE
file path=usr/share/doc/pcre2/NEWS
file path=usr/share/doc/pcre2/README
file path=usr/share/doc/pcre2/html/NON-AUTOTOOLS-BUILD.txt
file path=usr/share/doc/pcre2/html/README.txt
file path=usr/share/doc/pcre2/html/index.html
file path=usr/share/doc/pcre2/html/pcre2-config.html
file path=usr/share/doc/pcre2/html/pcre2.html
file path=usr/share/doc/pcre2/html/pcre2_callout_enumerate.html
file path=usr/share/doc/pcre2/html/pcre2_code_copy.html
file path=usr/share/doc/pcre2/html/pcre2_code_copy_with_tables.html
file path=usr/share/doc/pcre2/html/pcre2_code_free.html
file path=usr/share/doc/pcre2/html/pcre2_compile.html
file path=usr/share/doc/pcre2/html/pcre2_compile_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_compile_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_compile_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_config.html
file path=usr/share/doc/pcre2/html/pcre2_convert_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_convert_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_convert_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_converted_pattern_free.html
file path=usr/share/doc/pcre2/html/pcre2_dfa_match.html
file path=usr/share/doc/pcre2/html/pcre2_general_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_general_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_general_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_get_error_message.html
file path=usr/share/doc/pcre2/html/pcre2_get_mark.html
file path=usr/share/doc/pcre2/html/pcre2_get_ovector_count.html
file path=usr/share/doc/pcre2/html/pcre2_get_ovector_pointer.html
file path=usr/share/doc/pcre2/html/pcre2_get_startchar.html
file path=usr/share/doc/pcre2/html/pcre2_jit_compile.html
file path=usr/share/doc/pcre2/html/pcre2_jit_free_unused_memory.html
file path=usr/share/doc/pcre2/html/pcre2_jit_match.html
file path=usr/share/doc/pcre2/html/pcre2_jit_stack_assign.html
file path=usr/share/doc/pcre2/html/pcre2_jit_stack_create.html
file path=usr/share/doc/pcre2/html/pcre2_jit_stack_free.html
file path=usr/share/doc/pcre2/html/pcre2_maketables.html
file path=usr/share/doc/pcre2/html/pcre2_match.html
file path=usr/share/doc/pcre2/html/pcre2_match_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_match_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_match_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_match_data_create.html
file path=usr/share/doc/pcre2/html/pcre2_match_data_create_from_pattern.html
file path=usr/share/doc/pcre2/html/pcre2_match_data_free.html
file path=usr/share/doc/pcre2/html/pcre2_pattern_convert.html
file path=usr/share/doc/pcre2/html/pcre2_pattern_info.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_decode.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_encode.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_free.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_get_number_of_codes.html
file path=usr/share/doc/pcre2/html/pcre2_set_bsr.html
file path=usr/share/doc/pcre2/html/pcre2_set_callout.html
file path=usr/share/doc/pcre2/html/pcre2_set_character_tables.html
file path=usr/share/doc/pcre2/html/pcre2_set_compile_extra_options.html
file path=usr/share/doc/pcre2/html/pcre2_set_compile_recursion_guard.html
file path=usr/share/doc/pcre2/html/pcre2_set_depth_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_glob_escape.html
file path=usr/share/doc/pcre2/html/pcre2_set_glob_separator.html
file path=usr/share/doc/pcre2/html/pcre2_set_heap_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_match_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_max_pattern_length.html
file path=usr/share/doc/pcre2/html/pcre2_set_newline.html
file path=usr/share/doc/pcre2/html/pcre2_set_offset_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_parens_nest_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_recursion_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_recursion_memory_management.html
file path=usr/share/doc/pcre2/html/pcre2_substitute.html
file path=usr/share/doc/pcre2/html/pcre2_substring_copy_byname.html
file path=usr/share/doc/pcre2/html/pcre2_substring_copy_bynumber.html
file path=usr/share/doc/pcre2/html/pcre2_substring_free.html
file path=usr/share/doc/pcre2/html/pcre2_substring_get_byname.html
file path=usr/share/doc/pcre2/html/pcre2_substring_get_bynumber.html
file path=usr/share/doc/pcre2/html/pcre2_substring_length_byname.html
file path=usr/share/doc/pcre2/html/pcre2_substring_length_bynumber.html
file path=usr/share/doc/pcre2/html/pcre2_substring_list_free.html
file path=usr/share/doc/pcre2/html/pcre2_substring_list_get.html
file path=usr/share/doc/pcre2/html/pcre2_substring_nametable_scan.html
file path=usr/share/doc/pcre2/html/pcre2_substring_number_from_name.html
file path=usr/share/doc/pcre2/html/pcre2api.html
file path=usr/share/doc/pcre2/html/pcre2build.html
file path=usr/share/doc/pcre2/html/pcre2callout.html
file path=usr/share/doc/pcre2/html/pcre2compat.html
file path=usr/share/doc/pcre2/html/pcre2convert.html
file path=usr/share/doc/pcre2/html/pcre2demo.html
file path=usr/share/doc/pcre2/html/pcre2grep.html
file path=usr/share/doc/pcre2/html/pcre2jit.html
file path=usr/share/doc/pcre2/html/pcre2limits.html
file path=usr/share/doc/pcre2/html/pcre2matching.html
file path=usr/share/doc/pcre2/html/pcre2partial.html
file path=usr/share/doc/pcre2/html/pcre2pattern.html
file path=usr/share/doc/pcre2/html/pcre2perform.html
file path=usr/share/doc/pcre2/html/pcre2posix.html
file path=usr/share/doc/pcre2/html/pcre2sample.html
file path=usr/share/doc/pcre2/html/pcre2serialize.html
file path=usr/share/doc/pcre2/html/pcre2syntax.html
file path=usr/share/doc/pcre2/html/pcre2test.html
file path=usr/share/doc/pcre2/html/pcre2unicode.html
file path=usr/share/doc/pcre2/pcre2-config.txt
file path=usr/share/doc/pcre2/pcre2.txt
file path=usr/share/doc/pcre2/pcre2grep.txt
file path=usr/share/doc/pcre2/pcre2test.txt
file path=usr/share/man/man1/pcre2-config.1
file path=usr/share/man/man1/pcre2grep.1
file path=usr/share/man/man1/pcre2test.1
file path=usr/share/man/man3/pcre2.3
file path=usr/share/man/man3/pcre2_callout_enumerate.3
file path=usr/share/man/man3/pcre2_code_copy.3
file path=usr/share/man/man3/pcre2_code_copy_with_tables.3
file path=usr/share/man/man3/pcre2_code_free.3
file path=usr/share/man/man3/pcre2_compile.3
file path=usr/share/man/man3/pcre2_compile_context_copy.3
file path=usr/share/man/man3/pcre2_compile_context_create.3
file path=usr/share/man/man3/pcre2_compile_context_free.3
file path=usr/share/man/man3/pcre2_config.3
file path=usr/share/man/man3/pcre2_convert_context_copy.3
file path=usr/share/man/man3/pcre2_convert_context_create.3
file path=usr/share/man/man3/pcre2_convert_context_free.3
file path=usr/share/man/man3/pcre2_converted_pattern_free.3
file path=usr/share/man/man3/pcre2_dfa_match.3
file path=usr/share/man/man3/pcre2_general_context_copy.3
file path=usr/share/man/man3/pcre2_general_context_create.3
file path=usr/share/man/man3/pcre2_general_context_free.3
file path=usr/share/man/man3/pcre2_get_error_message.3
file path=usr/share/man/man3/pcre2_get_mark.3
file path=usr/share/man/man3/pcre2_get_ovector_count.3
file path=usr/share/man/man3/pcre2_get_ovector_pointer.3
file path=usr/share/man/man3/pcre2_get_startchar.3
file path=usr/share/man/man3/pcre2_jit_compile.3
file path=usr/share/man/man3/pcre2_jit_free_unused_memory.3
file path=usr/share/man/man3/pcre2_jit_match.3
file path=usr/share/man/man3/pcre2_jit_stack_assign.3
file path=usr/share/man/man3/pcre2_jit_stack_create.3
file path=usr/share/man/man3/pcre2_jit_stack_free.3
file path=usr/share/man/man3/pcre2_maketables.3
file path=usr/share/man/man3/pcre2_match.3
file path=usr/share/man/man3/pcre2_match_context_copy.3
file path=usr/share/man/man3/pcre2_match_context_create.3
file path=usr/share/man/man3/pcre2_match_context_free.3
file path=usr/share/man/man3/pcre2_match_data_create.3
file path=usr/share/man/man3/pcre2_match_data_create_from_pattern.3
file path=usr/share/man/man3/pcre2_match_data_free.3
file path=usr/share/man/man3/pcre2_pattern_convert.3
file path=usr/share/man/man3/pcre2_pattern_info.3
file path=usr/share/man/man3/pcre2_serialize_decode.3
file path=usr/share/man/man3/pcre2_serialize_encode.3
file path=usr/share/man/man3/pcre2_serialize_free.3
file path=usr/share/man/man3/pcre2_serialize_get_number_of_codes.3
file path=usr/share/man/man3/pcre2_set_bsr.3
file path=usr/share/man/man3/pcre2_set_callout.3
file path=usr/share/man/man3/pcre2_set_character_tables.3
file path=usr/share/man/man3/pcre2_set_compile_extra_options.3
file path=usr/share/man/man3/pcre2_set_compile_recursion_guard.3
file path=usr/share/man/man3/pcre2_set_depth_limit.3
file path=usr/share/man/man3/pcre2_set_glob_escape.3
file path=usr/share/man/man3/pcre2_set_glob_separator.3
file path=usr/share/man/man3/pcre2_set_heap_limit.3
file path=usr/share/man/man3/pcre2_set_match_limit.3
file path=usr/share/man/man3/pcre2_set_max_pattern_length.3
file path=usr/share/man/man3/pcre2_set_newline.3
file path=usr/share/man/man3/pcre2_set_offset_limit.3
file path=usr/share/man/man3/pcre2_set_parens_nest_limit.3
file path=usr/share/man/man3/pcre2_set_recursion_limit.3
file path=usr/share/man/man3/pcre2_set_recursion_memory_management.3
file path=usr/share/man/man3/pcre2_substitute.3
file path=usr/share/man/man3/pcre2_substring_copy_byname.3
file path=usr/share/man/man3/pcre2_substring_copy_bynumber.3
file path=usr/share/man/man3/pcre2_substring_free.3
file path=usr/share/man/man3/pcre2_substring_get_byname.3
file path=usr/share/man/man3/pcre2_substring_get_bynumber.3
file path=usr/share/man/man3/pcre2_substring_length_byname.3
file path=usr/share/man/man3/pcre2_substring_length_bynumber.3
file path=usr/share/man/man3/pcre2_substring_list_free.3
file path=usr/share/man/man3/pcre2_substring_list_get.3
file path=usr/share/man/man3/pcre2_substring_nametable_scan.3
file path=usr/share/man/man3/pcre2_substring_number_from_name.3
file path=usr/share/man/man3/pcre2api.3
file path=usr/share/man/man3/pcre2build.3
file path=usr/share/man/man3/pcre2callout.3
file path=usr/share/man/man3/pcre2compat.3
file path=usr/share/man/man3/pcre2convert.3
file path=usr/share/man/man3/pcre2demo.3
file path=usr/share/man/man3/pcre2jit.3
file path=usr/share/man/man3/pcre2limits.3
file path=usr/share/man/man3/pcre2matching.3
file path=usr/share/man/man3/pcre2partial.3
file path=usr/share/man/man3/pcre2pattern.3
file path=usr/share/man/man3/pcre2perform.3
file path=usr/share/man/man3/pcre2posix.3
file path=usr/share/man/man3/pcre2sample.3
file path=usr/share/man/man3/pcre2serialize.3
file path=usr/share/man/man3/pcre2syntax.3
file path=usr/share/man/man3/pcre2unicode.3
components/library/pcre2/patches/01-doc.patch
New file
@@ -0,0 +1,26 @@
# Update doc files regarding JIT support on Solaris.
# Patch was developed in-house and is not appropriate for upstream.
--- pcre2-10.23/doc/pcre2jit.3.orig    2017-03-27 11:01:32.768347866 +0000
+++ pcre2-10.23/doc/pcre2jit.3    2017-03-27 11:02:29.933896903 +0000
@@ -35,6 +35,8 @@
   SPARC 32-bit
 .sp
 If --enable-jit is set on an unsupported platform, compilation fails.
+.sp
+JIT support is not available on OpenIndiana.
 .P
 A program can tell if JIT support is available by calling \fBpcre2_config()\fP
 with the PCRE2_CONFIG_JIT option. The result is 1 when JIT is available, and 0
--- pcre2-10.23/doc/html/pcre2jit.html.orig    2017-03-27 11:03:11.156908462 +0000
+++ pcre2-10.23/doc/html/pcre2jit.html    2017-03-27 11:04:11.020796356 +0000
@@ -61,6 +61,9 @@
 If --enable-jit is set on an unsupported platform, compilation fails.
 </P>
 <P>
+JIT support is not available on OpenIndiana.
+</P>
+<P>
 A program can tell if JIT support is available by calling <b>pcre2_config()</b>
 with the PCRE2_CONFIG_JIT option. The result is 1 when JIT is available, and 0
 otherwise. However, a simple program does not need to check this in order to
components/library/pcre2/patches/05-pcre2-config.in.patch
New file
@@ -0,0 +1,17 @@
/usr/lib/ is default library path and thus it shouldn't be in RPATH and RUNPATH.
-L/-R with /usr/lib are not necessary for OpenIndiana. The linker knows better.
This patch should be sent upstream.
--- pcre2-10.23/pcre2-config.in.orig    2017-03-27 11:14:33.662291129 +0000
+++ pcre2-10.23/pcre2-config.in    2017-03-27 11:14:50.429500728 +0000
@@ -29,9 +29,6 @@
 libR=
 case `uname -s` in
-  *SunOS*)
-  libR=" -R@libdir@"
-  ;;
   *BSD*)
   libR=" -Wl,-R@libdir@"
   ;;
components/library/pcre2/pcre2.p5m
New file
@@ -0,0 +1,255 @@
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2018, Michal Nowak
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="Version 2 of Perl-Compatible Regular Expressions"
set name=info.classification value=org.opensolaris.category.2008:Development/C
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
# pcre2-config contains embedded paths, so swap these around.
file usr/bin/pcre2-config path=usr/bin/$(MACH64)/pcre2-config
file usr/bin/$(MACH32)/pcre2-config path=usr/bin/pcre2-config
file path=usr/bin/$(MACH32)/pcre2grep
file path=usr/bin/$(MACH32)/pcre2test
file path=usr/bin/pcre2grep
file path=usr/bin/pcre2test
file path=usr/include/pcre/pcre2.h
file path=usr/include/pcre/pcre2posix.h
link path=usr/lib/$(MACH64)/libpcre2-8.so target=libpcre2-8.so.0.7.0
link path=usr/lib/$(MACH64)/libpcre2-8.so.0 target=libpcre2-8.so.0.7.0
file path=usr/lib/$(MACH64)/libpcre2-8.so.0.7.0
link path=usr/lib/$(MACH64)/libpcre2-posix.so target=libpcre2-posix.so.2.0.0
link path=usr/lib/$(MACH64)/libpcre2-posix.so.2 target=libpcre2-posix.so.2.0.0
file path=usr/lib/$(MACH64)/libpcre2-posix.so.2.0.0
file path=usr/lib/$(MACH64)/pkgconfig/libpcre2-8.pc
file path=usr/lib/$(MACH64)/pkgconfig/libpcre2-posix.pc
link path=usr/lib/libpcre2-8.so target=libpcre2-8.so.0.7.0
link path=usr/lib/libpcre2-8.so.0 target=libpcre2-8.so.0.7.0
file path=usr/lib/libpcre2-8.so.0.7.0
link path=usr/lib/libpcre2-posix.so target=libpcre2-posix.so.2.0.0
link path=usr/lib/libpcre2-posix.so.2 target=libpcre2-posix.so.2.0.0
file path=usr/lib/libpcre2-posix.so.2.0.0
file path=usr/lib/pkgconfig/libpcre2-8.pc
file path=usr/lib/pkgconfig/libpcre2-posix.pc
file path=usr/share/doc/pcre2/AUTHORS
file path=usr/share/doc/pcre2/COPYING
file path=usr/share/doc/pcre2/ChangeLog
file path=usr/share/doc/pcre2/LICENCE
file path=usr/share/doc/pcre2/NEWS
file path=usr/share/doc/pcre2/README
file path=usr/share/doc/pcre2/html/NON-AUTOTOOLS-BUILD.txt
file path=usr/share/doc/pcre2/html/README.txt
file path=usr/share/doc/pcre2/html/index.html
file path=usr/share/doc/pcre2/html/pcre2-config.html
file path=usr/share/doc/pcre2/html/pcre2.html
file path=usr/share/doc/pcre2/html/pcre2_callout_enumerate.html
file path=usr/share/doc/pcre2/html/pcre2_code_copy.html
file path=usr/share/doc/pcre2/html/pcre2_code_copy_with_tables.html
file path=usr/share/doc/pcre2/html/pcre2_code_free.html
file path=usr/share/doc/pcre2/html/pcre2_compile.html
file path=usr/share/doc/pcre2/html/pcre2_compile_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_compile_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_compile_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_config.html
file path=usr/share/doc/pcre2/html/pcre2_convert_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_convert_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_convert_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_converted_pattern_free.html
file path=usr/share/doc/pcre2/html/pcre2_dfa_match.html
file path=usr/share/doc/pcre2/html/pcre2_general_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_general_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_general_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_get_error_message.html
file path=usr/share/doc/pcre2/html/pcre2_get_mark.html
file path=usr/share/doc/pcre2/html/pcre2_get_ovector_count.html
file path=usr/share/doc/pcre2/html/pcre2_get_ovector_pointer.html
file path=usr/share/doc/pcre2/html/pcre2_get_startchar.html
file path=usr/share/doc/pcre2/html/pcre2_jit_compile.html
file path=usr/share/doc/pcre2/html/pcre2_jit_free_unused_memory.html
file path=usr/share/doc/pcre2/html/pcre2_jit_match.html
file path=usr/share/doc/pcre2/html/pcre2_jit_stack_assign.html
file path=usr/share/doc/pcre2/html/pcre2_jit_stack_create.html
file path=usr/share/doc/pcre2/html/pcre2_jit_stack_free.html
file path=usr/share/doc/pcre2/html/pcre2_maketables.html
file path=usr/share/doc/pcre2/html/pcre2_match.html
file path=usr/share/doc/pcre2/html/pcre2_match_context_copy.html
file path=usr/share/doc/pcre2/html/pcre2_match_context_create.html
file path=usr/share/doc/pcre2/html/pcre2_match_context_free.html
file path=usr/share/doc/pcre2/html/pcre2_match_data_create.html
file path=usr/share/doc/pcre2/html/pcre2_match_data_create_from_pattern.html
file path=usr/share/doc/pcre2/html/pcre2_match_data_free.html
file path=usr/share/doc/pcre2/html/pcre2_pattern_convert.html
file path=usr/share/doc/pcre2/html/pcre2_pattern_info.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_decode.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_encode.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_free.html
file path=usr/share/doc/pcre2/html/pcre2_serialize_get_number_of_codes.html
file path=usr/share/doc/pcre2/html/pcre2_set_bsr.html
file path=usr/share/doc/pcre2/html/pcre2_set_callout.html
file path=usr/share/doc/pcre2/html/pcre2_set_character_tables.html
file path=usr/share/doc/pcre2/html/pcre2_set_compile_extra_options.html
file path=usr/share/doc/pcre2/html/pcre2_set_compile_recursion_guard.html
file path=usr/share/doc/pcre2/html/pcre2_set_depth_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_glob_escape.html
file path=usr/share/doc/pcre2/html/pcre2_set_glob_separator.html
file path=usr/share/doc/pcre2/html/pcre2_set_heap_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_match_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_max_pattern_length.html
file path=usr/share/doc/pcre2/html/pcre2_set_newline.html
file path=usr/share/doc/pcre2/html/pcre2_set_offset_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_parens_nest_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_recursion_limit.html
file path=usr/share/doc/pcre2/html/pcre2_set_recursion_memory_management.html
file path=usr/share/doc/pcre2/html/pcre2_substitute.html
file path=usr/share/doc/pcre2/html/pcre2_substring_copy_byname.html
file path=usr/share/doc/pcre2/html/pcre2_substring_copy_bynumber.html
file path=usr/share/doc/pcre2/html/pcre2_substring_free.html
file path=usr/share/doc/pcre2/html/pcre2_substring_get_byname.html
file path=usr/share/doc/pcre2/html/pcre2_substring_get_bynumber.html
file path=usr/share/doc/pcre2/html/pcre2_substring_length_byname.html
file path=usr/share/doc/pcre2/html/pcre2_substring_length_bynumber.html
file path=usr/share/doc/pcre2/html/pcre2_substring_list_free.html
file path=usr/share/doc/pcre2/html/pcre2_substring_list_get.html
file path=usr/share/doc/pcre2/html/pcre2_substring_nametable_scan.html
file path=usr/share/doc/pcre2/html/pcre2_substring_number_from_name.html
file path=usr/share/doc/pcre2/html/pcre2api.html
file path=usr/share/doc/pcre2/html/pcre2build.html
file path=usr/share/doc/pcre2/html/pcre2callout.html
file path=usr/share/doc/pcre2/html/pcre2compat.html
file path=usr/share/doc/pcre2/html/pcre2convert.html
file path=usr/share/doc/pcre2/html/pcre2demo.html
file path=usr/share/doc/pcre2/html/pcre2grep.html
file path=usr/share/doc/pcre2/html/pcre2jit.html
file path=usr/share/doc/pcre2/html/pcre2limits.html
file path=usr/share/doc/pcre2/html/pcre2matching.html
file path=usr/share/doc/pcre2/html/pcre2partial.html
file path=usr/share/doc/pcre2/html/pcre2pattern.html
file path=usr/share/doc/pcre2/html/pcre2perform.html
file path=usr/share/doc/pcre2/html/pcre2posix.html
file path=usr/share/doc/pcre2/html/pcre2sample.html
file path=usr/share/doc/pcre2/html/pcre2serialize.html
file path=usr/share/doc/pcre2/html/pcre2syntax.html
file path=usr/share/doc/pcre2/html/pcre2test.html
file path=usr/share/doc/pcre2/html/pcre2unicode.html
file path=usr/share/doc/pcre2/pcre2-config.txt
file path=usr/share/doc/pcre2/pcre2.txt
file path=usr/share/doc/pcre2/pcre2grep.txt
file path=usr/share/doc/pcre2/pcre2test.txt
file path=usr/share/man/man1/pcre2-config.1
file path=usr/share/man/man1/pcre2grep.1
file path=usr/share/man/man1/pcre2test.1
file path=usr/share/man/man3/pcre2.3
file path=usr/share/man/man3/pcre2_callout_enumerate.3
file path=usr/share/man/man3/pcre2_code_copy.3
file path=usr/share/man/man3/pcre2_code_copy_with_tables.3
file path=usr/share/man/man3/pcre2_code_free.3
file path=usr/share/man/man3/pcre2_compile.3
file path=usr/share/man/man3/pcre2_compile_context_copy.3
file path=usr/share/man/man3/pcre2_compile_context_create.3
file path=usr/share/man/man3/pcre2_compile_context_free.3
file path=usr/share/man/man3/pcre2_config.3
file path=usr/share/man/man3/pcre2_convert_context_copy.3
file path=usr/share/man/man3/pcre2_convert_context_create.3
file path=usr/share/man/man3/pcre2_convert_context_free.3
file path=usr/share/man/man3/pcre2_converted_pattern_free.3
file path=usr/share/man/man3/pcre2_dfa_match.3
file path=usr/share/man/man3/pcre2_general_context_copy.3
file path=usr/share/man/man3/pcre2_general_context_create.3
file path=usr/share/man/man3/pcre2_general_context_free.3
file path=usr/share/man/man3/pcre2_get_error_message.3
file path=usr/share/man/man3/pcre2_get_mark.3
file path=usr/share/man/man3/pcre2_get_ovector_count.3
file path=usr/share/man/man3/pcre2_get_ovector_pointer.3
file path=usr/share/man/man3/pcre2_get_startchar.3
file path=usr/share/man/man3/pcre2_jit_compile.3
file path=usr/share/man/man3/pcre2_jit_free_unused_memory.3
file path=usr/share/man/man3/pcre2_jit_match.3
file path=usr/share/man/man3/pcre2_jit_stack_assign.3
file path=usr/share/man/man3/pcre2_jit_stack_create.3
file path=usr/share/man/man3/pcre2_jit_stack_free.3
file path=usr/share/man/man3/pcre2_maketables.3
file path=usr/share/man/man3/pcre2_match.3
file path=usr/share/man/man3/pcre2_match_context_copy.3
file path=usr/share/man/man3/pcre2_match_context_create.3
file path=usr/share/man/man3/pcre2_match_context_free.3
file path=usr/share/man/man3/pcre2_match_data_create.3
file path=usr/share/man/man3/pcre2_match_data_create_from_pattern.3
file path=usr/share/man/man3/pcre2_match_data_free.3
file path=usr/share/man/man3/pcre2_pattern_convert.3
file path=usr/share/man/man3/pcre2_pattern_info.3
file path=usr/share/man/man3/pcre2_serialize_decode.3
file path=usr/share/man/man3/pcre2_serialize_encode.3
file path=usr/share/man/man3/pcre2_serialize_free.3
file path=usr/share/man/man3/pcre2_serialize_get_number_of_codes.3
file path=usr/share/man/man3/pcre2_set_bsr.3
file path=usr/share/man/man3/pcre2_set_callout.3
file path=usr/share/man/man3/pcre2_set_character_tables.3
file path=usr/share/man/man3/pcre2_set_compile_extra_options.3
file path=usr/share/man/man3/pcre2_set_compile_recursion_guard.3
file path=usr/share/man/man3/pcre2_set_depth_limit.3
file path=usr/share/man/man3/pcre2_set_glob_escape.3
file path=usr/share/man/man3/pcre2_set_glob_separator.3
file path=usr/share/man/man3/pcre2_set_heap_limit.3
file path=usr/share/man/man3/pcre2_set_match_limit.3
file path=usr/share/man/man3/pcre2_set_max_pattern_length.3
file path=usr/share/man/man3/pcre2_set_newline.3
file path=usr/share/man/man3/pcre2_set_offset_limit.3
file path=usr/share/man/man3/pcre2_set_parens_nest_limit.3
file path=usr/share/man/man3/pcre2_set_recursion_limit.3
file path=usr/share/man/man3/pcre2_set_recursion_memory_management.3
file path=usr/share/man/man3/pcre2_substitute.3
file path=usr/share/man/man3/pcre2_substring_copy_byname.3
file path=usr/share/man/man3/pcre2_substring_copy_bynumber.3
file path=usr/share/man/man3/pcre2_substring_free.3
file path=usr/share/man/man3/pcre2_substring_get_byname.3
file path=usr/share/man/man3/pcre2_substring_get_bynumber.3
file path=usr/share/man/man3/pcre2_substring_length_byname.3
file path=usr/share/man/man3/pcre2_substring_length_bynumber.3
file path=usr/share/man/man3/pcre2_substring_list_free.3
file path=usr/share/man/man3/pcre2_substring_list_get.3
file path=usr/share/man/man3/pcre2_substring_nametable_scan.3
file path=usr/share/man/man3/pcre2_substring_number_from_name.3
file path=usr/share/man/man3/pcre2api.3
file path=usr/share/man/man3/pcre2build.3
file path=usr/share/man/man3/pcre2callout.3
file path=usr/share/man/man3/pcre2compat.3
file path=usr/share/man/man3/pcre2convert.3
file path=usr/share/man/man3/pcre2demo.3
file path=usr/share/man/man3/pcre2jit.3
file path=usr/share/man/man3/pcre2limits.3
file path=usr/share/man/man3/pcre2matching.3
file path=usr/share/man/man3/pcre2partial.3
file path=usr/share/man/man3/pcre2pattern.3
file path=usr/share/man/man3/pcre2perform.3
file path=usr/share/man/man3/pcre2posix.3
file path=usr/share/man/man3/pcre2sample.3
file path=usr/share/man/man3/pcre2serialize.3
file path=usr/share/man/man3/pcre2syntax.3
file path=usr/share/man/man3/pcre2unicode.3
components/library/pcre2/test/results-all.master
New file
@@ -0,0 +1,17 @@
/usr/gnu/bin/make  check-am
/usr/gnu/bin/make
/usr/gnu/bin/make  all-am
/usr/gnu/bin/make  check-TESTS
PASS: RunTest
PASS: RunGrepTest
============================================================================
Testsuite summary for PCRE2 10.31
============================================================================
# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
tools/.gnupg/pubring.gpg
Binary files differ