texlive[51852] Build/source/texk: do not log \openout files for
commits+karl at tug.org
commits+karl at tug.org
Sat Aug 10 00:48:24 CEST 2019
Revision: 51852
http://tug.org/svn/texlive?view=revision&revision=51852
Author: karl
Date: 2019-08-10 00:48:24 +0200 (Sat, 10 Aug 2019)
Log Message:
-----------
do not log \openout files for original (ini)tex
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/ChangeLog
trunk/Build/source/texk/kpathsea/texmf.cnf
trunk/Build/source/texk/web2c/ChangeLog
trunk/Build/source/texk/web2c/cpascal.h
trunk/Build/source/texk/web2c/lib/ChangeLog
trunk/Build/source/texk/web2c/lib/texmfmp.c
trunk/Build/source/texk/web2c/tex.ch
trunk/Build/source/texk/web2c/triptest.test
trunk/Build/source/texk/web2c/triptrap/trip.diffs
trunk/Build/source/texk/web2c/web2c/ChangeLog
trunk/Build/source/texk/web2c/web2c/texmf.defines
Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/kpathsea/ChangeLog 2019-08-09 22:48:24 UTC (rev 51852)
@@ -1,5 +1,9 @@
2019-08-09 Karl Berry <karl at freefriends.org>
+ * texmf.cnf (log_openout): new configuration variable, true
+ by default for all but tex and initex, to remove one technical
+ trip incompatibility. Report from David Fuchs.
+
* cnf.c,
* progname.h,
* tex-file.c,
Modified: trunk/Build/source/texk/kpathsea/texmf.cnf
===================================================================
--- trunk/Build/source/texk/kpathsea/texmf.cnf 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/kpathsea/texmf.cnf 2019-08-09 22:48:24 UTC (rev 51852)
@@ -695,6 +695,12 @@
parse_first_line.tex = f
parse_first_line.initex = f
+% Normally we mention files created by \openout in the log file,
+% but again, trip-compatibility forbids this for (ini)tex.
+log_openout = t
+log_openout.tex = f
+log_openout.initex = f
+
% Control file:line:error style messages.
file_line_error_style = f
Modified: trunk/Build/source/texk/web2c/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/ChangeLog 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/ChangeLog 2019-08-09 22:48:24 UTC (rev 51852)
@@ -1,3 +1,12 @@
+2019-08-09 Karl Berry <karl at freefriends.org>
+
+ * tex.ch (53.1374): only log \openout files if the log_openout
+ config value is true. Report from David Fuchs.
+ * cpascal.h (texmfyes): #define texmf_yesno, for web visibility.
+ * triptest.test: no need to remove \openout lines since they are
+ no longer written.
+ * triptrap/trip.diffs: update.
+
2019-08-06 Karl Berry <karl at freefriends.org>
* texmfmp-help.h (ALEPHHELP, EPTEXHELP, ETEXHELP, EUPTEXHELP,
Modified: trunk/Build/source/texk/web2c/cpascal.h
===================================================================
--- trunk/Build/source/texk/web2c/cpascal.h 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/cpascal.h 2019-08-09 22:48:24 UTC (rev 51852)
@@ -285,6 +285,7 @@
#define kpsesrccompile kpse_src_compile
#define recorderchangefilename recorder_change_filename
#define recorderenabled recorder_enabled
+#define texmfyesno texmf_yesno
/* We need a new type for the argument parsing, too. */
typedef struct option getoptstruct;
Modified: trunk/Build/source/texk/web2c/lib/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/lib/ChangeLog 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/lib/ChangeLog 2019-08-09 22:48:24 UTC (rev 51852)
@@ -1,5 +1,8 @@
2019-08-09 Karl Berry <karl at freefriends.org>
+ * texmfmp.c (texmf_yesno): no longer static, since we call it
+ from tex.ch.
+
* texmfmp.c: doc fixes; most "fixme"s were nothing that we ever
need to fix at this late date.
Modified: trunk/Build/source/texk/web2c/lib/texmfmp.c
===================================================================
--- trunk/Build/source/texk/web2c/lib/texmfmp.c 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/lib/texmfmp.c 2019-08-09 22:48:24 UTC (rev 51852)
@@ -709,8 +709,10 @@
/* Try to figure out if we have been given a filename. */
static string get_input_file_name (void);
-/* Get a true/false value for a variable from texmf.cnf and the environment. */
-static boolean
+/* Get a true/false value for a variable from texmf.cnf and the
+ environment. Not static because we call it from tex.ch. */
+
+boolean
texmf_yesno(const_string var)
{
string value = kpse_var_value (var);
Modified: trunk/Build/source/texk/web2c/tex.ch
===================================================================
--- trunk/Build/source/texk/web2c/tex.ch 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/tex.ch 2019-08-09 22:48:24 UTC (rev 51852)
@@ -4391,7 +4391,7 @@
prompt_file_name("output file name",".tex");
write_open[j]:=true;
{If on first line of input, log file is not ready yet, so don't log.}
- if log_opened then begin
+ if log_opened and texmf_yesno('log_openout') then begin
old_setting:=selector;
if (tracing_online<=0) then
selector:=log_only {Show what we're doing in the log file.}
Modified: trunk/Build/source/texk/web2c/triptest.test
===================================================================
--- trunk/Build/source/texk/web2c/triptest.test 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/triptest.test 2019-08-09 22:48:24 UTC (rev 51852)
@@ -20,7 +20,6 @@
cat >filter <<-\_EOF
s,^\*\*(\./trip\.tex ##,** \&trip trip \
(trip.tex ##,
- /^\\openout.*/,/^$/d
s/ (TeX Live 20[^)]*)//
s/(preloaded format=tex)/(INITEX)/
s/format=trip [^)][^)]*)/format=trip)/
Modified: trunk/Build/source/texk/web2c/triptrap/trip.diffs
===================================================================
--- trunk/Build/source/texk/web2c/triptrap/trip.diffs 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/triptrap/trip.diffs 2019-08-09 22:48:24 UTC (rev 51852)
@@ -44,62 +44,57 @@
< (trip.tex ##
---
> (./trip.tex ##
-58a59,62
-> \openout0 = `8terminal.tex'.
->
-> \openout10 = `tripos.tex'.
->
-1405c1409
+1405c1405
< \vbox(16383.99998+0.0)x1000.0, glue set 16342.0fil
---
> \vbox(16383.99998+0.0)x1000.0, glue set 16341.99998fil
-1954c1958
+1954c1954
< (tripos.tex
---
> (./tripos.tex
-2018c2022
+2018c2018
< \vbox(16383.99998+1.0)x100.0, glue set 16239.0fil
---
> \vbox(16383.99998+1.0)x100.0, glue set 16238.99998fil
-2533c2537
+2533c2533
< \vbox(16383.99998+0.0)x20.0, glue set 16331.0fil
---
> \vbox(16383.99998+0.0)x20.0, glue set 16330.99998fil
-3326c3330
+3326c3326
< \vbox(10000.0+2.0)x28.0, glue set 9737.58789fil
---
> \vbox(10000.0+2.0)x28.0, glue set 9737.58742fil
-3864c3868
+3864c3864
< \vbox(16383.99998+2.0)x100.0, glue set 16318.0fil
---
> \vbox(16383.99998+2.0)x100.0, glue set 16317.99997fil
-4034c4038
+4034c4034
< \vbox(16383.99998+0.0)x8236.0, glue set 16344.0fil
---
> \vbox(16383.99998+0.0)x8236.0, glue set 16343.99998fil
-4420c4424
+4420c4420
< \vbox(16383.99998+0.0)x100.0, glue set 16332.0fil
---
> \vbox(16383.99998+0.0)x100.0, glue set 16331.99998fil
-4742c4746
+4742c4742
< \vbox(16383.99998+0.0)x205.12613, glue set 16344.0fil
---
> \vbox(16383.99998+0.0)x205.12613, glue set 16343.99998fil
-6380c6384
+6380c6380
< (tripos.tex
---
> (./tripos.tex
-7296,7297c7300,7301
+7296,7297c7296,7297
< 47 strings out of 1674
< 253 string characters out of 8354
---
> 44 strings out of 1629
-> 261 string characters out of 15394
-7299c7303
+> 261 string characters out of 15395
+7299c7299
< 372 multiletter control sequences out of 2100
---
> 372 multiletter control sequences out of 15000+0
-7301c7305
+7301c7301
< 2 hyphenation exceptions out of 307
---
> 1 hyphenation exception out of 659
Modified: trunk/Build/source/texk/web2c/web2c/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/web2c/ChangeLog 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/web2c/ChangeLog 2019-08-09 22:48:24 UTC (rev 51852)
@@ -1,3 +1,7 @@
+2019-08-09 Karl Berry <karl at freefriends.org>
+
+ * web2c.defines (texmfyes): new function.
+
2018-11-11 Andreas Scherer <https://ascherer.github.io>
* fixwrites.c (main): check return value from fgets.
Modified: trunk/Build/source/texk/web2c/web2c/texmf.defines
===================================================================
--- trunk/Build/source/texk/web2c/web2c/texmf.defines 2019-08-09 21:03:53 UTC (rev 51851)
+++ trunk/Build/source/texk/web2c/web2c/texmf.defines 2019-08-09 22:48:24 UTC (rev 51852)
@@ -33,6 +33,7 @@
@define function roundfraction ();
@define function roundunscaled ();
@define function runsystem ();
+ at define function texmfyesno ();
@define function wopenin ();
@define function wopenout ();
More information about the tex-live-commits
mailing list