Summary: | dev-lang/R-4.2.1 fails to compile vignette (reshape.tex) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kristian Niemi <kristian.niemi> |
Component: | Current packages | Assignee: | Gentoo Science Mathematics related packages <sci-mathematics> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | mjo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info |
Description
Kristian Niemi
2022-12-04 17:20:25 UTC
Created attachment 839903 [details]
build.log
Created attachment 839905 [details]
emerge --info
Tried the old ebuild for R-4.2.0; compile failed with the same error. Tried the still-masked 4.2.2; compile failed with the same error. Same with 4.1.2. Same with 4.1.0-r2. However, 4.0.5-r1 builds successfully! It looks like,
> /usr/bin/texi2dvi: TeX neither supports -recorder nor outputs \openout lines in its log file
is too vague of an error message and gets output whenever the TeX installation is broken somehow. I don't suppose you have any of
BIBER, BIBTEX, DVIPDF, DVIPS, HEVEA, LATEX, MAKEINDEX, MAKEINFO, PDFLATEX,
PDFTEX, SED, T4HT, TEX, TEX4HT, TEXINDEX, THUMBPDF_CMD
set in your environment? Those will be used by texi2dvi, and if any are set to a bad value it will produce the error message above.
If not, you might try running texi2dvi --debug on reshape.tex manually to see what happens.
Thank you for replying, Michael. None of the variables you mention seem to be set. I can't run tex2dvi reshape.tex as it doesn't exist. What I've got are three files, .R, .Rd, .Rnw. ``` # fd reshape work/R-4.2.1/src/library/stats/R/reshape.R work/R-4.2.1/src/library/stats/man/reshape.Rd work/R-4.2.1/src/library/stats/vignettes/reshape.Rnw ``` I guess compiling one or more of these would produce the .tex. I tried to find out the commands I'd have to run to accomplish this, but too unfamiliar with this part of the R system. The "vignettes" target in src/library/Makefile is what's triggering this step, but unfortunately it calls the just-built R and executes "install_package_vignettes" from src/library/tools/R/admin.R. I try to maintain it, but I don't actually *use* R, so I get a bit lost at this point. It looks like there's a two step process that converts the .Rnw file to .tex, and then the .tex file to PDF. I think it intends to stop if no tex file is created, if (vignette_is_tex(output)) { # here it tries to process the tex file } but your error message suggests that it made it into that "if" statement above, i.e. I would naively expect you to have a reshape.tex file. However, the vignette_is_tex() function basically just looks for ".tex' at the end of the filename. So I guess the call that creates the output file, output <- tryCatch({ engine$weave(file, pdf = TRUE, eps = FALSE, quiet = TRUE, keep.source = keep.source, stylepath = FALSE) setwd(buildDir) find_vignette_product(name, by = "weave", engine = engine) }, error = function(e) { stop(gettextf("running %s on vignette '%s' failed with message:\n%s", engine[["name"]], file, conditionMessage(e)), domain = NA, call. = FALSE) }) is returning a string "reshape.tex" but somehow not actually creating a file called reshape.tex? This is where it would be nice if I knew R. |