components/groff/patches/fix-groffer.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 21 Jul 2014 14:05:13 -0700
changeset 2005 ef2abe232400
parent 1883 bb9b7c4fd9b7
child 4121 3e66a10136ab
permissions -rw-r--r--
Close of build 53.

Make sure that this groffer sub-script uses 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)