• [gentoo-dev] [PATCH 0/2] texlive eclass updates, in preperation of TeX

    From Florian Schmaus@21:1/5 to All on Tue Jan 16 10:30:01 2024
    After negril and I worked for the past months on the TeX Live 2023
    bump, it is now time to submit the eclass changes to the mailing list
    for review.

    Note that we tried to keep the changes to the eclasses to a minimum.
    There are many more places where the code of the eclasses could be
    improved. But bumping TeX Live is already a delicate matter and we do
    not want to add more distraction from the actual changes to keep the
    changes manageable and reviewable.

    Once TeX Live 2023 hits ::gentoo, we will iteratively work on revising
    the code of the eclasses.

    Florian Schmaus (2):
    profiles/thirdpartymirrors: add 'ctan' mirror
    texlive-{common,module}.eclass: update for TeX Live 2023

    eclass/texlive-common.eclass | 113 +++++++++++++++++++++++++----------
    eclass/texlive-module.eclass | 77 ++++++++----------------
    profiles/thirdpartymirrors | 1 +
    3 files changed, 109 insertions(+), 82 deletions(-)

    --
    2.43.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Florian Schmaus@21:1/5 to All on Tue Jan 16 10:30:01 2024
  • From Florian Schmaus@21:1/5 to All on Tue Jan 16 10:30:01 2024
    Update the texlive eclasses for the upcoming TeX Live 2023 bump. This
    includes general cleanup of the eclasses, e.g., reducing the scope of variables.

    Notably changes include that installation of the TeX Live distribution
    changes from /usr/share/texmf to /usr/share/texmf-dist, which is the
    correct place, according to upstream.

    Co-authored-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>
    ---
    eclass/texlive-common.eclass | 113 +++++++++++++++++++++++++----------
    eclass/texlive-module.eclass | 77 ++++++++----------------
    2 files changed, 108 insertions(+), 82 deletions(-)

    diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
    index f43d10926857..5de58300f2f3 100644
    --- a/eclass/texlive-common.eclass
    +++ b/eclass/texlive-common.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2023 Gentoo Authors
    +# Copyright 1999-2024 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: texlive-common.eclass
    @@ -6,7 +6,7 @@
    # tex@gentoo.org
    # @AUTHOR:
    # Original Author: Alexis Ballier <aballier@gentoo.org>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: Provide various functions used by both texlive-core and texlive modules
    # @DESCRIPTION:
    # Purpose: Provide various functions used by both texlive-core and texlive
    @@ -15,53 +15,66 @@
    # Note that this eclass *must* not assume the presence of any standard tex too
  • From Ulrich Mueller@21:1/5 to All on Tue Jan 16 11:40:02 2024
    On Tue, 16 Jan 2024, Florian Schmaus wrote:

    case ${EAPI} in
    - 7) inherit eapi8-dosym ;;
    + 7)
    + inherit eapi8-dosym
    + dosym(){ dosym8 "$@"; }

    For good reason, eapi-dosym.eclass doesn't override package manager
    commands, and the texlive eclasses shouldn't do that either.

    Does it even work? dosym8 calls dosym, so wouldn't redefining dosym in
    terms of dosym8 cause an endless loop?

    So, either add an EAPI conditional where dosym8 is currently used (I see
    only one place), or define dosym8 as an alias for dosym in EAPI 8.

    + ;;
    + 8) ;;
    *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
    esac

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

    iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmWmXAkPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4uBKUH/jBFHA2+4iLlLNdE+0DVdSH5tBh1YL1h2S66 UUHVIwo5q4QTiDurdlJR4e4yr0PK+NfwsMmZJ6t8IlQhvfUJzFClEfLUHhgFTmJT OxKchWWStlMlPBAVjJn1ixWHTuw8eCs2fAIhHihOeG6vLvccSVu8HJPA2B7bt5wb VLdapzD6NrWK/T1XDHRHjxsJthu/NxgwR5vxhYbbRX8i477JqgWnjhvhbws3FOGj Hf3chKB9UZ06/GmzctcjLSsUBHrDPyzSoD6oZFsD1SlETQc5XRhI3HFPobt6uVOC Z23lF18jKcYL4l84ssg1jkW1Wv/PbiQrmewP9oQ0g35cpWQ0g58=
    =oP8l
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Orlitzky@21:1/5 to Florian Schmaus on Tue Jan 16 16:20:01 2024
    On Tue, 2024-01-16 at 10:26 +0100, Florian Schmaus wrote:
    +ctan https://mirrors.ctan.org/ https://ftp.fau.de/ctan/ https://mirror.physik.tu-berlin.de/pub/CTAN/ https://ftp.sun.ac.za/ftp/CTAN/ https://mirror.math.princeton.edu/pub/CTAN/ https://mirrors.sjtug.sjtu.edu.cn/ctan/ https://mirrors.mit.edu/CTAN/
    https://tug.ctan.org/

    Are any of these packages mirror-restricted? If you visit ctan in a
    browser, the download links it presents are via mirrors.ctan.org. I
    think that would be considered the "primary download location" in
    satisfaction of

    https://devmanual.gentoo.org/ebuild-writing/variables/index.html#third-party-mirrors

    We already mirror everything onto Gentoo infrastructure (unless it's mirror-restricted!), so I think it would be simpler to avoid the
    indirection here and simply use mirrors.ctan.org.

    Anyway, thanks you for this usually thankless work on TeX.

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