Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] xbps-triggers: silence warnings, unhelpful errors in texmf-dist
Date: Tue, 11 Aug 2020 21:52:00 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24230@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages texlive
https://github.com/void-linux/void-packages/pull/24230

xbps-triggers: silence warnings, unhelpful errors in texmf-dist
@fosslinux, please let me know if there's a compelling reason not to merge these changes. User `notreal--` on IRC has complained about [TeXLive configuration errors](https://pastebin.com/SDzvzmAM) when `texlive-minimal` is installed, and the warnings about missing inifiles spam the console.

The texmf-dist trigger produces warnings about missing inifiles that are suppressed by adding the `--quiet` command-line argument. However, this still leaves errors about missing engines when texlive package are installed without texlive-LuaTeX and texlive-XeTeX. The command-line option `--no-error-if-no-engine` is used to suppress these errors about missing optional components.

A patch file from https://github.com/void-linux/void-packages/pull/24230.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-texlive-24230.patch --]
[-- Type: text/x-diff, Size: 1758 bytes --]

From 532918e76cb346d3244b42ae4ba562d1c3674174 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Tue, 11 Aug 2020 15:44:47 -0400
Subject: [PATCH] xbps-triggers: silence warnings, unhelpful errors in
 texmf-dist

The texmf-dist trigger produces warnings about missing inifiles that are
suppressed by adding the `--quiet` command-line argument. However, this
still leaves errors about missing engines when texlive package are
installed without texlive-LuaTeX and texlive-XeTeX. The command-line
option `--no-error-if-no-engine` is used to suppress these errors about
missing optional components.
---
 srcpkgs/xbps-triggers/files/texmf-dist | 4 +++-
 srcpkgs/xbps-triggers/template         | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/xbps-triggers/files/texmf-dist b/srcpkgs/xbps-triggers/files/texmf-dist
index c7758266bdb..711f63fa101 100755
--- a/srcpkgs/xbps-triggers/files/texmf-dist
+++ b/srcpkgs/xbps-triggers/files/texmf-dist
@@ -16,6 +16,7 @@ UPDATE="$5"
 
 texhash=usr/bin/texhash
 fmtutil=usr/bin/fmtutil-sys
+optional_engines="luahbtex,luajithbtex,luajittex,luatex,xetex"
 
 case "$ACTION" in
 targets)
@@ -28,7 +29,8 @@ run)
 	fi
 	if [ -x ${fmtutil} ]; then
 		echo "Updating texmf-dist formats..."
-		${fmtutil} --all >/dev/null || true
+		${fmtutil} --no-error-if-no-engine="${optional_engines}" \
+			--quiet --all >/dev/null || true
 	fi
 	;;
 *)
diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template
index 2c76f76e3b1..b28d198b1ce 100644
--- a/srcpkgs/xbps-triggers/template
+++ b/srcpkgs/xbps-triggers/template
@@ -1,6 +1,6 @@
 # Template file for 'xbps-triggers'
 pkgname=xbps-triggers
-version=0.115
+version=0.116
 revision=1
 archs=noarch
 bootstrap=yes

             reply	other threads:[~2020-08-11 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-11 19:52 ahesford [this message]
2020-08-12  0:39 ` fosslinux
2020-08-12  1:32 ` [PR PATCH] [Merged]: " ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24230@inbox.vuxu.org \
    --to=ahesford@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).