moderncv / moderncv

A modern curriculum vitae class for LaTeX
LaTeX Project Public License v1.3c
740 stars 166 forks source link

`commons/colors.tex` not found in package #194

Closed TamotsuTokazu closed 3 months ago

TamotsuTokazu commented 4 months ago

Describe the bug I installed moderncv using tlmgr, which says the package repo is https://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet. Compiling any document results in an error of commons/colors.tex not found.

After some quick investigation, I found the commons in the directory for documents (some-path/doc/latex/moderncv in my case), rather than where it should be (some-path/tex/latex/moderncv in my case). So I assume maybe something's wrong with packaging for distribution?

Expected Behavior

Actual Behavior

Minimum Working Example to Reproduce the Problem

Specifications

Additional context

LLdaniel commented 4 months ago

The package is located at https://mirrors.ctan.org/macros/latex/contrib/moderncv/ and it seems that the folder structure matches the structure of the uploaded .tar.gz:

tar -tvf moderncv-v2.4.0-0-ge8a2096.tar.gz 'moderncv/commons/colors.tex'
-rw-rw-r-- root/root      1516 2024-07-10 07:34 moderncv/commons/colors.tex

This in turn matches the directory structure of the source code (besides the moderncv prefix created with the tar archive).

May I ask if you are running tlmgr in usermode? Also did you install texlive manually or from the Ubuntu repository? I am trying to understand your current setup in case different versions of texlive or tlmgr could be the reason for that problem?

marcfrederick commented 3 months ago

After updating the moderncv package using tlmgr, I'm seeing the same issue:

l.25 \input{commons/colors}
                           ^^M
/usr/local/texlive/2024/texmf-dist/tex/latex/moderncv/moderncviconsawesome.sty:25:  ==> Fatal error occurred, no output PDF file produced!
Transcript written on lebenslauf.log.
Latexmk: Missing input file 'commons/colors.tex' (or dependence on it) from following:
  ! LaTeX Error: File `commons/colors.tex' not found.

Looking at the tar file from my mirror, the whole commons/ directory seems to be missing: https://mirror.physik.tu-berlin.de/pub/CTAN/systems/texlive/tlnet/archive/moderncv.r71767.tar.xz. This corresponds to the contents of my /usr/local/texlive/2024/texmf-dist/tex/latex/moderncv directory, which is also missing that directory.

Specifications

LLdaniel commented 3 months ago

Thanks to everyone for reporting this issue. The problem is now understood: The missing file name prefix for colors.tex was responsible for bundling that file into the documentation archive on ctan (for a more detailed explanation see linked PR).

Once this PR is merged I will immediately create a new patch version 2.4.1 for ctan. So bear with me a little more and the patch will be incoming soon...

LLdaniel commented 3 months ago

I submitted the new patched version v2.4.1 to CTAN just now. So after the distribution to all mirrors it should be available within the next 24h.