Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379223 - texlive ebuilds fail to compile due to missing language/hyphenation files
Summary: texlive ebuilds fail to compile due to missing language/hyphenation files
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: TeX project
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 01:59 UTC by David Durrleman
Modified: 2011-11-30 12:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Durrleman 2011-08-15 01:59:24 UTC
dev-texlive/texlive-basic-2O1O failed to build on my machine after its recent stabilization. The compilation process was complaining about missing language files such as "dehypht-x-2009-06-19.tex". This issue has been experienced by other users such as Grothendieck on http://forums.gentoo.org/viewtopic-t-890580.html. Installing some language packs seems to help but then one gets stuck on the missing "ushyphmax.tex", which has been removed/renamed from the texlive distribution a while ago, but is still referenced by /etc/texmf/tex/generic/config/language.dat



Reproducible: Always

Steps to Reproduce:
1. emerge dev-texlive/texlive-basic
2. emerge texlive-langgerman, texlive-langother, texlive-langgreek and texlive-langcyrillic
3. emerge dev-texlive/texlive-basic
4. emerge dev-texlive/texlive-latex
Actual Results:  
1. fails
2. succeeds
3. succeeds
4. fails

Expected Results:  
1. succeeds
2. succeds
3. succeeds
4. succeeds

That was for the actual report, now for the speculation and a possible fix.

I've traced this down to tex using the default /usr/share/texmf/tex/generic/config/language.def file, which is not system specific. I have further traced this down to texmf-update not correctly doing its job when some base files are missing from the /etc/texmf/tex/generic/config/ directory. My directory was only containing language.dat (and an old version of it, because it still refers to ushyphmax.tex), so texmf-update skipped it.

I have been able to fix the problem using the following commands:

cp /usr/share/texmf/tex/generic/config/language.{us,us.def} /etc/texmf/tex/generic/config/
touch /etc/texmf/tex/generic/config/language.def
texmf-update

After that, I was able to merge texlive-basic and texlive-latex successfully, even without the above mentioned language modules.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-15 02:31:15 UTC
Similar to bug #377447 I suspect, as CONFIG_PROTECT-ed files would not have been updated in between dozens of texlive package merges, which has utils from the earlier packages using configuration files from the older release.
Comment 2 David Durrleman 2011-08-15 03:16:49 UTC
Not sure I see what you mean, but to clarify, I still had this error after I ran dispatch-conf (and resolved all tex related updates with "use-new")
Comment 3 Henrik Grubbström 2011-08-19 20:58:43 UTC
I had the same problem compiling texlive-basic (upgrading from -2008), and finally got it to work by:

  1) equery b -f '/etc/texmf/.*'

  2) Uninstalling all of the above reported ebuilds.

  3) rm -rf /etc/texmf

  4) emerge texlive

I believe the problem was caused by files in /etc/texmf/tex that were left by some old version of tex.
Comment 4 Nick White 2011-08-20 09:14:14 UTC
I had the exact same problem. Thanks for the advice David, it's working fine after following your steps.
Comment 5 Daniel Neugebauer 2011-09-27 14:55:19 UTC
(In reply to comment #3)

Thanks, Henrik. I had the same problem and previously already tried

emerge -C `qlist -I -C dev-texlive/*`
emerge -C texlive texlive-core
emerge -C everything else that eix tex listed as installed and of which I thought it may cause problems
rm -Rf /etc/texmf
rm -Rf /usr/share/texmf*
rm -Rf /var/lib/texmf

without any change. I had to remove the packages app-text/xdvik, dev-libs/kpathsea and dev-tex/xmltex as well (did not look to me like they could cause any problems) which I did not find without equery b -f '/etc/texmf/.*' (your step 1).
Comment 6 Alexander Holler 2011-10-07 09:32:48 UTC
An old language.dat was the reason here too (upgrading from texlive 2008 to 2010) why installing texlive-basic-2010 failed.

"kpsewhich language.dat" pointed to "/var/lib/texmf/tex/generic/config/language.dat" which was old. And texmf-update assumes that language.us resides where kpsewhich points to, otherwise it won't update language.dat. The TexLive guide doesn't mention to delete this file.

The solution here was to delete /var/lib/texmf/tex/generic/config/language.dat.
Comment 7 Alexis Ballier gentoo-dev 2011-11-30 12:58:24 UTC
well, not sure whats the resolution here, but please update config-protected files and attach a failing build log so that i can see if this is a real issue