NetBSD Problem Report #25471

Received: (qmail 16385 invoked by uid 605); 5 May 2004 12:17:10 -0000
Message-Id: <20040505121709.099EF11158@narn.netbsd.org>
Date: Wed,  5 May 2004 12:17:09 +0000 (UTC)
From: hsaliak@kasba.ath.cx
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: hsaliak@kasba.ath.cx
To: gnats-bugs@gnats.NetBSD.org
Subject: cscope fails on creating an inverse index  ( cscope [-b] -q )  
X-Send-Pr-Version: www-1.0

>Number:         25471
>Category:       pkg
>Synopsis:       cscope fails on creating an inverse index  ( cscope [-b] -q )
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 05 12:18:00 +0000 2004
>Closed-Date:    Wed May 05 13:29:45 +0000 2004
>Last-Modified:  Wed May 05 13:29:45 +0000 2004
>Originator:     Kailash Sethuraman
>Release:        1.6ZK
>Organization:
>Environment:
NetBSD harold 1.6ZK NetBSD 1.6ZK (GENERIC_LAPTOP) #1: Sun Mar 14 13:03:13 SGT 2004  root@kasba:/usr/src/nbsd/obj/usr/src/nbsd/src/sys/arch/i386/compile/GENERIC_LAPTOP i386

>Description:
The cscope program  pkgsrc/devel/cscope fails on creating an inverse index because the program opens a pipe to sort , but supplies sort an invalid, obsolete option (-y) . 
>How-To-Repeat:
run 'cscope -b -q'  in a source directory with a populated cscope.files ( find . -name "*.[ch]" > cscope.files  will create this ) . Building an inverse index will fail with  the  usage of sort printed.
>Fix:

--- src/build.c.orig    2001-11-22 17:38:19.000000000 +0000
+++ src/build.c
@@ -443,7 +443,7 @@ build(void)
                }
                (void) fstat(fileno(postings), &statstruct);
                (void) fclose(postings);
-               (void) sprintf(sortcommand, "env LC_ALL=C sort -y -T %s %s", tmpdir, temp1);
+               (void) sprintf(sortcommand, "env LC_ALL=C sort -T %s %s", tmpdir, temp1);
                if ((postings = mypopen(sortcommand, "r")) == NULL) {
                        (void) fprintf(stderr, "cscope: cannot open pipe to sort command\n");
                        cannotindex();

>Release-Note:
>Audit-Trail:

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/25471 CVS commit: pkgsrc/devel/cscope
Date: Wed,  5 May 2004 13:25:27 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Wed May  5 13:25:27 UTC 2004

 Modified Files:
 	pkgsrc/devel/cscope: Makefile distinfo
 Added Files:
 	pkgsrc/devel/cscope/patches: patch-ae

 Log Message:
 Add patch from Kailash Sethuraman in PR 25471 that removes an obsolete
 sort(1) flag. PKGREVISION=2.


 To generate a diff of this commit:
 cvs rdiff -r1.33 -r1.34 pkgsrc/devel/cscope/Makefile
 cvs rdiff -r1.7 -r1.8 pkgsrc/devel/cscope/distinfo
 cvs rdiff -r0 -r1.5 pkgsrc/devel/cscope/patches/patch-ae

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Wed May 5 13:26:05 UTC 2004 
State-Changed-Why:  
Committed, thanks. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.