Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240610 - app-text/texlive-2008: collection of prefix patches
Summary: app-text/texlive-2008: collection of prefix patches
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on: 240566
Blocks:
  Show dependency tree
 
Reported: 2008-10-08 22:48 UTC by Elias Pipping
Modified: 2008-10-19 12:01 UTC (History)
0 users

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


Attachments
patch that makes luatex work (luatex-libtool.diff,1.19 KB, patch)
2008-10-09 02:03 UTC, Elias Pipping
Details | Diff
patch against freetype (freetype-carbon.patch,549 bytes, patch)
2008-10-09 03:10 UTC, Elias Pipping
Details | Diff
makes luatex link, too (luatex-ar.diff,475 bytes, patch)
2008-10-19 10:04 UTC, Elias Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Pipping 2008-10-08 22:48:49 UTC
whatever is need to make stuff going goes here
Comment 1 Elias Pipping 2008-10-09 00:39:35 UTC
here's the error with mplib:

/bin/sh ../libtool --mode=link i686-apple-darwin9-g++ -o luatex  luatexini.o luatex0.o luatex1.o luatex2.o luatex3.o luatexextra.o luatex-pool.o   luatexdir/libpdf.a -lpng -lz -L/Users/pipping/gentoo/usr/lib -lpoppler   ../../libs/md5/md5.o ../../libs/obsdcompat/libopenbsd-compat.a ../../libs/lua51/liblua.a ../../libs/slnunicode/slnunico.o  ../../libs/luazip/src/luazip.o -L/Users/pipping/gentoo/usr/lib -lzzip -lz    ../../libs/luafilesystem/src/lfs.o ../../libs/luasocket/src/socket.a ../../libs/luapeg/lpeg.o ../../libs/luamd5/md5lib.o ../../libs/luamd5/md5.o  ../../libs/luazlib/lgzip.o ../../libs/luazlib/lzlib.o ../../libs/luafontforge/libff.a /Users/pipping/gentoo/usr/lib/libmplib/mplib.la   lib/lib.a ../kpathsea/libkpathsea.la -lm   
libtool: link: cannot find the library `/Users/pipping/gentoo/usr/lib/libmplib/mplib.la'

tried to fix it via

-inherit libtool
+inherit autotools libtool
[..]
+       sed -i \
+               -e 's:\<libmplib\([._]\):liblocalmplib\1:g' \
+               -e 's:\<mplib\([._]\):libmplib\1:g' \
+               Makefile.am
+       eautoreconf

here's what happens then:

i686-apple-darwin9-g++ -o luatex luatexini.o luatex0.o luatex1.o luatex2.o luatex3.o luatexextra.o luatex-pool.o ../../libs/md5/md5.o ../../libs/slnunicode/slnunico.o ../../libs/luazip/src/luazip.o ../../libs/luafilesystem/src/lfs.o ../../libs/luapeg/lpeg.o ../../libs/luamd5/md5lib.o ../../libs/luamd5/md5.o ../../libs/luazlib/lgzip.o ../../libs/luazlib/lzlib.o  luatexdir/libpdf.a -L/Users/pipping/gentoo/usr/lib -lpng -lpoppler -lxml2 -lpthread -lfontconfig -liconv -lfreetype -lexpat ../../libs/obsdcompat/libopenbsd-compat.a ../../libs/lua51/liblua.a -lzzip -lz ../../libs/luasocket/src/socket.a ../../libs/luafontforge/libff.a -L/Users/pipping/gentoo/usr/lib/libmplib -lmplib lib/lib.a ../kpathsea/.libs/libkpathsea.a -lm
ld: library not found for -lmplib
Comment 2 Elias Pipping 2008-10-09 00:40:54 UTC
damn. of course it's the other way around (libtool isn't even used without those changes)
Comment 3 Elias Pipping 2008-10-09 02:03:23 UTC
Created attachment 167690 [details, diff]
patch that makes luatex work

by explicitly linking against the archive (.a) instead of the libtool archive (.la), we can make it work.

this shouldn't break anything. the problem arises from the distinction of modules and dynamic libraries
on osx, in combination with libtool.
Comment 4 Elias Pipping 2008-10-09 03:10:23 UTC
Created attachment 167692 [details, diff]
patch against freetype

even with that in place, texlive-core fails to link

  "_FT_GetFilePath_From_Mac_ATS_Name", referenced from:
      _pdf_load_native_font in xdvipdfmx-fontmap.o

FT_GetFilePath_From_Mac_ATS_Name is deprecated and not available by default.
passing --with-old-mac-fonts to freetype's configure makes it available, which
is what the patch is for
Comment 5 Elias Pipping 2008-10-09 03:35:37 UTC
texlive-latex appears to require ibyhyph.tex to be present.

pipping@quicksand $ texmfind ibyhyph.tex
dev-texlive/texlive-langgreek [1 file]
Comment 6 Elias Pipping 2008-10-09 03:42:20 UTC
pipping@quicksand $ equery b texmf/tex/generic/config/language.def
[ Searching for file(s) texmf/tex/generic/config/language.def in *... ]
dev-texlive/texlive-basic-2008 (/Users/pipping/gentoo/usr/share/texmf/tex/generic/config/language.def)

pipping@quicksand $ grep ibyhyph.tex usr/share/texmf/tex/generic/config/language.def
\addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}
Comment 7 Alexis Ballier gentoo-dev 2008-10-09 07:27:29 UTC
(In reply to comment #6)
> pipping@quicksand $ equery b texmf/tex/generic/config/language.def
> [ Searching for file(s) texmf/tex/generic/config/language.def in *... ]
> dev-texlive/texlive-basic-2008
> (/Users/pipping/gentoo/usr/share/texmf/tex/generic/config/language.def)
> 
> pipping@quicksand $ grep ibyhyph.tex
> usr/share/texmf/tex/generic/config/language.def
> \addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}

This is because your language.def file hasn't been properly regenerated:
$ grep ibyhyph /etc/texmf/language.def.d/*
/etc/texmf/language.def.d/language.texlive-langgreek.def:\addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}


and this should only go in language.def if you have langgreek installed; the default language.def contains every language support file though but is overwritten as soon as texmf-update is ran, eg at the end of tl-basic install.
Comment 8 Elias Pipping 2008-10-09 12:09:17 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > pipping@quicksand $ equery b texmf/tex/generic/config/language.def
> > [ Searching for file(s) texmf/tex/generic/config/language.def in *... ]
> > dev-texlive/texlive-basic-2008
> > (/Users/pipping/gentoo/usr/share/texmf/tex/generic/config/language.def)
> > 
> > pipping@quicksand $ grep ibyhyph.tex
> > usr/share/texmf/tex/generic/config/language.def
> > \addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}
> 
> This is because your language.def file hasn't been properly regenerated:
> $ grep ibyhyph /etc/texmf/language.def.d/*
> /etc/texmf/language.def.d/language.texlive-langgreek.def:\addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}

thanks for clarifying,

> [..] language.def [..] is overwritten as soon as texmf-update is ran, eg at the end of tl-basic install.

that's strange, that should've happened for me...
Comment 9 Alexis Ballier gentoo-dev 2008-10-09 16:22:47 UTC
(In reply to comment #8)
> > [..] language.def [..] is overwritten as soon as texmf-update is ran, eg at the end of tl-basic install.
> 
> that's strange, that should've happened for me...

note that i'm talking about the main tree here, so that may be a bug in the prefix version.
Comment 10 Fabian Groffen gentoo-dev 2008-10-13 10:42:22 UTC
(In reply to comment #4)
> Created an attachment (id=167692) [edit]
> patch against freetype
> 
> even with that in place, texlive-core fails to link
> 
>   "_FT_GetFilePath_From_Mac_ATS_Name", referenced from:
>       _pdf_load_native_font in xdvipdfmx-fontmap.o
> 
> FT_GetFilePath_From_Mac_ATS_Name is deprecated and not available by default.
> passing --with-old-mac-fonts to freetype's configure makes it available, which
> is what the patch is for

I think we should use the new interface instead.
Comment 11 Fabian Groffen gentoo-dev 2008-10-14 13:42:55 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > pipping@quicksand $ equery b texmf/tex/generic/config/language.def
> > [ Searching for file(s) texmf/tex/generic/config/language.def in *... ]
> > dev-texlive/texlive-basic-2008
> > (/Users/pipping/gentoo/usr/share/texmf/tex/generic/config/language.def)
> > 
> > pipping@quicksand $ grep ibyhyph.tex
> > usr/share/texmf/tex/generic/config/language.def
> > \addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}
> 
> This is because your language.def file hasn't been properly regenerated:
> $ grep ibyhyph /etc/texmf/language.def.d/*
> /etc/texmf/language.def.d/language.texlive-langgreek.def:\addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}
> 
> 
> and this should only go in language.def if you have langgreek installed; the
> default language.def contains every language support file though but is
> overwritten as soon as texmf-update is ran, eg at the end of tl-basic install.

I have the same problem on Solaris here.

% grep ibyhyph $EPREFIX/etc/texmf/language.def.d/*
%

running texmf-update doesn't seem to help...
Comment 12 Fabian Groffen gentoo-dev 2008-10-14 13:45:40 UTC
my texmf-update actually only seems to deal with a language.dat, not language.def
Comment 13 Alexis Ballier gentoo-dev 2008-10-14 13:47:07 UTC
(In reply to comment #12)
> my texmf-update actually only seems to deal with a language.dat, not
> language.def
> 

then the texmf-update2008 is where to look at; perhaps it hasn't been correctly prefixed? where can I have a look at it?
Comment 14 Fabian Groffen gentoo-dev 2008-10-14 13:50:48 UTC
I don't have anything other than texmf-update, should I have a texmf-update2008?  That would explain something.  I verified texmf-update is installed by texlive-core.  I can send you that file if that helps...
Comment 15 Alexis Ballier gentoo-dev 2008-10-14 14:02:55 UTC
(In reply to comment #14)
> I don't have anything other than texmf-update, should I have a
> texmf-update2008?  That would explain something.  I verified texmf-update is
> installed by texlive-core.  I can send you that file if that helps...
> 

its named texmf-update2008 in $FILESDIR but installed via newsbin iirc as texmf-update; because the 2008 version requires some extra things, like the language.def one :)
Comment 16 Fabian Groffen gentoo-dev 2008-10-14 15:26:41 UTC
We have a problem.   Thanks for the hint, will fix0r before bothering you again.
Comment 17 Elias Pipping 2008-10-19 10:04:52 UTC
Created attachment 169062 [details, diff]
makes luatex link, too
Comment 18 Fabian Groffen gentoo-dev 2008-10-19 12:01:28 UTC
I have it installed now, closing this dragon bug.