On Tue, May 23, 2023 at 03:41:05AM -0600, Jonathan Drews wrote:
> On Mon, May 22, 2023 at 07:43:20PM +0100, Stuart Henderson wrote:
> > On 2023/05/22 09:11, Jonathan Drews wrote:
> > > My system: OpenBSD 7.3 GENERIC.MP#1125 amd64
> > > The port: math/maxima
> > > 
> > > 
> > > and the xmaxima shell script says requires tk8.6:
> > > 
> > > #!/bin/sh
> > > #  -*- mode: tcl; fill-column: 75; tab-width: 8 -*- \
> > > exec /usr/local/bin/wish8.5 "$0" -- "$@"
> > > 
> > > package require Tk 8.6
> > 
> > you have the wrong wish version in the exec line. this is usually fixed
> > up by passing the file to ${MODTCL_WISH_ADJ} in some build/configure
> > stage. maybe along the lines of
> > 
> > pre-build:
> >     ${MODTCL_WISH_ADJ} ${WRKSRC}/path/to/file
> > 
> 
> Stuart and others:
> 
>  I added the following to the end of my Makefile:
> 
> pre-build:
>         ${MODTCL_WISH_ADJ} ${WRKSRC}/wish8.6

I made a correction:

pre-build:
         ${MODTCL_WISH_ADJ} ${WRKSRC}/xmaxima

and the correct wish shows up in :

/usr/ports/pobj/maxima-5.46.0/maxima-5.46.0/interfaces/xmaxima/xmaxima
#!/bin/sh
#  -*- mode: tcl; fill-column: 75; tab-width: 8 -*- \
exec /usr/local/bin/wish8.6 "$0" -- "$@"

but in /usr/local/bin/xmaxima I still get wish8.5

cat /usr/local/bin/xmaxima | head
   
#!/bin/sh
#  -*- mode: tcl; fill-column: 75; tab-width: 8 -*- \
exec /usr/local/bin/wish8.5 "$0" -- "$@"

package require Tk 8.6


Any advice would be greatly appreciated.

--
Kind regards,
Jonathan



Reply via email to