16105174 update ggrep to 2.14
16059697 problem in UTILITY/GGREP
PSARC/2013/035 Update GNU grep to 2.14
--- a/components/ggrep/Makefile Mon Apr 08 10:05:47 2013 -0700
+++ b/components/ggrep/Makefile Wed Apr 10 09:05:28 2013 -0700
@@ -18,23 +18,18 @@
#
# CDDL HEADER END
#
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
#
include ../../make-rules/shared-macros.mk
COMPONENT_NAME= grep
-COMPONENT_VERSION= 2.10
+COMPONENT_VERSION= 2.14
COMPONENT_PROJECT_URL= http://gnu.org/software/grep/
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
-COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
+COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
-# Note that the 2.10 version of the compressed GNU grep tarball on
-# ftp.gnu.org is only available in .xz format. We cannot use this
-# as xz is not currently part of the Solaris 11 Update CBE. We
-# have recompressed that tarball as a .bz2 file and placed it in the
-# special Userland cache. The sha256 hash is for the payload .tar file.
COMPONENT_ARCHIVE_HASH= \
- sha256:299d0ccb0238894cc674da3c5a6a6fb82c3d63286f7f127e448e2ff97d21e2fb
+ sha256:e70e801d4fbb16e761654a58ae48bf5020621c95c8e35bd864742577685872e1
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE)
include ../../make-rules/prep.mk
@@ -47,11 +42,22 @@
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += --prefix=/usr
+# Needed for "gmake test" to work.
+# SHELLOPTS is exported via make-rules/shared-macros.mk,
+# causing the braceexpand option to be set.
+# This option causes "$1: unbound variable" errors during the check-TESTS,
+# and the gnulib-tests don't even run at all.
+# Note that the below unexports SHELLOPTS, even for targets
+# other than "test."
+unexport SHELLOPTS
+
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
+# 3 expected failures in gnulib-tests:
+# test-mbrtowc3.sh, test-mbrtowc4.sh, test-mbsrtowcs4.sh
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
--- a/components/ggrep/gnu-grep.license Mon Apr 08 10:05:47 2013 -0700
+++ b/components/ggrep/gnu-grep.license Wed Apr 10 09:05:28 2013 -0700
@@ -1,9 +1,8 @@
-For the avoidance of doubt, except that if any license choice other than
-GPL or LGPL is available it will apply instead, Oracle elects to use
-only the General Public License version 3 (GPLv3) at this time for any
-software where a choice of GPL license versions is made available with
-the language indicating that GPLv3 or any later version may be used.
-===================================================================
+------------------
+- GNU grep v2.14 -
+------------------
+
+Oracle Internal Tracking Number: 8710
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
@@ -686,7 +685,7 @@
Version 1.3, 3 November 2008
- Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2007, 2008, 2010-2012 Free Software Foundation, Inc.
<http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
--- a/components/ggrep/gnu-grep.p5m Mon Apr 08 10:05:47 2013 -0700
+++ b/components/ggrep/gnu-grep.p5m Wed Apr 10 09:05:28 2013 -0700
@@ -18,7 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
#
<transform file path=usr.*/man/.+ -> default mangler.man.stability volatile>
@@ -32,7 +32,7 @@
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=org.opensolaris.arc-caseid \
- value=PSARC/2011/397
+ value=PSARC/2013/035
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
dir path=usr
@@ -101,6 +101,8 @@
dir path=usr/share/locale/nb/LC_MESSAGES
dir path=usr/share/locale/nl
dir path=usr/share/locale/nl/LC_MESSAGES
+dir path=usr/share/locale/pa
+dir path=usr/share/locale/pa/LC_MESSAGES
dir path=usr/share/locale/pl
dir path=usr/share/locale/pl/LC_MESSAGES
dir path=usr/share/locale/pt_BR
@@ -165,6 +167,7 @@
file path=usr/share/locale/lt/LC_MESSAGES/grep.mo
file path=usr/share/locale/nb/LC_MESSAGES/grep.mo
file path=usr/share/locale/nl/LC_MESSAGES/grep.mo
+file path=usr/share/locale/pa/LC_MESSAGES/grep.mo
file path=usr/share/locale/pl/LC_MESSAGES/grep.mo
file path=usr/share/locale/pt_BR/LC_MESSAGES/grep.mo
file path=usr/share/locale/pt/LC_MESSAGES/grep.mo