summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
AgeCommit message (Collapse)Author
2024-04-20forgot =cutKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@71007 c570f23f-e606-0410-a88d-b1316a301751
2024-04-19explicitly ignore l3(kernel|backend)-dev for runtime dups; more info if ↵Karl Berry
fmttriggers differ git-svn-id: svn://tug.org/texlive/trunk@71004 c570f23f-e606-0410-a88d-b1316a301751
2024-04-19doc and info tweaksKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@70991 c570f23f-e606-0410-a88d-b1316a301751
2024-03-28(update_context_cache): also run mtxrun --script fonts --reload,Karl Berry
for finding fonts by font name. git-svn-id: svn://tug.org/texlive/trunk@70794 c570f23f-e606-0410-a88d-b1316a301751
2024-03-26doc,syncKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@70774 c570f23f-e606-0410-a88d-b1316a301751
2024-02-19<manyformats>.tlpsrc: force-increment so the packages will be updated.Karl Berry
TLUtils.pm (report_tlpdb_differences): sort output. tl-update-tlnet: use different log output filenames for the pretest and trunk (`basename $tlweb`). Report success of each consistency check, for clarity, and overall success/failure. Explanation: updating autopatterns, as we did yesterday, does not automatically update the affected packages, so the nightly build failed. Specifically, tl-compare-tlpdbs failed with: different packages from A to B: uplatex unknown differ fmttrigger ... for each of the affected formats (eplain hitex jadetex latex-bin-dev latex-bin mltex platex uplatex xelatex-dev xetex xmltex). git-svn-id: svn://tug.org/texlive/trunk@69980 c570f23f-e606-0410-a88d-b1316a301751
2024-01-31redirect output from context cache updating to tlmgr-commands.log orKarl Berry
install-tl.log, not the terminal. TLPDB.pm (_post_installpackage): new fn for common post-install code, including now recording the "context-cache" action for the context package. (install_package_files): call it. (_not_virtual_install_package): call it. (install_package): explicitly return undef on failure (unrelated). TLUtils.pm (announce_execute_actions): handle context-cache action by setting the new global $::context_cache_update_needed. tlmgr.pl (handle_execute-actions): call TLUtils::update_context_cache if the global is set. (run_postinst_logcommand): new function to run the context cache commands. (logcommand_bare): write to tlmgr-commands.log with no timestamp. tlpkg/context.tlpsrc: remove postaction. tlpkg/tlpostcode/cont-cache.{cmd,sh}: remove these scripts, as now the commands are hardwired in the code, so we can redirect the output. git-svn-id: svn://tug.org/texlive/trunk@69653 c570f23f-e606-0410-a88d-b1316a301751
2024-01-27TLUtils.pm (run_cmd_with_log),Karl Berry
(update_context_cache): new fns, mostly taken from install-tl. Hopefully to be used by tlmgr. install-tl (run_postinst_cmd): call run_cmd_with_log. (create_welcome): play with newlines, en passant. git-svn-id: svn://tug.org/texlive/trunk@69614 c570f23f-e606-0410-a88d-b1316a301751
2024-01-07Set HTTPS_CA_FILE for LWP to work on global cert-free systemsNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@69327 c570f23f-e606-0410-a88d-b1316a301751
2023-09-15tlmgr: on update test that we can remove files (deal with ro dirs)Norbert Preining
git-svn-id: svn://tug.org/texlive/trunk@68283 c570f23f-e606-0410-a88d-b1316a301751
2023-03-07User proper null device on WindowsNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@66420 c570f23f-e606-0410-a88d-b1316a301751
2023-02-27run mtxrun --generate and context --luatex --generate as post-install ↵Karl Berry
actions, only if the luametatex binary is operational git-svn-id: svn://tug.org/texlive/trunk@66236 c570f23f-e606-0410-a88d-b1316a301751
2023-02-23switch to df -Pk in hopes of ignoring BLOCKSIZE etc. settingsKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@66112 c570f23f-e606-0410-a88d-b1316a301751
2023-02-21(diskfree): show actual output from df -P when debugging.Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@66040 c570f23f-e606-0410-a88d-b1316a301751
2023-02-21disable debug outputNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@66005 c570f23f-e606-0410-a88d-b1316a301751
2023-02-20more win32->windows, doc, copyright 2023Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@65994 c570f23f-e606-0410-a88d-b1316a301751
2023-02-20win32->windows continuesKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@65958 c570f23f-e606-0410-a88d-b1316a301751
2023-02-20Transition 32-bit => 64-bit for Windows; ,pm filesSiep Kroonenberg
git-svn-id: svn://tug.org/texlive/trunk@65950 c570f23f-e606-0410-a88d-b1316a301751
2022-09-25tl-update-tlpdb (suredef): new fn, replacing equal strings.Karl Berry
(tlpobj_catalogue_equal): use it to avoid dumb undef value warnings when printing values. Also, show tlp[AB]->catalogue values. TLUtils.pm (debug, ddebug, dddebug): return immediately if verbosity < 1; this may avoid unnecessary warnings when the arguments contain undef (and is trivially faster). This was occasioned by a warning from the --catalogue-compare run: Use of uninitialized value $_[5] in join or string at tlpkg/bin/../TeXLive/TLUtils.pm line 3715. D:bibtexu: longdesc now: An enhanced, portable C version ... vs. compare db: With new packages, a tlp value in the old package may indeed be undef. releng.txt: unrelated doc updates. git-svn-id: svn://tug.org/texlive/trunk@64503 c570f23f-e606-0410-a88d-b1316a301751
2022-06-18(platform_desc): avoid Perl warning if no -OS inKarl Berry
platform spec, e.g., -force-platform foo. git-svn-id: svn://tug.org/texlive/trunk@63645 c570f23f-e606-0410-a88d-b1316a301751
2022-06-13install-tl (GetOptions): new options -no-installation, no-interaction,Karl Berry
-debug-setup-vars, -paper; also -texdir and other directory trees. (set_var_from_alternatives, set_standard_var): generalize method for setting the dir values. Expand tildes. (update_default_{scheme,paper}): new fns so scheme and paper size options are set before we go into the menus. (check_env): don't complain about INFOPATH or MANPATH; mention TEXLIVE_INSTALL_ENV_NOCHECK. Document new options; give a few examples. TLUtils.pm (get_user_home, expand_tilde): new fns. install-menu-text.pl: call them. git-svn-id: svn://tug.org/texlive/trunk@63571 c570f23f-e606-0410-a88d-b1316a301751
2022-04-18Revert "work on win64 support"Norbert Preining
This reverts commit daa265a214b9e12e2a9bab636398c2dd699f7cd4. git-svn-id: svn://tug.org/texlive/trunk@63068 c570f23f-e606-0410-a88d-b1316a301751
2022-04-18work on win64 supportNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@63066 c570f23f-e606-0410-a88d-b1316a301751
2022-04-11Disk space code for Windows reinstatedSiep Kroonenberg
git-svn-id: svn://tug.org/texlive/trunk@63002 c570f23f-e606-0410-a88d-b1316a301751
2022-03-20Reverting windows diskfree; not enough time for testingSiep Kroonenberg
git-svn-id: svn://tug.org/texlive/trunk@62822 c570f23f-e606-0410-a88d-b1316a301751
2022-03-18diskfree for windows >= 8Siep Kroonenberg
git-svn-id: svn://tug.org/texlive/trunk@62794 c570f23f-e606-0410-a88d-b1316a301751
2022-03-08doc updatesKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@62529 c570f23f-e606-0410-a88d-b1316a301751
2022-03-05wordingKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@62459 c570f23f-e606-0410-a88d-b1316a301751
2022-03-05installer and free disk space improvementsNorbert Preining
- factor free disk space computation into a new TLUtils function - save (and update) the free disk space for the current TEXDIR in %vars - display the free disk space (if it is available) in the text menu git-svn-id: svn://tug.org/texlive/trunk@62431 c570f23f-e606-0410-a88d-b1316a301751
2022-03-05install-tl: if df is available, check for free disk spaceNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@62426 c570f23f-e606-0410-a88d-b1316a301751
2022-02-28doc,syncKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@62297 c570f23f-e606-0410-a88d-b1316a301751
2022-02-20install-tl: add --debug-fakenetNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@62112 c570f23f-e606-0410-a88d-b1316a301751
2022-02-14More resilient installationNorbert Preining
split installation of packages into two stages: first those which are absolutely necessary for the installation process to continue (fmtutil, updmap, tlmgr, ...), and those which are just normal packages which can be installed afterwards for fixing. For now, the option --continue needs to be passed. git-svn-id: svn://tug.org/texlive/trunk@62016 c570f23f-e606-0410-a88d-b1316a301751
2022-02-12(query_ctan_mirror): double-quote the curl arg for Windows.Karl Berry
https://tug.org/pipermail/tex-live/2022-February/047748.html git-svn-id: svn://tug.org/texlive/trunk@61996 c570f23f-e606-0410-a88d-b1316a301751
2022-02-09(check_on_working_mirror): redirect stdout as wellKarl Berry
as stderr, to avoid creating "nul" file on Windows. Use our nulldev() fn. Report from Jan Netik, tex-live 9 Feb 2022 21:26:28. git-svn-id: svn://tug.org/texlive/trunk@61960 c570f23f-e606-0410-a88d-b1316a301751
2022-02-05Fix path of ca bundleNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@61892 c570f23f-e606-0410-a88d-b1316a301751
2022-02-05try to fix curl cacert on some macosNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@61891 c570f23f-e606-0410-a88d-b1316a301751
2022-02-05Start working on cacert support for old darwinNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@61888 c570f23f-e606-0410-a88d-b1316a301751
2022-01-23work around "only used once" warnings with uglyKarl Berry
assignments in the BEGIN block, since the "package PKGNAME BLOCK" was invented for perl 5.14.0 (2011), and that is too new for OpenCSW on Solaris 10. git-svn-id: svn://tug.org/texlive/trunk@61711 c570f23f-e606-0410-a88d-b1316a301751
2021-12-21use strict; use warnings; declarations, filehandle barewords, our @disabledKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@61372 c570f23f-e606-0410-a88d-b1316a301751
2021-12-05enable use strict; use warnings; and add needed declarations.Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@61225 c570f23f-e606-0410-a88d-b1316a301751
2021-10-21misc doc updates: clisp build, gpg procedure, setup_sys_user_mode() argsKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@60823 c570f23f-e606-0410-a88d-b1316a301751
2021-10-04tlmgr/perl: Use TEXMFROOT instead of SELFAUTOPARENT (from Daniel Nachun, ↵Norbert Preining
homebrew) git-svn-id: svn://tug.org/texlive/trunk@60693 c570f23f-e606-0410-a88d-b1316a301751
2021-07-18maillog:Jul 7 23:31:37 tug sendmail[32133]: 167LVCWJ032133: ↵Karl Berry
from=<texhax-bounces+r.turner=auckland.ac.nz@tug.org>, size=3336, class=-30, nrcpts=3, msgid=<bc257caf-9f8a-3d7-6f42-86df1922669@tug.org>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] maillog:Jul 7 23:31:41 tug sendmail[32499]: 167LVCWJ032133: to=<r.turner@auckland.ac.nz>, delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=237336, relay=au-smtp-inbound-2.mimecast.com. [103.13.69.122], dsn=2.0.0, stat=Sent (SmtpThread-15917402-1625693501741@au-mta-95.au.mimecast.lan Received OK [bBwoTzxBNLaVKr_ihVkItg.au95]) git-svn-id: svn://tug.org/texlive/trunk@59982 c570f23f-e606-0410-a88d-b1316a301751
2021-05-18prepend --no-check-certificate to arg list, notKarl Berry
append, since list ends with -O. oops. git-svn-id: svn://tug.org/texlive/trunk@59259 c570f23f-e606-0410-a88d-b1316a301751
2021-05-17TLUtils: detect non-ssl wgetNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@59237 c570f23f-e606-0410-a88d-b1316a301751
2021-05-16(platform): look for a shell that can handleKarl Berry
$(...) in order to execute config.guess. git-svn-id: svn://tug.org/texlive/trunk@59234 c570f23f-e606-0410-a88d-b1316a301751
2021-05-16update pod descriptions, httpsKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@59224 c570f23f-e606-0410-a88d-b1316a301751
2021-05-09TLUtils::query_ctan_mirror_curl: fix for Windows quotingNorbert Preining
git-svn-id: svn://tug.org/texlive/trunk@59149 c570f23f-e606-0410-a88d-b1316a301751
2021-05-09fmtutil and tlmgr improvementsNorbert Preining
fmtutil.pl - if run as mktexfmt and TEXMFSYSVAR is writable, use it instead of TEXMFVAR (actual code in TLUtils.pm). - add --dry-run | -n option it is not guaranteed to be 100% dry-run, though - add --status-file=FILE where the status of each format creating is written to - warn on running fmtutil in user mode the first time (similar to updmap) - warn on shadowing formats - documentation fixes tlmgr.pl - use fmtutil --status-file and report back failed format rebuilds - regeneration all formats now only exists existing formats (use --refresh with fmtutil) - report when commands are logged to the respective log file - documentation fixes TLUtils.pm - update setup_sys_user_mode for the fmtutil/mktexfmt changes mentioned above - documentation fixes git-svn-id: svn://tug.org/texlive/trunk@59143 c570f23f-e606-0410-a88d-b1316a301751