Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xbps-triggers: silence warnings, unhelpful errors in texmf-dist
@ 2020-08-11 19:52 ahesford
  2020-08-12  0:39 ` fosslinux
  2020-08-12  1:32 ` [PR PATCH] [Merged]: " ahesford
  0 siblings, 2 replies; 3+ messages in thread
From: ahesford @ 2020-08-11 19:52 UTC (permalink / raw)
  To: ml

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xbps-triggers: silence warnings, unhelpful errors in texmf-dist
  2020-08-11 19:52 [PR PATCH] xbps-triggers: silence warnings, unhelpful errors in texmf-dist ahesford
@ 2020-08-12  0:39 ` fosslinux
  2020-08-12  1:32 ` [PR PATCH] [Merged]: " ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: fosslinux @ 2020-08-12  0:39 UTC (permalink / raw)
  To: ml

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

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/24230#issuecomment-672399266

Comment:
Yep, looks good.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: xbps-triggers: silence warnings, unhelpful errors in texmf-dist
  2020-08-11 19:52 [PR PATCH] xbps-triggers: silence warnings, unhelpful errors in texmf-dist ahesford
  2020-08-12  0:39 ` fosslinux
@ 2020-08-12  1:32 ` ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: ahesford @ 2020-08-12  1:32 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

xbps-triggers: silence warnings, unhelpful errors in texmf-dist
https://github.com/void-linux/void-packages/pull/24230

Description:
@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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-12  1:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 19:52 [PR PATCH] xbps-triggers: silence warnings, unhelpful errors in texmf-dist ahesford
2020-08-12  0:39 ` fosslinux
2020-08-12  1:32 ` [PR PATCH] [Merged]: " ahesford

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).