File latex2html-2008-buildroot.diff of Package latex2html

--- config/install.pl
+++ config/install.pl
@@ -372,7 +372,10 @@
 
 if($cfg{TEXPATH}) {
   print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n     ($cfg{TEXPATH})\n";
-  unless(mkpath($cfg{TEXPATH})) {
+  my $dest = $cfg{TEXPATH};
+  my $buildroot=$ENV{"RPM_BUILD_ROOT"};
+  $dest= "$buildroot$dest";
+  unless(mkpath($dest)) {
   #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
   #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
   #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
openSUSE Build Service is sponsored by