Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2023 01:55:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256218] textproc/wordnet: missing Tk dependency
Message-ID:  <bug-256218-7788-m4GtndebLe@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256218-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256218-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256218

--- Comment #12 from Mikhail T. <mi@ALDAN.algebra.com> ---
How about I modify wnb to use tclsh instead of wish, and try loading Tk at
runtime like this:

#!/usr/local/bin/tclsh8.6

if {[catch {package require Tk} err]} {
        puts stderr "Error initializing GUI: $err\n\nThis program requires =
Tk.\
            Please, install the x11-toolkits/tk[string map {. {}} $tcl_vers=
ion]
port."
        exit 1
}

This will give the user a fair explanation without adding the OPTIONS and
creating multiple versions of the package? Because even with your patch, if=
 the
user declines the GUI-option, the port would still install wnb -- just as
unusable as it is currently...

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256218-7788-m4GtndebLe>