There is a class for LyX/LaTeX to write Curriculum Vitaes, the fiels that specify that class/layout are these: /usr/share/lyx/layouts/cv.layout /usr/share/lyx/tex/cv.cls and there's an example of the usage of that class: /usr/share/lyx/examples/cv.lyx If you try to open that file you'll see that LyX can't finde the cv class and it's not able to produce any output. I believe that's because some PATHs where not set rightly. It would be nice if you could make the ebuild set those PATHs in whatever way is needed. Reproducible: Always Steps to Reproduce: 1. 2. 3.
There are a number of files in /usr/share/lyx/examples that produce the same error, for example chessgame.lyx can't find the chess class. This issue can be fixed by adding a symlink to /usr/share/texmf/tex/latex # cd /usr/share/texmf/tex/latex # ln -s ../../../lyx/tex lyx then open lyx and run Edit>Reconfigure. Whilst this appears to fix the issue, I am uncertain whether it is the 'correct' solution.
I've tried your fix, but it didn't work, opening cv.lyx and chessgame.lyx still produced the same error as before, may I be missing some other package ? Thank you.
Try running texhash as root, then do the Reconfigure step.
That made it work, thanks. Maybe then the LyX ebuild should make the symlink and run texhash.
Created attachment 58412 [details, diff] diff for lyx-1.3.5-r1.ebuild This needs to be checked as I haven't got a vanilla installation of tetex/lyx to play with anymore and reinstallation takes far too long ;).
Thanks for the bug report. I applied the patch to lyx-1.3.5-r2.ebuild with little modification. Please test it if you have some spare time ;)