Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2000 22:44:40 -0700 (PDT)
From:      <andy@geek4food.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19433: TkMan 2.14 / Glimpse interaction problem
Message-ID:  <200006220544.WAA99987@mega.geek4food.org>

next in thread | raw e-mail | index | archive | help

>Number:         19433
>Category:       ports
>Synopsis:       Glimpse 4.12 changed exit status hoses TkMan
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 21 22:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andy Sparrow
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
None I can see
>Environment:

	All currently supported ports enironments, as far as I can see.

>Description:

	glimpse version 4.1 returns exit status '0' for a 'glimpse -V'
	glimpse verion 4.12 returns exit status '1' for a 'glimpse -V'

	The latter makes 'tkman' think that the command exited with
	an error, and it bombs out.

>How-To-Repeat:

	Build 'tkman' from ports, removing old 'glimpse' first if
	installed (I used 2.1b4 as this was recently commited, but
	I believe the old 'tkman' will bomb too).

	Run 'tkman'.

	After building the man page database, Tkman prints:

		ERROR executing "/usr/local/bin/glimpse -V": 
		This is glimpse version 4.12, 1999.

		child process exited abnormally

	and exits.

>Fix:

	I chose to fix 'glimpse', as, despite this excerpt from
	the man page (common to both 4.1 and 4.12.6, BTW):

		DIAGNOSTICS
			   Exit  status  is  0 if any matches are found, 1 if none, 2
			   for syntax errors or inaccessible files.

	I felt that it was 'glimpse's exit status that was borken
	(plus, hacking 'tkman' was a lot harder... ;-)

	Adding this trivial patch fragment to the FreeBSD patches
	(it would actually be patch-ac) does the trick:


diff -ru main.c.bak main.c
--- main.c.bak        Fri Jun 16 00:04:43 2000
+++ main.c      Fri Jun 16 00:04:56 2000
@@ -938,7 +938,7 @@
 
                        case 'V' :
                                printf("\nThis is glimpse version %s, %s.\n\n", GLIMPSE_VERSION, GLIMPSE_DATE);
-                               RETURNMAIN(0);
+                               RETURNMAIN(1);
 
                        default :
                                if (isdigit(c)) quitwhile = ON;


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006220544.WAA99987>