components/groff/patches/fix-groffer.patch
author osayama <osamu.sayama@oracle.com>
Thu, 29 Jan 2015 19:46:09 -0800
branchs11-update
changeset 3706 bd45826ad92c
permissions -rw-r--r--
PSARC 2013/394 groff version 1.22.2 17285077 groff package update to version 1.22 17464860 groffer fails finding support library 17621259 ggrn dumps core with 55 and more arguments 18122012 grolbp segfaults on free parameter 18159500 groff should not use ambiguous width character 18450560 /usr/bin/grops dumps core with invalid argument value 19766047 grog and gropdf should be moved in text/groff pacakge 20062059 groff section 4/5 man pages are incorrectly labeled and referenced internally 20062339 groff(5) has incorrect content 19873798 groff handles long .TH as overlapping in header and foot 20367208 preconv should use UCS-4[LE|BE] codeset in Solaris 11 UR

This patch comes from in-house and this is Solaris specific patch to use
the GNU version of soelim.

--- groff-1.22.2/contrib/groffer/perl/func.pl.orig	2013-11-20 13:51:20.387873317 -0800
+++ groff-1.22.2/contrib/groffer/perl/func.pl	2013-11-20 13:52:29.569174110 -0800
@@ -271,7 +271,7 @@
 
   my $soelim_r = '';
   $soelim_r = '-r'
-    if ! system("echo -n '' | soelim -r 2>$main::Dev_Null >$main::Dev_Null");
+    if ! system("echo -n '' | /usr/gnu/bin/soelim -r 2>$main::Dev_Null >$main::Dev_Null");
 
   ##########
   # to_tmp (<filename>)
@@ -410,7 +410,7 @@
 
       unlink $tmp_tmp if -e $tmp_tmp;
       rename $tmp_file, $tmp_tmp;
-      system("soelim -I$dir $soelim_r $tmp_tmp >$tmp_file");
+      system("/usr/gnu/bin/soelim -I$dir $soelim_r $tmp_tmp >$tmp_file");
       unlink $tmp_tmp if -e $tmp_tmp;
 
     } else {			# $Filespec_Is_Man is empty
@@ -421,9 +421,9 @@
       }
       close $fh_tmp;
       if ($dir) {
-	system("soelim -I$dir $soelim_r $tmp_tmp >$tmp_file");
+	system("/usr/gnu/bin/soelim -I$dir $soelim_r $tmp_tmp >$tmp_file");
       } else {
-	system("soelim $soelim_r $tmp_tmp >$tmp_file");
+	system("/usr/gnu/bin/soelim $soelim_r $tmp_tmp >$tmp_file");
       }
       unlink $tmp_tmp;
     }				# if ($Filespec_Is_Man)