• [gentoo-dev] [PATCH 0/3] *** Three minor changes to texlive-(common|mmo

    From Florian Schmaus@21:1/5 to All on Thu Feb 29 14:40:03 2024
    Following are three minor changes to texlive-(common|module).eclass,
    which I expect to be the last changes to the eclasses before start
    moving texlive 2023 from ::tex-overlay into ::gentoo (initally
    pmasked).

    Florian Schmaus (3):
    texlive-module.eclass: implicitly set TL_PV if not explicitly set
    texlive-common.eclass: check exit status of texmf-update
    texlive-common.eclass: Use nonfatal-respecting die for fmtutil-sys

    eclass/texlive-common.eclass | 7 ++++++-
    eclass/texlive-module.eclass | 6 ++++++
    2 files changed, 12 insertions(+), 1 deletion(-)

    --
    2.43.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Florian Schmaus@21:1/5 to All on Thu Feb 29 14:40:05 2024
    The texlive eclasses where traditionally lenient when it comes to the
    exit status of texmf-update and fmtutil-sys, as they would return a
    non-zero exit status in certain situations, especially when bootstraping
    the texlive installation, i.e., when texlive-core is installed.

    With the upcoming Texlive 2023 bbump we can make this more strict,
    having texlive-core use nonfatal.

    Signed-off-by: Florian Schmaus <flow@gentoo.org>
    ---
    eclass/texlive-common.eclass | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
    index fab6ff66ecd5..96e962cb8027 100644
    --- a/eclass/texlive-common.eclass
    +++ b/eclass/texlive-common.eclass
    @@ -178,6 +178,10 @@ etexmf-update() {
    if has_version 'app-text/texlive-core' ; then
    if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then
    "${EPREFIX}"/usr/sbin/texmf-update
    + local res="${?}"
    + if [[ "${?}" -ne 0 ]] && ver_test -ge 2023; then
    + die -n "texmf-update returned non-zero exit status ${res}"
    + fi
    else
    ewarn "Cannot run texmf-update for some reason."
    ewarn "Your texmf tree might be inconsistent with your configuration"
    --
    2.43.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Thu Feb 29 21:50:01 2024
    On Thu, 29 Feb 2024, Florian Schmaus wrote:

    @@ -178,6 +178,10 @@ etexmf-update() {
    if has_version 'app-text/texlive-core' ; then
    if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then
    "${EPREFIX}"/usr/sbin/texmf-update
    + local res="${?}"
    + if [[ "${?}" -ne 0 ]] && ver_test -ge 2023; then

    This condition will always be false.

    Ulrich

    -----BEGIN PGP SIGNATURE-----

    iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmXg66MPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4utwAH/j4BxUgVtoZEYH0drE7xfS0ODATomX4BGZh3 nKVdXJDnrYlU57cbmxzr384t1ySy3di5qLq+BFJGRrO0fMoctziaLiuSn7xs8ijY CW3DGT3egXt8XKAANxVSZYBpBc+j4aHrQuj3Fa7Gyqaq86uPmXP7KdcyI5CZsPJG J8Hqw2F5iAbwdVXQ9SOss8ngjWBBsd/i5AmZikIVwKg7/GSUIXvADFDtwE8VabpF ZbynV3xVpEdsreWS8DhK2Ar9v4GeQLHkQ3gkFPLO/mXFUs6HssKzqwE1dPImHYLu GZEDDxzYHjRt2/NvpB+jz9epFBv6QX2bl8KHeMd6GOp8ybWR9os=
    =ISSG
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Fri Mar 1 10:10:02 2024
    On Fri, 01 Mar 2024, Florian Schmaus wrote:

    On 29/02/2024 21.40, Ulrich Mueller wrote:
    On Thu, 29 Feb 2024, Florian Schmaus wrote:

    @@ -178,6 +178,10 @@ etexmf-update() {
    if has_version 'app-text/texlive-core' ; then
    if [[ -z ${ROOT} && -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then
    "${EPREFIX}"/usr/sbin/texmf-update
    + local res="${?}"
    + if [[ "${?}" -ne 0 ]] && ver_test -ge 2023; then
    This condition will always be false.

    Is it because assigning 'res' will set '$?'?

    Yes, the local command will return success status. So you should check
    for ${res} not $?.

    Ulrich

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmXhmSQPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4u42AH/2nvux187Pnk2ykcAR6vLJUua/O+AHzU7rrL f61pgL585/6HvRGxDw4OLdISIBUII/OjERu+2NJVAlM6ZBG5CiBoU3NWPIUoKFIP TxnzzWD7HudPbdUXGHlTv1wAoA6PGCJwCpUQv5XVxY/DISUe7GU1V1J4WJGsTuKu OGoe4U1Pxab5HDHT+NzSnkQLdV4HjbSJym89DRQtRFOJR+soop4uVc9ZbSsq27ej 3BcQUf2A+P7F52ac+5Mt9s812VYE9jCGmZFgzeO7MnXgqRmYDmG3iXowcR2Gk8uq 875teBxtWDP+jCY91GVtBUVCpxJZX8+N0zjP3L/HwzIlmy+2bRU=2nuk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)