[Semibug] Assume responsibility for a port

Jonathan Drews jondrews at fastmail.com
Mon May 22 19:50:14 EDT 2023


On Mon, May 22, 2023 at 12:06:06PM -0400, Josh Grosse wrote:
> On Mon, May 22, 2023 at 07:07:51AM -0600, Jonathan Drews wrote:
> > ... [snip] ...
> > Here is my Makefile for maxima. How do I specify it to use tk8.6?
> > ... [snip] ...
> > MODULES+=               x11/tk
> > ... [snip] ...
> 
> I don't have tk installed here, so I tested to see if there were
> any conflicts by trying to install both versions.  No conflicts, they


I made the changes to the Makefile but xmaxima will not run.

DULES =               lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
MODPY_RUNDEP =          No

BUILD_DEPENDS =         print/texinfo
LIB_DEPENDS=            lang/ecl
RUN_DEPENDS =           devel/desktop-file-utils \
                        misc/rlwrap \
                        misc/shared-mime-info

SUBST_VARS=             VERSION

MAKE_FLAGS =            MAKEINFO="${LOCALBASE}/bin/gtexi2any" \
                        TEXI2DVI="${LOCALBASE}/bin/gtexi2dvi"

CONFIGURE_ARGS+=        --enable-ecl
CONFIGURE_STYLE=        gnu

FLAVORS=                no_x11
FLAVOR?=

.if !${FLAVOR:Mno_x11}
MODULES+=               x11/tk
MODTK_VERSION =         8.6
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
RUN_DEPENDS +=          ${MODTK_RUN_DEPENDS} \
                        math/gnuplot
BUILD_DEPENDS +=        ${MODTK_BUILD_DEPENDS}
CONFIGURE_ARGS +=       --with-wish=${MODTK_BIN}
.endif

.include <bsd.port.mk>

> can both be installed at the same time.
> 
> In the ports-modules(5) man page, you will find a brief description
> of the x11/tk module and the variables that it sets.  One of those is
> MODTK_VERSION.  A brief glance through the module itself in
> /usr/ports/x11/tk/tk.port.mk makes it appear to me that you can
> set this variable to 8.6.  I'd try it and see if it makes a difference for you.

Stuart Henderson, on ports@, pointed out this from the beginning of
the xmaxima shell script:

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

package require Tk 8.6

<Snip>
Notice the call to wish8.5? Stuart says the following:
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

I'll have to read up on this 


--
Kind regards,
Jonathan



More information about the Semibug mailing list