--- a/components/gawk/Makefile Thu Sep 08 08:47:55 2016 -0700
+++ b/components/gawk/Makefile Thu Sep 08 09:15:40 2016 -0700
@@ -31,6 +31,14 @@
COMPONENT_ARCHIVE_HASH= \
sha256:e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625
+# Adjust references to section 3am to be section 3 in the extensions man pages.
+COMPONENT_POST_CONFIGURE_ACTION = \
+ (cd $(SOURCE_DIR)/extension ; \
+ mlist=`/usr/bin/find . -name '*.3am'` ; \
+ for f in $$mlist ; do \
+ $(GSED) -i -e 's|3am|3|g' $$f ; \
+ done)
+
# The additional gawk specific set of transforms to be applied to the
# test results to try to normalize them.
COMPONENT_TEST_TRANSFORMS += \
--- a/components/gawk/gawk.p5m Thu Sep 08 08:47:55 2016 -0700
+++ b/components/gawk/gawk.p5m Thu Sep 08 09:15:40 2016 -0700
@@ -18,13 +18,15 @@
#
# CDDL HEADER END
#
-# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
#
# pkg.linted actions are needed to prevent lint errors for 64-bit binaries in
# 32-bit path.
<transform file path=usr/lib/gawk/.*\.so -> default pkg.linted.userland.action001.2 true>
<transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
+<transform file path=(.+)/man/man3/(.+).3$ -> \
+ set action.hash %<1>/man/man3/%<2>.3am>
set name=pkg.fmri value=pkg:/text/gawk@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="GNU awk"
set name=pkg.description \
@@ -98,15 +100,15 @@
link path=usr/share/man/man1/gawk.1 target=../../../gnu/share/man/man1/awk.1 \
facet.compat.gnulinks=all
file path=usr/share/man/man1/igawk.1
-file path=usr/share/man/man3/filefuncs.3am
-file path=usr/share/man/man3/fnmatch.3am
-file path=usr/share/man/man3/fork.3am
-file path=usr/share/man/man3/inplace.3am
-file path=usr/share/man/man3/ordchr.3am
-file path=usr/share/man/man3/readdir.3am
-file path=usr/share/man/man3/readfile.3am
-file path=usr/share/man/man3/revoutput.3am
-file path=usr/share/man/man3/revtwoway.3am
-file path=usr/share/man/man3/rwarray.3am
+file path=usr/share/man/man3/filefuncs.3
+file path=usr/share/man/man3/fnmatch.3
+file path=usr/share/man/man3/fork.3
+file path=usr/share/man/man3/inplace.3
+file path=usr/share/man/man3/ordchr.3
+file path=usr/share/man/man3/readdir.3
+file path=usr/share/man/man3/readfile.3
+file path=usr/share/man/man3/revoutput.3
+file path=usr/share/man/man3/revtwoway.3
+file path=usr/share/man/man3/rwarray.3
file path=usr/share/man/man3/time.3am
license gawk.license license="GPLv3, FDLv1.3"