Opened 3 years ago

Closed 3 years ago

#63369 closed defect (fixed)

R @4.1.1 compile failure due to missed latex style with texlive @2020_0+doc+full

Reported by: catap (Kirill A. Korinsky) Owned by: kjellpk (Kjell Konis)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: i0ntempest, evanmiller (Evan Miller), mascguy (Christopher Nielsen)
Port: R

Description

:info:build creating doc/NEWS.pdf
:info:build building/updating vignettes for package 'parallel' ...
:info:build building/updating vignettes for package 'utils' ...
:info:build building/updating vignettes for package 'stats' ...
:info:build processing 'reshape.Rnw'
:info:build Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
:info:build   unable to run pdflatex on 'NEWS.tex'
:info:build LaTeX errors:
:info:build ! LaTeX Error: File `pdftexcmds.sty' not found.
:info:build Type X to quit or <RETURN> to proceed,
:info:build or enter new name. (Default extension: sty)
:info:build ! Emergency stop.
:info:build <read *> 
:info:build          
:info:build l.108 \RequirePackage{pdftexcmds}[2018/09/10]
:info:build                                              ^^M
:info:build !  ==> Fatal error occurred, no output PDF file produced!
:info:build Calls: <Anonymous> -> texi2pdf -> texi2dvi
:info:build Execution halted
:info:build make[1]: *** [NEWS.pdf] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....

Change History (10)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: i0ntempest added
Owner: set to kjellpk
Port: R added
Status: newassigned

comment:2 Changed 3 years ago by i0ntempest

Build is fine with texlive +medium. Maybe open a ticket for texlive, not R.

comment:3 Changed 3 years ago by catap (Kirill A. Korinsky)

after one more update of latex => it is builded.

I feel that this issue should be closed.

comment:4 Changed 3 years ago by i0ntempest

Resolution: invalid
Status: assignedclosed

comment:5 Changed 3 years ago by jmroot (Joshua Root)

Cc: evanmiller added
Resolution: invalid
Status: closedreopened

If R needs texlive when building, it needs to declare dependencies on the appropriate ports. If it's only using texlive when it happens to be installed, it should be configured not to do that.

comment:6 Changed 3 years ago by i0ntempest

From what I know it shouldn’t need texlive, though it seems to be using it if present. This error seems to be caused by a corrupted (?) texlive installation (hence a reinstall fixes the build).

comment:7 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:8 in reply to:  6 Changed 3 years ago by mascguy (Christopher Nielsen)

Replying to i0ntempest:

From what I know it shouldn’t need texlive, though it seems to be using it if present. This error seems to be caused by a corrupted (?) texlive installation (hence a reinstall fixes the build).

So it sounds like this port is opportunistically using texlive, and that needs to be fixed per comment:5.

comment:9 Changed 3 years ago by i0ntempest

So it seems to use pdftex and pdflatex commands and also inconsolata font if present, from texlive-basic, texlive-latex, texlive-fonts-extra respectively. These are all relatively big packages (especially the last one weights 784MB compressed) and I've found no configure option switches to disable them. Not sure what's the right course here, just add all of them as dependency (bad idea imo)? Add a variant (need to figure out the switch first)?
R build manual: https://cran.r-project.org/doc/manuals/r-release/R-admin.html

Last edited 3 years ago by i0ntempest (previous) (diff)

comment:10 Changed 3 years ago by i0ntempest

Resolution: fixed
Status: reopenedclosed

In e486ea5f1f7050e435a1da4cdc6dd66af781c1bd/macports-ports (master):

R: add texlive build deps

Closes: #63369

Note: See TracTickets for help on using tickets.