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

Bug#449229: tex-common: texdoc finds html pages from catalogue first



Hi Frank, hi all

the new luatex 0.20.0 ships os.tmpdir, but unfortunately a crippled
version which *ALWAYS* tries to create the tmpdir in .! I have made a
patch for luatex/os.tmpdir so that it takes a template and send it to
Taco.

For texdoclua I have applied the following patch:

Patch texdoclua becasue lfs.tmpname creates a file already so that
texdoclua breaks
---
 debian/texdoclua |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

Index: luatex-0.20.0/debian/texdoclua
===================================================================
--- luatex-0.20.0.orig/debian/texdoclua	2007-12-05 15:13:44.000000000 +0100
+++ luatex-0.20.0/debian/texdoclua	2007-12-05 15:17:43.000000000 +0100
@@ -299,14 +299,7 @@
 		  -- than once (dvi besides ps or so)
 		  -- TODO: to be done
 
-		  tmpdir = os.tmpname();
-		  is_ok_tmpdir,error_string = lfs.mkdir(tmpdir)
-		  if is_ok_tmpdir then
-		     -- 		  needs_cleanup = true;
-		  else
-		     print(error_string);
-		     os.exit(1);
-		  end
+		  tmpdir = os.tmpdir("/tmp/texdoc.XXXXXX");
 		  
 		  unzip_commandline = unzip_command .. filename .. " > " .. tmpdir .. "/" .. basename;
 		  if os.execute(unzip_commandline) then

So Frank you might add it to upstream ;-). And yes, tmpdir should
probably be checked for being nil or not?

Next upload of luatex will have both patches (save that Taco or you come
up with better patches than I did)

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>        Vienna University of Technology
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
SCRANTON (n.)
A person who, after the declaration of the bodmin (q.v.), always
says,'... But I only had the tomato soup.'
			--- Douglas Adams, The Meaning of Liff




Reply to: