texlive[52183] trunk: l3build (26sep19)

commits+karl at tug.org commits+karl at tug.org
Thu Sep 26 23:48:49 CEST 2019


Revision: 52183
          http://tug.org/svn/texlive?view=revision&revision=52183
Author:   karl
Date:     2019-09-26 23:48:49 +0200 (Thu, 26 Sep 2019)
Log Message:
-----------
l3build (26sep19)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
    trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl
    trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/l3build/README.md
    trunk/Master/texmf-dist/doc/latex/l3build/l3build.pdf
    trunk/Master/texmf-dist/doc/man/man1/l3build.1
    trunk/Master/texmf-dist/doc/man/man1/l3build.man1.pdf
    trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build.lua
    trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx

Modified: trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2019-09-26 21:48:49 UTC (rev 52183)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2019-09-18"
+release_date = "2019-09-25"
 
 -- File operations are aided by the LuaFileSystem module
 local lfs = require("lfs")
@@ -174,7 +174,7 @@
 end
 if #checkconfigs == 1 and
    checkconfigs[1] ~= "build" and
-   (options["target"] == "check" or options["target"] == "save") then
+   (options["target"] == "check" or options["target"] == "save" or options["target"] == "clean") then
    local config = "./" .. gsub(checkconfigs[1],".lua$","") .. ".lua"
    if fileexists(config) then
      dofile(config)

Modified: trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl	2019-09-26 21:48:49 UTC (rev 52183)
@@ -1095,9 +1095,10 @@
   }
   if ($opts{"backup"}) {
     $tlp->make_container($::progs{'compressor'}, $localtlpdb->root,
-                         $opts{"backupdir"}, 
-                         "${pkg}.r" . $tlp->revision,
-                         $tlp->relocated);
+                         destdir => $opts{"backupdir"}, 
+                         containername => "${pkg}.r" . $tlp->revision,
+                         relative => $tlp->relocated,
+                         user => 1);
     if ($autobackup) {
       # in case we do auto backups we remove older backups
       clear_old_backups($pkg, $opts{"backupdir"}, $autobackup);
@@ -2164,7 +2165,9 @@
         $tlp->revision . ".tar.$compressorextension\n");
       if (!$opts{"dry-run"}) {
         $tlp->make_container($::progs{'compressor'}, $localtlpdb->root,
-                             $opts{"backupdir"}, "${pkg}.r" . $tlp->revision);
+                             destdir => $opts{"backupdir"},
+                             containername => "${pkg}.r" . $tlp->revision,
+                             user => 1);
       }
     }
   }
@@ -2279,8 +2282,13 @@
     push (@rst_tlpobj, "tlpkg\\tlpobj\\$pkg.tlpobj");
     push (@rst_info, "$pkg ^($oldrev^)");
     next if ($opts{"dry-run"});
-    # create backup; make_container expects file name in a format: some-name.r[0-9]+
-    my ($size, undef, $fullname) = $localtlp->make_container("tar", $root, $temp, "__BACKUP_$pkg.r$oldrev");
+    # create backup;
+    # make_container expects filename with format: somename.r[0-9]+
+    my ($size, undef, $fullname)
+      = $localtlp->make_container("tar", $root,
+                                  destdir => $temp,
+                                  containername => "__BACKUP_$pkg.r$oldrev",
+                                  user => 1);
     if ($size <= 0) {
       tlwarn("$prg: Creation of backup container of $pkg failed.\n");
       return 1; # backup failed? abort
@@ -3200,8 +3208,10 @@
       if ($opts{"backup"} && !$opts{"dry-run"}) {
         my $compressorextension = $Compressors{$::progs{'compressor'}}{'extension'};
         $tlp->make_container($::progs{'compressor'}, $root,
-                             $opts{"backupdir"}, "${pkg}.r" . $tlp->revision,
-                             $tlp->relocated);
+                             destdir => $opts{"backupdir"},
+                             containername => "${pkg}.r" . $tlp->revision,
+                             relative => $tlp->relocated,
+                             user => 1);
         $unwind_package =
             "$opts{'backupdir'}/${pkg}.r" . $tlp->revision . ".tar.$compressorextension";
         
@@ -3239,9 +3249,12 @@
         # no backup was made, so let us create a temporary .tar file
         # of the package
         my $tlp = $localtlpdb->get_package($pkg);
-        my ($s, undef, $fullname) = $tlp->make_container("tar", $root, $temp,
-                                      "__BACKUP_${pkg}.r" . $tlp->revision,
-                                      $tlp->relocated);
+        my ($s, undef, $fullname)
+          = $tlp->make_container("tar", $root,
+                                 destdir => $temp,
+                         containername => "__BACKUP_${pkg}.r" . $tlp->revision,
+                                 relative => $tlp->relocated,
+                                 user => 1);
         if ($s <= 0) {
           tlwarn("\n$prg: Creation of backup container of $pkg failed.\n");
           tlwarn("$prg: Continuing to update other packages, please retry...\n");

Modified: trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2019-09-26 21:48:49 UTC (rev 52183)
@@ -7,6 +7,16 @@
 
 ## [Unreleased]
 
+## [2019-09-25]
+
+### Added
+
+- New `texmfdir` variable for more complex local additions
+
+### Fixed
+
+- Clean out all configuration test dirs (see #98)
+
 ## [2019-09-18]
 
 ### Added
@@ -327,7 +337,8 @@
 - Rationalise short option names: removed `-d`, `-E`, `-r`
 - Target `cmdcheck`: specific to LaTeX3 kernel work
 
-[Unreleased]: https://github.com/latex3/l3build/compare/2019-09-18...HEAD
+[Unreleased]: https://github.com/latex3/l3build/compare/2019-09-25...HEAD
+[2019-09-25]: https://github.com/latex3/l3build/compare/2019-09-18...2019-09-25
 [2019-09-18]: https://github.com/latex3/l3build/compare/2019-09-14...2019-09-18
 [2019-09-14]: https://github.com/latex3/l3build/compare/2019-08-24...2019-09-14
 [2019-08-24]: https://github.com/latex3/l3build/compare/2019-07-31...2019-08-24

Modified: trunk/Master/texmf-dist/doc/latex/l3build/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/README.md	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/doc/latex/l3build/README.md	2019-09-26 21:48:49 UTC (rev 52183)
@@ -1,7 +1,7 @@
 l3build: a testing and building system for LaTeX3
 =================================================
 
-Release 2019-09-18
+Release 2019-09-25
 
 Overview
 --------

Modified: trunk/Master/texmf-dist/doc/latex/l3build/l3build.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/man/man1/l3build.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/l3build.1	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/doc/man/man1/l3build.1	2019-09-26 21:48:49 UTC (rev 52183)
@@ -1,4 +1,4 @@
-.TH l3build 1 "2019-09-18"
+.TH l3build 1 "2019-09-25"
 .SH NAME
 l3build \- Checking and building packages
 .SH SYNOPSIS

Modified: trunk/Master/texmf-dist/doc/man/man1/l3build.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2019-09-26 21:48:49 UTC (rev 52183)
@@ -721,14 +721,21 @@
   -- Ensure there is no stray .log file
   rm(testdir,name .. logext)
   local errlevels = {}
+  local localtexmf = ""
+  if texmfdir and texmfdir ~= "" then
+    localtexmf = os_pathsep .. abspath(texmfdir) .. "//"
+  end
+  local texmfdir = abspath(texmfdir) .. "//"
   for i = 1, checkruns do
     errlevels[i] = run(
       testdir,
       -- No use of localdir here as the files get copied to testdir:
       -- avoids any paths in the logs
-      os_setenv .. " TEXINPUTS=." .. (checksearch and os_pathsep or "")
+      os_setenv .. " TEXINPUTS=." .. localtexmf
+        .. (checksearch and os_pathsep or "")
         .. os_concat ..
-      os_setenv .. " LUAINPUTS=." .. (checksearch and os_pathsep or "")
+      os_setenv .. " LUAINPUTS=." .. localtexmf
+        .. (checksearch and os_pathsep or "")
         .. os_concat ..
       -- Avoid spurious output from (u)pTeX
       os_setenv .. " GUESS_INPUT_KANJI_ENCODING=0"

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua	2019-09-26 21:48:49 UTC (rev 52183)
@@ -63,7 +63,12 @@
   local vars = vars or {}
   -- Allow for local texmf files
   local env = os_setenv .. " TEXMFCNF=." .. os_pathsep
+  local localtexmf = ""
+  if texmfdir and texmfdir ~= "" then
+    localtexmf = os_pathsep .. abspath(texmfdir) .. "//"
+  end
   local envpaths = "." .. os_pathsep
+    .. localtexmf
     .. abspath(localdir) .. os_pathsep
     .. dir .. (typesetsearch and os_pathsep or "")
   -- Deal with spaces in paths

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua	2019-09-26 21:48:49 UTC (rev 52183)
@@ -46,6 +46,7 @@
 supportdir    = supportdir    or maindir .. "/support"
 testfiledir   = testfiledir   or currentdir .. "/testfiles"
 testsuppdir   = testsuppdir   or testfiledir .. "/support"
+texmfdir      = texmfdir      or maindir .. "/texmf"
 
 -- Structure within a development area
 builddir   = builddir   or maindir .. "/build"

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2019-09-26 21:48:49 UTC (rev 52183)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2019-09-18"
+release_date = "2019-09-25"
 
 -- File operations are aided by the LuaFileSystem module
 local lfs = require("lfs")
@@ -174,7 +174,7 @@
 end
 if #checkconfigs == 1 and
    checkconfigs[1] ~= "build" and
-   (options["target"] == "check" or options["target"] == "save") then
+   (options["target"] == "check" or options["target"] == "save" or options["target"] == "clean") then
    local config = "./" .. gsub(checkconfigs[1],".lua$","") .. ".lua"
    if fileexists(config) then
      dofile(config)

Modified: trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2019-09-26 21:48:13 UTC (rev 52182)
+++ trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2019-09-26 21:48:49 UTC (rev 52183)
@@ -63,6 +63,7 @@
 \luavarset{supportdir} {maindir .. "/support"}    {Directory containing general support files}
 \luavarset{testfiledir}{"./testfiles"}  {Directory containing test files}
 \luavarset{testsuppdir}{testfiledir .. "/support"}{Directory containing test-specific support files}
+\luavarset{texmfdir}{maindir .. "/texmf"}{Directory containing support files in tree form}
 \luavarseparator
 \luavarset{builddir}  {maindir .. "/build"}   {Directory for building and testing}
 \luavarset{distribdir}{builddir .. "/distrib"}{Directory for generating distribution structure}
@@ -229,7 +230,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2019-09-18}
+% \date{Released 2019-09-25}
 %
 % \maketitle
 % \tableofcontents
@@ -387,6 +388,8 @@
 % \item any files in the directory \var{testsuppdir};
 % \item any files that match \var{checksuppfiles} in the \var{supportdir}.
 % \end{itemize}
+% The \var{texmfdir} is also made available to the tests (if defined and
+% non-empty).
 % This range of possibilities allow sensible defaults but significant flexibility for defining your own test setups.
 %
 % Checking can be performed with any or all of the `engines' \texttt{pdftex}, \texttt{xetex}, and \texttt{luatex}.



More information about the tex-live-commits mailing list