components/groff/patches/configure_disable_troff_chk.patch
author Jiri Sasek <Jiri.Sasek@Oracle.COM>
Wed, 04 May 2016 14:21:51 -0700
changeset 5920 1e847165fde2
parent 4121 3e66a10136ab
permissions -rw-r--r--
23210161 gamin fails to build on userland nightly (99)

This patch comes from in-house and this is Solaris specific patch to disable
checking for existing troff in order to install the binaries without g prefix.

diff -ruN groff-1.22.2.org/configure groff-1.22.2/configure
--- groff-1.22.2.org/configure	2013-02-07 04:06:26.000000000 -0800
+++ groff-1.22.2/configure	2015-02-13 01:39:16.941107643 -0800
@@ -9804,18 +9804,6 @@
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAGE" >&5
 $as_echo "$PAGE" >&6; }
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for existing troff installation" >&5
-$as_echo_n "checking for existing troff installation... " >&6; }
-   if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
-     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-     g=g
-   else
-     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-     g=
-   fi
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix of system macro packages" >&5
 $as_echo_n "checking for prefix of system macro packages... " >&6; }
    sys_tmac_prefix=

diff -ruN groff-1.22.2.org/src/preproc/eqn/neqn.man groff-1.22.2/src/preproc/eqn/neqn.man
--- groff-1.22.2.org/src/preproc/eqn/neqn.man	2013-02-07 04:06:06.000000000 -0800
+++ groff-1.22.2/src/preproc/eqn/neqn.man	2015-02-13 01:49:54.038507904 -0800
@@ -16,15 +16,15 @@
 translations approved by the Free Software Foundation instead of in
 the original English.
 ..
-.TH @G@NEQN @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
+.TH GNEQN @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
 .SH NAME
-@g@neqn \- format equations for ascii output
+gneqn \- format equations for ascii output
 .SH SYNOPSIS
-.B @g@neqn
+.B gneqn
 [@g@eqn options]
 .SH DESCRIPTION
 The
-.B @g@neqn
+.B gneqn
 program is actually just a shell script which invokes the
 .BR @g@eqn (@MAN1EXT@)
 command with the
diff -ruN groff-1.22.2.org/src/preproc/tbl/tbl.man groff-1.22.2/src/preproc/tbl/tbl.man
--- groff-1.22.2.org/src/preproc/tbl/tbl.man	2013-02-07 04:06:06.000000000 -0800
+++ groff-1.22.2/src/preproc/tbl/tbl.man	2015-02-13 01:49:39.523069230 -0800
@@ -20,15 +20,15 @@
 ..
 .
 .
-.TH @G@TBL @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
+.TH GTBL @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
 .
 .
 .SH NAME
-@g@tbl \- format tables for troff
+gtbl \- format tables for troff
 .
 .
 .SH SYNOPSIS
-.SY @g@tbl
+.SY gtbl
 .OP \-Cv
 .RI [ files\~ .\|.\|.]
 .YS
@@ -605,7 +605,7 @@
 .
 .LP
 Note that
-.B @g@tbl
+.B gtbl
 computes the column widths line by line, applying \[rs]w on each entry
 which isn't a text block.
 As a consequence, constructions like
@@ -736,7 +736,7 @@
 .
 .
 .SH "INTERACTION WITH @G@EQN"
-.BR @g@tbl (@MAN1EXT@)
+.BR gtbl (@MAN1EXT@)
 should always be called before
 .BR @g@eqn (@MAN1EXT@)
 .RB ( groff (@MAN1EXT@)
@@ -759,18 +759,18 @@
 Numeric and alphabetic items may span horizontally.
 .
 .LP
-.B @g@tbl
+.B gtbl
 uses register, string, macro and diversion names beginning with the digit\~\c
 .BR 3 .
 When using
-.B @g@tbl
+.B gtbl
 you should avoid using any names beginning with a\~\c
 .BR 3 .
 .
 .
 .SH "GNU TBL WITHIN MACROS"
 Since
-.B @g@tbl
+.B gtbl
 defines its own macros (right before each table) it is necessary to use
 an `end-of-macro' macro.  Additionally, the escape character has to be switched
 off.  Here an example.
@@ -792,15 +792,15 @@
 .
 .LP
 Note, however, that not all features of
-.B @g@tbl
+.B gtbl
 can be wrapped into a macro because
-.B @g@tbl
+.B gtbl
 sees the input earlier than 
 .BR @g@troff .
 For example, number formatting with vertically aligned decimal points
 fails if those numbers are passed on as macro parameters because
 decimal point alignment is handled by
-.B @g@tbl
+.B gtbl
 itself: It only sees `\[rs]$1', `\[rs]$2', etc., and therefore can't
 recognize the decimal point.
 .
diff -ruN groff-1.22.2.org/src/roff/nroff/nroff.man groff-1.22.2/src/roff/nroff/nroff.man
--- groff-1.22.2.org/src/roff/nroff/nroff.man	2013-02-07 04:06:08.000000000 -0800
+++ groff-1.22.2/src/roff/nroff/nroff.man	2015-02-13 01:49:25.225825439 -0800
@@ -18,10 +18,10 @@
 the original English.
 ..
 .
-.TH @G@NROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
+.TH GNROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
 .
 .SH NAME
-@g@nroff \- emulate nroff command with groff
+gnroff \- emulate nroff command with groff
 .
 .SH SYNOPSIS
 .
@@ -33,7 +33,7 @@
 .    RB "[" "\\$1" "]"
 ..
 
-.SY @g@nroff
+.SY gnroff
 .OP \-CchipStUvwW
 .OP \-d cs
 .OP \-M dir
@@ -44,10 +44,10 @@
 .OP \-T name
 .RI [ file\~ .\|.\|.]
 .
-.SY @g@nroff
+.SY gnroff
 .B \-\-help
 .
-.SY @g@nroff
+.SY gnroff
 .B \-v
 |
 .B \-\-version
@@ -55,7 +55,7 @@
 .
 .SH DESCRIPTION
 The
-.B @g@nroff
+.B gnroff
 script emulates the
 .B nroff
 command using groff.
@@ -76,7 +76,7 @@
 .B \-T
 command line option (which overrides the environment variable)
 specifies a (valid) device,
-.B @g@nroff
+.B gnroff
 checks the current locale to select a default output device.
 It first tries the
 .B locale
@@ -116,7 +116,7 @@
 options have the effect described in
 .BR @g@troff (@MAN1EXT@).
 In addition,
-.B @g@nroff
+.B gnroff
 silently ignores the options
 .BR \-e ,
 .BR \-q ,