[NTG-context] OpenBSD install failed
Hello, I tried to install OpenBSD 7.4 binaries but failed. What I did: download the zip from pragma unpack it in /usr/local/context chmod 744 install.sh ./install.sh After running it, there is no file in /usr/local/context/tex/texmf-openbsd7.4-amd64/ I searched the mailing list archive and after reading that post from Mojca https://www.mail-archive.com/ntg-context@ntg.nl/msg92131.html I took a look at mtxrun.lua Don't know if this is the issue, but here is grep bsd /usr/local/context/bin/mtxrun.lua output: elseif name=="freebsd" then bits,platform=64,"freebsd-amd64" bits,platform=32,"freebsd" elseif name=="kfreebsd" then bits,platform=64,"kfreebsd-amd64" bits,platform=32,"kfreebsd-i386" Best regards, Damien Thiriet ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
Re: [NTG-context] OpenBSD install
Hi again, On Fri, May 13, 2022 at 09:39:06AM +0200, Mojca Miklavec wrote: Are you able to (log in and) edit wiki pages yourself? I can of course edit this now, but this can be community effort. I will surely forget to update the page in 6 months when the next OpenBSD version gets released. I could create an account to do that. I suppose there is no problem in doing so, and, of course, I'd gladly update the links for the next release in 6 months (I see you have already done that for the 32bits also, thank you!). I think a good solution instead of linking to all individual files, could be to link to the official download page once: http://www.pragma-ade.com/install.htm So you plan to keep using the 32-bit binaries for OpenBSD? I am, yes. I am migrating almost all 32bit boxes both at work and at home to Haiku and OpenBSD, since Linux is getting more and more resource demanding day by day (even Devuan, which can be configured to be very lightweight). I would really appreciate if you kept providing them. Cheers, Ángel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenBSD install
Dear Angel, V pet., 13. maj 2022 08:15 je oseba Angel M Alganza via ntg-context < ntg-context@ntg.nl> napisala: > Hello, > > I've just started upgrading some systems to OpenBSD 7.1 (released last > month) and found out there isn't a link to download LMTX for OpenBSD 7.1 > at https://wiki.contextgarden.net/Installation. > The wiki page was outdated. Can you please check again? (My browser refuses opening http links from an https site, I'm not sure if Hans configured https on his server.) > I then thought I'd try to see if the previous versions (for 6.9 or 6.8) > would work on 7.1, but it turned out that all four links (for both > 32bits and 64bits) won't work. At the moment we only support 7.0 and 7.1 (32-binaries are still there, but unless someone needs them, we'll likely remove them). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenBSD install
Hello again, On Fri, May 13, 2022 at 08:10:02AM +0200, Angel M Alganza via ntg-context wrote: There isn't a link to download LMTX for OpenBSD 7.1 at https://wiki.contextgarden.net/Installation. Sorry about the noise. I just found the official download page at Pragma, where the links for both, the 32bits and 42bits installation scripts for OpenBSD 7.1 work just fine. http://www.pragma-ade.com/install.htm Cheers, Ángel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] OpenBSD install
Hello, I've just started upgrading some systems to OpenBSD 7.1 (released last month) and found out there isn't a link to download LMTX for OpenBSD 7.1 at https://wiki.contextgarden.net/Installation. I then thought I'd try to see if the previous versions (for 6.9 or 6.8) would work on 7.1, but it turned out that all four links (for both 32bits and 64bits) won't work. FreeBSD and Linux links work fine, Any help for me to get the installation scripts for OpenBSD 7.1, please? Thank you in advance. Cheers, Ángel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenBSD install broken
Hi Mojca, Hi Robert I tried to install standalone according to your instructions, but I failed one more time. I did the following steps: mkdir context && cd context rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh . ./first-setup.sh Then I changed the line 4049 of bin/mtxrun to local platform="openbsd6.5-amd64" but I obviously did not understand what to do next: calling env PATH="$PWD/bin:$CONTEXTROOT/texmf-$platform/bin:$PATH" MTX_PLATFORM="$platform" \ ./bin/mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=luatex --platform="$platform" --texroot="$CONTEXTROOT" $@ ends quite quickly, with this output mtx-update | available platforms: freebsd freebsd-amd64 linux linux-64 linux-armhf linuxmusl-64 mswin openbsd6.5 openbsd6.5-amd64 osx-64 solaris-intel solaris-sparc win64 resolvers | tds | no 'texmf-openbsd6.5-6.4' under tree '/home//context/' which is the same output as ./first-setup.sh before the change. (changed my home name to ) What did I do wrong? Greetings, Damien Thiriet ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenBSD install broken
On September 21, 2019 at 4:22 AM, Mojca Miklavec wrote: On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote: 6) Finally, the setuptex script gives me an error message: megaera$ . /home//Context/tex/setuptex /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad substitution but it is not hard to set the path correctly: PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH This is something that I need to fix independently in the installation script. Do you have any clue what could be done to make it work properly on OpenBSD? Mojca Shell scripting has always been a mystery to me. For what it is worth, however, here is what I was able to come up with: megaera$ cat test echo "$SHELL" echo "$KSH_VERSION" SCRIPTPATH="$_" OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P) echo $OWNPATH megaera$ ./test /bin/ksh @(#)PD KSH v5.2.14 99/07/13.2 /home//Temp It seems that OpenBSD uses public domain ksh also known as ksh88, as opposed to the more common ksh93. I also found on the internet the following code snippet for testing ksh versions: case "$KSH_VERSION" in (*MIRBSD*|*PD*|*LEGACY*) printf '%s\n' "$KSH_VERSION" ;; (*) [ -z "$ERRNO" ] && printf '%s\n' "${.sh.version}" || echo ksh88/86 ;; esac All that said however, while it would be nice to have setuptex work on OpenBSD also, I think anyone using it can set their own paths if they have to. Robert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OpenBSD install broken
Dear Robert, On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote: > > Now, to the reason for this note. I recently tries to install context on an > OpenBSD 6.5 AMD64 > system, but the install failed. Thanks to some helpful emails in the archives > from 2017 and 2018, > I was able to get this working by editing mtxrun and mtx-update.sh. This would be really nice to fix eventually. Hans, we do have all the required files: https://distribution.contextgarden.net/setup/openbsd6.5/ https://distribution.contextgarden.net/setup/openbsd6.5-amd64/ ... https://distribution.contextgarden.net/current/bin/luatex/openbsd6.5-amd64/ ... but the problem is that mtxrun knows the platform under the name of "openbsd-amd64" rather than "openbsd6.5-amd64". The first-setup.sh script already correctly recognizes the name by doing the following: system=`uname -s` case "$system" in OpenBSD) version=`uname -r` platform="openbsd${version}-amd64" ;; # for 64-bit one; a separate call for 32-bit of course while mtxrun "ignores" the version name, but also ignores the parameter being passed as mtxrun --script bin/mtx-update.lua --platform=openbsd6.5-amd64 > I include what I did below. Thanks. > 1) Do the usual: > > mkdir context && cd context > rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh . > ./first-setup.sh > > This will silently fail, because > bin/mtx-update.lua > bin/mtxrun > do not recognize openbsd. > > 2) Edit bin/mtxrun: > > We need to define a "good" version of resolvers.platform(t,k) > At line 4049, there is a default definition. Replace it with: > > function resolvers.platform(t,k) > local platform="openbsd6.5-amd64" > os.setenv("MTX_PLATFORM",platform) > os.platform=platform > return platform > end It would be ideal to fix this properly instead, for everyone else. This is a good recipe for a workaround, but we need something better. In my opinion this might be best to maybe even fix inside luatex sources themselves. > 6) Finally, the setuptex script gives me an error message: > > megaera$ . /home//Context/tex/setuptex > /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad > substitution > > but it is not hard to set the path correctly: > > PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export > PATH This is something that I need to fix independently in the installation script. Do you have any clue what could be done to make it work properly on OpenBSD? Mojca PS: Hans, for some reason the 32-bit virtual machine for OpenBSD 6.5 seems broken in a bad way (I doesn't even reach the login screen), no clue what's wrong, and I don't have extensive experience with OpenBSD either. I could keep investigating, but I'll probably simply end up setting up a fresh one. It would be helpful to maybe do some disk health checks on the server, just in case. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] OpenBSD install broken
Greetings, First, thanks for all the wonderful work on context. Now, to the reason for this note. I recently tries to install context on an OpenBSD 6.5 AMD64 system, but the install failed. Thanks to some helpful emails in the archives from 2017 and 2018, I was able to get this working by editing mtxrun and mtx-update.sh. I include what I did below. Thanks again, Robert 1) Do the usual: mkdir context && cd context rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh . ./first-setup.sh This will silently fail, because bin/mtx-update.lua bin/mtxrun do not recognize openbsd. 2) Edit bin/mtxrun: We need to define a "good" version of resolvers.platform(t,k) At line 4049, there is a default definition. Replace it with: function resolvers.platform(t,k) local platform="openbsd6.5-amd64" os.setenv("MTX_PLATFORM",platform) os.platform=platform return platform end 3) Edit bin/mtx-update: 3a) In the table update.platforms add an entry for openbsd: ["openbsd6.5-amd64"] = "openbsd6.5-amd64", I put this at line 198, after the entries for freebsd. 3b) In the function update.synchronize() replace line 282: local platforms = states.get('platforms') or { } with: local platforms = states.get('platforms') or {"openbsd6.5-amd64" } 3c) At the very start of local function add_collection(collection,platform) line 417, add: platform = "openbsd6.5-amd64" Maybe something is broken on my system or these last two aren't really needed, but this is what I did, 4) Edit first-setup.sh: To avoid overwriting the files we just edited, comment out line 146: # rsync -rlptv rsync://contextgarden.net/minimals/setup/$platform/bin . This may interfere with future updates. 5) Install for real this time: ./first-setup.sh --modules=all 6) Finally, the setuptex script gives me an error message: megaera$ . /home//Context/tex/setuptex /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad substitution but it is not hard to set the path correctly: PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___