Opened 8 months ago
Closed 8 months ago
#69529 closed defect (fixed)
Why now Macports wants to install TeXLive?
Reported by: | angelog0 (Angelo Graziosi) | Owned by: | essandess (Steve Smith) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | judaew (Vadym-Valdis Yudaiev), Michael-P-Allen (Mike Allen) | |
Port: | pandoc |
Description
I have already TeXLive (2024) installed and upgraded from the site but in today selfport upgrade Macports install a full TexLive distribution.
I do not want more then 4GB duplicated and never I chose to install a TeXLive MacPorts package.
How I uninstall and clean those packages? and how I stop they are installed at the next selfupdate?
Change History (9)
comment:1 Changed 8 months ago by reneeotten (Renee Otten)
Cc: | judaew added |
---|---|
Owner: | set to essandess |
Port: | pandoc added |
Status: | new → assigned |
comment:2 Changed 8 months ago by essandess (Steve Smith)
Please see https://github.com/macports/macports-ports/pull/23085
pandoc
hardcodes an xelatex
dependency, and every major project that uses pandoc
like Jupyter assumes that LaTeX is installed. One example: Jupyter> Save As pdf breaks without a LaTeX installation. pandoc
provides a specific file that lays out all its LaTeX dependencies.
See:
- https://github.com/jgm/pandoc/blob/main/tools/latex-package-dependencies.lua
- https://github.com/jgm/pandoc/blob/2514ad25311a68d8244a77e4bfc4fd6e26b6848e/src/Text/Pandoc/PDF.hs#L74-L83
- https://github.com/jgm/pandoc/blob/main/doc/faqs.md
The PR already uses a minimized dependency for basic compatibility with pandoc
LaTeX requirements (several 10's of MB, not heavy full TeXLive GB), and adds a +texlive
variant to use a minimized MacPorts TeX installation.
comment:3 Changed 8 months ago by essandess (Steve Smith)
Replying to angelog0:
I have already TeXLive (2024) installed and upgraded from the site but in today selfport upgrade Macports install a full TexLive distribution.
I do not want more then 4GB duplicated and never I chose to install a TeXLive MacPorts package.
Are you sure about this? The pandoc
Portfile only specifies a very minimal dependency that takes several 10s of MB, not GB:
du -sm /opt/local/var/macports/software/texlive-{xetex,basic,bin,common,latex-recommended,plain-generic} 12 /opt/local/var/macports/software/texlive-xetex 23 /opt/local/var/macports/software/texlive-basic 17 /opt/local/var/macports/software/texlive-bin 1 /opt/local/var/macports/software/texlive-common 64 /opt/local/var/macports/software/texlive-latex-recommended 32 /opt/local/var/macports/software/texlive-plain-generic
comment:4 follow-up: 6 Changed 8 months ago by angelog0 (Angelo Graziosi)
Steve, it tries to install texlive-fonts and other: I stopped with CTRL-C.
Even if it were small I do not want mixing my TeXLive 2024 installation from TeXLive site with that from MacPorts. Currently my PATH since 2011 is something like this
/opt/local/bin:/opt/local/sbin:/LocalApps/texlive/bin/x86_64-darwinlegacy:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
and I should reverse the order (would it be sane?)
And more...
It insists to install texlive-common and friends also if I use
... and not texlive-common
Beside this, I do not have pandoc installed:
$ sudo port installed | grep -i pan Password: pango @1.50.14_0+quartz+x11 (active) py310-pandocfilters @1.5.1_0 (active)
so, what wants to install TeXLive from MacPorts? It seems pandocfilters...
comment:5 Changed 8 months ago by Michael-P-Allen (Mike Allen)
Cc: | Michael-P-Allen added |
---|
comment:6 Changed 8 months ago by essandess (Steve Smith)
Replying to angelog0:
I do not have pandoc installed
Then this issue is not related to the pandoc
/TeXLive discussion.
comment:7 Changed 8 months ago by angelog0 (Angelo Graziosi)
As I wrote, I had installed py310-pandocfilters
package and after uninstalling it, port
stopped to insist installing texlive-common
and friends...
comment:8 Changed 8 months ago by thetrial (alabay)
Interesting, I just commented under #48971 a similar situation. Related to pandoc. But: MacPorts installed a complete texlive, too, wenn compiling something else … I just can't remember, what it was. A small required building block in some context. But yes, I have a complete unix-script TL 2024 installation and would have awaited that there is a possibility to install pandoc standalone. In texlive is neede just to build something – like it happened before – the whole MP texlive is a leaf. I could get rid of than. Bu now, with pandoc, it seems, it is not a leaf anymore.
Ha, I just remembered what triggered texlive before: ghostscript and/or poppler!
comment:9 Changed 8 months ago by essandess (Steve Smith)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
See: https://github.com/macports/macports-ports/pull/22905
I agree that this is undesirable.