NetBSD Problem Report #32990
From kre@munnari.OZ.AU Sat Mar 4 14:50:50 2006
Return-Path: <kre@munnari.OZ.AU>
Received: from jade.coe.psu.ac.th (unknown [202.12.74.196])
by narn.netbsd.org (Postfix) with ESMTP id 2AC8063B871
for <gnats-bugs@gnats.NetBSD.org>; Sat, 4 Mar 2006 14:50:49 +0000 (UTC)
Message-Id: <200603041450.k24EokFp028036@jade.coe.psu.ac.th>
Date: Sat, 4 Mar 2006 21:50:47 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@netbsd.org
Subject: misc/visual-regexp needs better install method
X-Send-Pr-Version: 3.95
>Number: 32990
>Category: pkg
>Synopsis: misc/visual-regexp needs better install method
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: minskim
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 04 14:55:01 +0000 2006
>Closed-Date: Fri Mar 10 16:54:48 +0000 2006
>Last-Modified: Fri Mar 10 16:54:48 +0000 2006
>Originator: Robert Elz
>Release: NetBSD 3.99.15 (pkgsrc current as of a few hours ago)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/JADE_ASUS i386
packages compiled using pkg_comp with libkver and 3.0 release sets
Architecture: i386
Machine: i386
>Description:
misc/visual-regexp installs with any version of tk >= 8.3.2
(which obviously includes 8.4.12nb2 (the current x11/tk)
which is what I have installed. However, when installed, the
visual_regexp script wants wish8.3 which only gets installed
with x11/tk83. There doesn't seem to be any good reason for
that, from what I can tell (very minimal testing) it works
fine with tk 8.4.12
Also (very minor bug, but which perhaps can get fixed at the
same time), the Usage string in the help window (once you
have visual_regexp working) says
Usage: tkregexp <sampleFile>
where it probably should say
Usage: visual_regexp <samplefile?
I don't know who/where/when the name was changed from tkregexp
to visual_regexp (ie: whether this is a pkgsrc name change, or
something done by its author) so I don't know if this one is
one that should be sent back to the author to fix or not (if it
should, then it isn't important enough to bother with a pkgsrc
patch to handle in the interim)
>How-To-Repeat:
Install (or update to) current versions of tk (and anything else
that requires), and then install misc/visual-regesp
jade$ pkg_info | grep ^tk
tk-8.4.12nb2 Graphical toolkit for TCL
jade$ pkg_info | grep ^visual
visual_regexp-3.0nb1 Easily design and debug regular expressions graphically
Then look at the start of /usr/pkg/bin/visual_regexp (obviously
using whatever LOCALBASE you're using)...
jade$ sed 8q /usr/pkg/bin/visual_regexp
#!/bin/sh
#-*-tcl-*-
# the next line restarts using wish \
exec wish8.3 "$0" -- ${1+"$@"}
set version 3.0
Note the "exec wish8.3" which is expecting a version of Tk
which I don't have installed (and which pkgsrc did not
install for me).
If you make it work (by changing the 8.3 to 8.4 - or, I
assume, by installing x11/tk83, then click on the help
button in the upper right corner of the main window to see
the help page with the erroneous usage string.
>Fix:
Do some of the install script munging that pkgsrc is good
at to convert the "wish8.3" string into whichever version of
wish is actually installed. Either that, or simply change it
to use "wish" instead of being pedantic about which version
it wants. Alternatively, I suppose it would be possible to
have it demand that tk83 be installed, rather than any tk
after (or exatlY) 8.3.2 - but there doesn't seem to be a need
for that, given that it seems to work OK using 8.4.12.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->minskim
Responsible-Changed-By: minskim@netbsd.org
Responsible-Changed-When: Thu, 09 Mar 2006 19:13:09 +0000
Responsible-Changed-Why:
I'll take this.
From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32990 CVS commit: pkgsrc/misc/visual-regexp
Date: Thu, 9 Mar 2006 19:19:00 +0000 (UTC)
Module Name: pkgsrc
Committed By: minskim
Date: Thu Mar 9 19:19:00 UTC 2006
Modified Files:
pkgsrc/misc/visual-regexp: Makefile
Log Message:
Add wish to USE_TOOLS and replace the hardcoded "wish8.3" with ${WISH}.
Also fix the command name in usage. Suggested by Robert Elz in PR pkg/32990.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/misc/visual-regexp/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: minskim@netbsd.org
State-Changed-When: Thu, 09 Mar 2006 19:20:55 +0000
State-Changed-Why:
Fixed. Please try visual-regexp-3.0nb2.
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32990 (misc/visual-regexp needs better install method)
Date: Fri, 10 Mar 2006 23:08:07 +0700
Date: Thu, 9 Mar 2006 19:20:57 +0000 (UTC)
From: minskim@netbsd.org
Message-ID: <20060309192057.3B43F63B8A0@narn.netbsd.org>
| Fixed. Please try visual-regexp-3.0nb2.
Works fine. Thanks.
kre
State-Changed-From-To: feedback->closed
State-Changed-By: minskim@netbsd.org
State-Changed-When: Fri, 10 Mar 2006 16:54:48 +0000
State-Changed-Why:
Confirmed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.