[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FTBFS with TeX Live 2018



Hi,

Cyril Brulebois <kibi@debian.org> wrote:
> Hi Hilmar,
> 
> Hilmar Preuße <hille42@web.de> (2018-04-26):
> > This is the patch for installation-howto.po.
> 
> Thanks, I've just pushed it:
> | Committed revision 71074.
> 
> > Unfortunately the build fails later on the nl localizsation:
> > 
> > xelatex -interaction=batchmode install.nl.profiled.tex
> > xelatex failed
> > install.nl.profiled.tex:75: Emergency stop.
> > install.nl.profiled.tex:75: leading text: \maketitle
> > /home/hille/installation-guide-20170614/build/build.tmp.nl.i386/dblatex/tmpUw9ouC
> > not removed
> > 
> > Unfortunately the temporary files /are/ removed, which makes debugging
> > a little bit harder. ;-(
> 
> Yes, one needs to tell it to stop doing so… (I ran into that issue in
> the past as well)…


So, here we go :-)

Attached is a patch to only remove the temporary files, when the build ran
without errors.

That should serve both situations:
- don't fill up disc space on dillon for the installation-guide builds
  (there was https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859150
  those days, which lead to above mentioned removal of tmp files)

- having the tmp files in case of build errors (especially build errors
  for pdf with dblatex can be tricky without those tmp files).


Comments?
Any objections against me applying this?


Holger


-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076
diff --git a/build/buildone.sh b/build/buildone.sh
index 3b8dc442c..6e68c2029 100755
--- a/build/buildone.sh
+++ b/build/buildone.sh
@@ -240,6 +240,7 @@ for format in $formats ; do
     case $RET in
         0)
             BUILD_OK="$BUILD_OK $format"
+            rm -r $tempdir # Clean up tmp directory, if no build errors
             ;;
         9)
             BUILD_FAIL="$BUILD_FAIL $format"
@@ -255,8 +256,6 @@ for format in $formats ; do
     esac
 done
 
-# Clean up
-rm -r $tempdir
 
 # Evaluate the overall results
 [ -n "$BUILD_SKIP" ] && echo "Info: The following formats were skipped:$BUILD_SKIP"
diff --git a/build/buildone_ng.sh b/build/buildone_ng.sh
index a2fb0ffee..d0c5b6b53 100755
--- a/build/buildone_ng.sh
+++ b/build/buildone_ng.sh
@@ -260,6 +260,7 @@ for format in $formats ; do
     case $RET in
         0)
             BUILD_OK="$BUILD_OK $format"
+            rm -r $tempdir # Clean up tmp directory, if no build errors
             ;;
         9)
             BUILD_FAIL="$BUILD_FAIL $format"
@@ -275,8 +276,6 @@ for format in $formats ; do
     esac
 done
 
-# Clean up
-rm -r $tempdir
 # Delete temporary PO files and generated XML files
 clear_po
 clear_xml

Reply to: