Re: [NTG-context] troubles when installing OpenBSD 64 binaries (install.sh?)
![](https://secure.gravatar.com/avatar/553a05e1439e99fda5e0aca4f8af1e4f.jpg?s=120&d=mm&r=g)
Hi Hans, Thanks for your answer. I patched install.sh that way *** install.sh Fri Nov 13 19:14:48 2020 --- /usr/local/context/install.sh Sat Nov 14 20:58:00 2020 *************** *** 100,105 **** --- 100,111 ---- fi fi + if test "$SYSTEM" = "OpenBSD" ; then + if test $(grep -c $(uname -r) $PWD/bin/mtx-install.lua)="0"; then + sed -i "/openbsd/s/[0-9]\.[0-9]/$(uname -r)/" $PWD/bin/mtx-install.lua + fi + fi + $PWD/bin/mtxrun --script ./bin/mtx-install.lua --update --server="$LMTXSERVER" --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase --extras="$LMTXEXTRAS" cp $PWD/tex/texmf-$PLATFORM/bin/mtxrun $PWD/bin/mtxrun I thought this patch might be usefull upstream. It succeeds in patching mtx-install.lua (I checked commenting all the lines below my patch) but somewhere during the install process, this patched $PWD/bin/mtx-install.lua is replaced by the original one and install fails. What else should I do? Best regards, Damien Thiriet
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 11/14/2020 9:23 PM, Damien Thiriet wrote:
Hi Hans,
Thanks for your answer. I patched install.sh that way
*** install.sh Fri Nov 13 19:14:48 2020 --- /usr/local/context/install.sh Sat Nov 14 20:58:00 2020 *************** *** 100,105 **** --- 100,111 ---- fi fi
+ if test "$SYSTEM" = "OpenBSD" ; then + if test $(grep -c $(uname -r) $PWD/bin/mtx-install.lua)="0"; then + sed -i "/openbsd/s/[0-9]\.[0-9]/$(uname -r)/" $PWD/bin/mtx-install.lua + fi + fi + $PWD/bin/mtxrun --script ./bin/mtx-install.lua --update --server="$LMTXSERVER" --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase --extras="$LMTXEXTRAS"
cp $PWD/tex/texmf-$PLATFORM/bin/mtxrun $PWD/bin/mtxrun
I thought this patch might be usefull upstream. It succeeds in patching mtx-install.lua (I checked commenting all the lines below my patch) but somewhere during the install process, this patched $PWD/bin/mtx-install.lua is replaced by the original one and install fails.
What else should I do? wait till there's an update (you migth have to do the replacement trick once but after that it should be ok)
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Damien Thiriet
-
Hans Hagen