Hi, is there a canonical way to update texlive so it runs the latest context beta? From time to time, I'd like to be sure that I can run texlive as well. I tried unzipping the latest zip file in texlive/texmf-local, running mtxrun --generate and context --make, but I get texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call field 'loadchunk' (a nil value) mtx-context.lua is identical to the one in standalone, as is the luatex binary, so I'm wondering what's going wrong here? All best Thomas
On 11/27/2012 10:46 PM, Thomas A. Schmitz wrote:
Hi,
is there a canonical way to update texlive so it runs the latest context beta? From time to time, I'd like to be sure that I can run texlive as well. I tried unzipping the latest zip file in texlive/texmf-local, running mtxrun --generate and context --make, but I get
texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call field 'loadchunk' (a nil value)
mtx-context.lua is identical to the one in standalone, as is the luatex binary, so I'm wondering what's going wrong here?
you probably need to copy mtxrun.lua to mtxrun in some bin path ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 11/27/2012 11:06 PM, Hans Hagen wrote:
you probably need to copy mtxrun.lua to mtxrun in some bin path
Yes, that appears to be the culprit - after overwriting the "old" mtxrun with the fresh copy, it seems to work. On 11/27/2012 11:07 PM, Mojca Miklavec wrote:> What exactly do you mean with a canonical way? The most reliable way
could be creating a tar.xz package from the beta and install that one, but it wouldn't guarantee you that ConTeXt would work at all. Usually quite some effort is put into making sure that ConTeXt runs on TeX Live at all and it remains more or less stable (one has to start convincing Hans about a month in advance of TL freeze to slow down the development and try to hold on with major code changes, so that major bugs get fixed without introducing too many new ones; and it's also important to make sure that ConTeXt integrates well with the given framework of TL).
Creating a script to make you a tar.xz would be doable, but it would be completely unsupported.
An alternative is to put ConTeXt into your home/local tree (or some other tree where TL would find the files), but the nasty detail is that you have to make sure that all the relevant binaries & scripts are replaced as well. Notably that's mtxrun.
Hmm, that sounds much more complex than the simple fix Hans suggested. Since you package context for texlive, you have much more experience here than I do: any more scripts that need to be copied into the binary tree? (apart from luatex itself, if it gets updated to a new version) Thomas
On Tue, Nov 27, 2012 at 10:46 PM, Thomas A. Schmitz wrote:
Hi,
is there a canonical way to update texlive so it runs the latest context beta?
What exactly do you mean with a canonical way? The most reliable way could be creating a tar.xz package from the beta and install that one, but it wouldn't guarantee you that ConTeXt would work at all. Usually quite some effort is put into making sure that ConTeXt runs on TeX Live at all and it remains more or less stable (one has to start convincing Hans about a month in advance of TL freeze to slow down the development and try to hold on with major code changes, so that major bugs get fixed without introducing too many new ones; and it's also important to make sure that ConTeXt integrates well with the given framework of TL). Creating a script to make you a tar.xz would be doable, but it would be completely unsupported. An alternative is to put ConTeXt into your home/local tree (or some other tree where TL would find the files), but the nasty detail is that you have to make sure that all the relevant binaries & scripts are replaced as well. Notably that's mtxrun.
From time to time, I'd like to be sure that I can run texlive as well. I tried unzipping the latest zip file in texlive/texmf-local, running mtxrun --generate and context --make, but I get
texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call field 'loadchunk' (a nil value)
mtx-context.lua is identical to the one in standalone, as is the luatex binary, so I'm wondering what's going wrong here?
You also need to make sure that mtxrun is updated (in some way). Mojca
On 11/27/2012 11:07 PM, Mojca Miklavec wrote:
On Tue, Nov 27, 2012 at 10:46 PM, Thomas A. Schmitz wrote:
Hi,
is there a canonical way to update texlive so it runs the latest context beta?
What exactly do you mean with a canonical way? The most reliable way could be creating a tar.xz package from the beta and install that one, but it wouldn't guarantee you that ConTeXt would work at all. Usually quite some effort is put into making sure that ConTeXt runs on TeX Live at all and it remains more or less stable (one has to start convincing Hans about a month in advance of TL freeze to slow down the development and try to hold on with major code changes, so that major bugs get fixed without introducing too many new ones; and it's also important to make sure that ConTeXt integrates well with the given framework of TL).
Creating a script to make you a tar.xz would be doable, but it would be completely unsupported.
An alternative is to put ConTeXt into your home/local tree (or some other tree where TL would find the files), but the nasty detail is that you have to make sure that all the relevant binaries & scripts are replaced as well. Notably that's mtxrun.
In the past we had more updates of mp.luatex so it's more likely to work nowadays (unzip context, update mtxrun) but I expect a metapost / luatex update around the end of the year in which case the delta between tl and minimals becomes too large. I agree with Mojca that tl is meant to be stable and should be left as is.
From time to time, I'd like to be sure that I can run texlive as well. I tried unzipping the latest zip file in texlive/texmf-local, running mtxrun --generate and context --make, but I get
texmf-local/scripts/context/lua/mtx-context.lua:859: attempt to call field 'loadchunk' (a nil value)
mtx-context.lua is identical to the one in standalone, as is the luatex binary, so I'm wondering what's going wrong here?
You also need to make sure that mtxrun is updated (in some way).
often mtxrun --selfupdate works (given that we have a compatible luatex) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, Nov 28, 2012 at 12:20 AM, Martin Schröder wrote:
2012/11/27 Mojca Miklavec:
What exactly do you mean with a canonical way? The most reliable way
How about delivering a new version through tlcontrib?
Doable***, but a new beta is usually released several times per day (and sometimes doesn't even compile the format). There is one extra prerequisite though: it would have to be marked as highly experimental. Not everyone who decides to add tlcontrib to the list of repositories should get the latest beta every few hours. This feature is or was on Taco's TODO list on my request, but putting ConTeXt modules into TLContrib structure currently has a much higher priority than this feature. It might be a lot easier/faster to simply create a second repository with just ConTeXt betas. Mojca *** if TLContrib doesn't run out of disk space after storing all the ConTeXt versions into SVN ;) ;) ;)
On 11/28/2012 12:39 AM, Mojca Miklavec wrote:
On Wed, Nov 28, 2012 at 12:20 AM, Martin Schröder wrote:
2012/11/27 Mojca Miklavec:
What exactly do you mean with a canonical way? The most reliable way
How about delivering a new version through tlcontrib?
Doable***, but a new beta is usually released several times per day (and sometimes doesn't even compile the format).
Not that often, does it? Making formats is part of making the zip so it only fails when i forgot to add a file to the zip (in which case on my machine the file from my local tree is taken).
There is one extra prerequisite though: it would have to be marked as highly experimental. Not everyone who decides to add tlcontrib to the list of repositories should get the latest beta every few hours. This feature is or was on Taco's TODO list on my request, but putting ConTeXt modules into TLContrib structure currently has a much higher priority than this feature.
indeed. updating tlcontrib can happen with a low frequency (also because sometimes betas are real betas with new features)
It might be a lot easier/faster to simply create a second repository with just ConTeXt betas.
personally i always use special trees for projects that I inly update when i need a new feature Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Martin Schröder
-
Mojca Miklavec
-
Thomas A. Schmitz