Emerge of currently stable =dev-lang/R-4.2.1 fails during compile of vignettes, specifically `reshape.tex`. Reproducible: Always Steps to Reproduce: 1. emerge dev-lang/R 2. 3. Actual Results: ``` * ERROR: dev-lang/R-4.2.1::gentoo failed (compile phase): * emake failed ``` Expected Results: Successful compile. ``` building/updating vignettes for package 'stats' ... processing 'reshape.Rnw' Error: compiling TeX file 'reshape.tex' failed with message: Running 'texi2dvi' on 'reshape.tex' failed. Messages: /usr/bin/texi2dvi: TeX neither supports -recorder nor outputs \openout lines in its log file Execution halted make[1]: *** [Makefile:103: vignettes] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/src/library' make: *** [Makefile:80: vignettes] Error 2 make: *** Waiting for unfinished jobs.... Warning in file(con, "r") : cannot open file 'NEWS.log': No such file or directory Error in file(con, "r") : cannot open the connection Calls: <Anonymous> ... .get_LaTeX_errors_from_log_file -> readLines -> file Execution halted make[1]: *** [Makefile:74: NEWS.pdf] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/var/tmp/portage/dev-lang/R-4.2.1/work/R-4.2.1/doc' ``` Attaching full `build.log`. Have tried with various combinations of USE-flags; have tried with unstable R-4.2.2 as well as previous (currently not in tree) 4.2.0; same error with all.
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.
Any chance that this has mysteriously cleared up in dev-lang/R-4.4.1?