Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154035 - app-text/xetex-0.995 supplies xkeyval.sty as does also tetex, and xelatex gets tetex's version which does not work quite right with xetex
Summary: app-text/xetex-0.995 supplies xkeyval.sty as does also tetex, and xelatex get...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Joshua (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-04 07:47 UTC by Ferris McCormick (RETIRED)
Modified: 2006-11-06 05:03 UTC (History)
4 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 Ferris McCormick (RETIRED) gentoo-dev 2006-11-04 07:47:44 UTC
I am reporting against xetex because it is the newcomer; problem is really with a name conflict and tetex's search scheme.

xetex supplies /usr/share/texmf/tex/xelatex/xkeyval/xkeyval.sty
tetex supplies /usr/share/texmf/tex/latex/xkeyval/xkeyval.sty

xelatex \use{fontspec} loads xkeyval.sty, and ends up getting the latex version because of the order in which tex searches for files to resolve such a request.

Unfortunately, fontspec doesn't quite work with the latex version of xkeyval because of a call to \define@choicekey, if nothing else.

My "solution" to this has been:
(1) copy the xetex versions of xkeyval.{sty,tex} to xekeyval,{sty,tex}
(2) Change every instance of xkeyval to xekeyval in the xekeyval.{sty,tex} files
(3) Change fontspec.sty to require xekeyval
(4) tex-hash

After this, everything works as expected.
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2006-11-04 08:00:19 UTC
(1) Assign to joslwah, although I don't think it's really his problem. He'll know where to send it, though;
(2) Add arch's on which I am working;
(3) CC the tetex people

I am doing this in two stages because bugzilla makes me do it that way.

By the way, I made the changes on a running system, so those copies and edits are really in the directory /usr/share/texmf/tex/xelatex.  And yes, you need both the .sty and .tex files because the .sty file might decide to read in the .tex file.

I haven't thought through what all needs to be changed in the .ebuild if this turns out to be the best solution.  Another possibility is to just replace the latex xkeyval.{sty,tex} files with xetex's versions, but I have not bothered to check to see if latex works with them.
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2006-11-04 08:45:28 UTC
Fix summary.
Comment 3 Gour 2006-11-05 02:34:52 UTC
> 
> My "solution" to this has been:

I dl-ed and installed newer xkeyval in tetex tree and xetex is now happy :-)

Probably moving to TexLive would be a better solution for a long run ;)

Sincerely,
Gour
Comment 4 Joshua (RETIRED) gentoo-dev 2006-11-05 04:26:21 UTC
Can you let me know the results of:
    egrep xelatex /etc/texmf/web2c/texmf.cnf
    egrep xetex /etc/texmf/web2c/texmf.cnf

Thanks very much.
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2006-11-05 15:40:11 UTC
(In reply to comment #4)
> Can you let me know the results of:
>     egrep xelatex /etc/texmf/web2c/texmf.cnf
>     egrep xetex /etc/texmf/web2c/texmf.cnf
> 
> Thanks very much.
> 
Sure.  Here they are:

fmccor@terciopelo ~ [137]% egrep xelatex /etc/texmf/web2c/texmf.cnf
TEXINPUTS.xelatex = .;$TEXMF/tex/{latex,generic,}//

fmccor@terciopelo ~ [138]%  egrep xetex /etc/texmf/web2c/texmf.cnf
TEXINPUTS.xetex   = .;$TEXMF/tex/{plain,generic,}//
Comment 6 Joshua (RETIRED) gentoo-dev 2006-11-05 17:13:39 UTC
(In reply to comment #1)
> (1) Assign to joslwah, although I don't think it's really his problem. He'll
> know where to send it, though;

    O.k.  I've found a fix, I think.  So won't be sending it anywhere until we know that it does work.

> (2) Add arch's on which I am working;
> (3) CC the tetex people
> 
> I am doing this in two stages because bugzilla makes me do it that way.
> 
> By the way, I made the changes on a running system, so those copies and edits
> are really in the directory /usr/share/texmf/tex/xelatex.  And yes, you need
> both the .sty and .tex files because the .sty file might decide to read in the
> .tex file.
> 
     What was going wrong was that tex/xelatex wasn't in the xelatex kpse search path.  Added in /etc/texmf/web2c/texmf.cnf if not present.  This should fix the issue.

> I haven't thought through what all needs to be changed in the .ebuild if this
> turns out to be the best solution.  Another possibility is to just replace the
> latex xkeyval.{sty,tex} files with xetex's versions, but I have not bothered to
> check to see if latex works with them.
> 

   Please re-emerge xetex and try again.  It hopefully should work now.
Comment 7 Ferris McCormick (RETIRED) gentoo-dev 2006-11-06 05:03:19 UTC
That fixed it. Thanks.  I'm marking this as fixed.