Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528214 - =app-text/texlive-core-2014 bundles =dev-lang/lua-5.2.3 app-text/libpaper dev-lang/luajit
Summary: =app-text/texlive-core-2014 bundles =dev-lang/lua-5.2.3 app-text/libpaper dev...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: bundled-libs
  Show dependency tree
 
Reported: 2014-11-04 10:14 UTC by Jeroen Roovers (RETIRED)
Modified: 2020-03-22 09:38 UTC (History)
8 users (show)

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


Attachments
app-text:texlive-core-2014:20141104-085727.log (app-text:texlive-core-2014:20141104-085727.log,106.50 KB, text/plain)
2014-11-04 10:14 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-11-04 10:14:25 UTC
Created attachment 388512 [details]
app-text:texlive-core-2014:20141104-085727.log

I found out because luajit fails on HPPA. :)
Comment 1 Alexis Ballier gentoo-dev 2014-11-04 10:28:18 UTC
just fixed libpaper issue;

for lua & luajit it's much more difficult: those are not made to be unbundled by upstream and I remember whenever I tried to make luatex use system lua I failed horribly...
Comment 2 Martin Väth 2014-11-04 13:08:46 UTC
(In reply to Alexis Ballier from comment #1)
> 
> for lua & luajit it's much more difficult

Only judging from the output during compilation, texlive bundles lua-5.2.3, that is, you will probably not have a chance to make it work with lua-5.1.5 (the two versions are largely incompatible).

Unfortunately, eselect-lua and lua-5.2.3 are masked since months in portage (and indeed eselect-lua cannot be uesd to switch between lua-5.1.5 and 5.2.3). It seems that lua development in gentoo is stalled...

What is needed is probably some wrapper like for python, and a dynamic switch of include directories.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-07 11:28:30 UTC
I'll have a look at lua/luajit. Making lua/luajit _optional_ would probably be a good first step, especially since luajit doesn't work on most of the architectures texlive-core is keyworded for. If that fixes the bundling along the way, that would be nice too.
Comment 4 Alexis Ballier gentoo-dev 2014-11-07 11:34:18 UTC
(In reply to Jeroen Roovers from comment #3)
> I'll have a look at lua/luajit. Making lua/luajit _optional_ would probably
> be a good first step, especially since luajit doesn't work on most of the
> architectures texlive-core is keyworded for. If that fixes the bundling
> along the way, that would be nice too.

making it optional would be even more difficult: luatex/luajittex is mandatory even for texlive-basic... (grep lua /etc/texmf/fmtutil.d/*)
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-07 11:35:38 UTC
configure:   --disable-luajittex       do not compile and install LuaJITTeX

That should be easy to convert to a USE flag.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-07 11:37:43 UTC
(In reply to Alexis Ballier from comment #4)
> making it optional would be even more difficult: luatex/luajittex is
> mandatory even for texlive-basic... (grep lua /etc/texmf/fmtutil.d/*)

All use of USE=luajit in the tree says dev-lang/luajit will be used _instead of_ dev-lang/lua, so maybe it's the same here?
Comment 7 Alexis Ballier gentoo-dev 2014-11-07 11:48:53 UTC
(In reply to Jeroen Roovers from comment #5)
> configure:   --disable-luajittex       do not compile and install LuaJITTeX
> 
> That should be easy to convert to a USE flag.

The problem is not to disable it or not in texlive-core, it is that the rest of texlive still builds and works fine with it disabled.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-07 11:53:32 UTC
(In reply to Alexis Ballier from comment #7)
> The problem is not to disable it or not in texlive-core, it is that the rest
> of texlive still builds and works fine with it disabled.

Of course. That's why I was talking about luajit and not lua. The problem I'm focusing on right now is whether luajit is _required_. I doubt it, since it normally _replaces_ lua.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-07 12:07:30 UTC
_KPSE_LIB_FLAGS in m4/kpse-common.m4 seems to support "system" includes and libraries using libtool "[lt]" instead of included includes and libraries "[tree]" so there is hope that changing only kpse-lua52-flags.m4 and kpse-luajit-flags.m4 slightly might be enough. It doesn't solve the other problem with lua5.1/lua5.2 of course.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-07 12:44:16 UTC
Yes, adding $(use_enable luajit luajittex) does help build on HPPA (with USE=-luajit that is).
Comment 11 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-03-22 09:38:25 UTC
Should be fixed for _really_ long time.