NetBSD Problem Report #19425
Received: (qmail 24870 invoked by uid 605); 17 Dec 2002 07:30:30 -0000
Message-Id: <20021217073028.CEBA811125@narn.netbsd.org>
Date: Mon, 16 Dec 2002 23:30:28 -0800 (PST)
From: istvan+nb@redback.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: istvan+nb@redback.com
To: gnats-bugs@gnats.netbsd.org
Subject: cscope -q fails because sort doesn't support -y option
X-Send-Pr-Version: www-1.0
>Number: 19425
>Category: pkg
>Synopsis: cscope -q fails because sort doesn't support -y option
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 17 07:31:00 +0000 2002
>Closed-Date: Sat Mar 22 06:06:37 +0000 2003
>Last-Modified: Sat Mar 22 06:06:37 +0000 2003
>Originator: Istvan Marko
>Release: 1.6
>Organization:
>Environment:
NetBSD dys 1.6 NetBSD 1.6 (DYS) #31: Sat Sep 7 17:01:11 PDT 2002 notroot@dys:/netbsd15/nbsrc16/sys/arch/i386/compile/DYS i386
>Description:
Running "cscope -q" fails with "sort: unknown option -- y" because the new sort version shipped with NetBSD 1.6 doesn't know about the -y option. -y is some wacky Solaris compatibility option, it is just ignored in GNU sort.
>How-To-Repeat:
cd /usr/pkgsrc/devel/cscope
make install
cd .../some/src/dir
cscope -q
>Fix:
--- cscope-15.3.orig/src/main.c Fri Jun 1 05:43:24 2001
+++ cscope-15.3/src/main.c Mon Dec 16 23:08:10 2002
@@ -1056,7 +1056,7 @@
}
(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/19425 CVS commit: pkgsrc/devel/cscope
Date: Sat, 22 Mar 2003 08:05:28 +0200 (EET)
Module Name: pkgsrc
Committed By: wiz
Date: Sat Mar 22 06:05:27 UTC 2003
Modified Files:
pkgsrc/devel/cscope: Makefile distinfo
Added Files:
pkgsrc/devel/cscope/patches: patch-ae
Log Message:
Remove obsolete "-y" flag from sort call; bump PKGREVISION.
Patch from Istvan Marko in PR 19425.
To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 pkgsrc/devel/cscope/Makefile
cvs rdiff -r1.5 -r1.6 pkgsrc/devel/cscope/distinfo
cvs rdiff -r0 -r1.3 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: Fri Mar 21 22:06:22 PST 2003
State-Changed-Why:
Fixed, thanks for the PR.
>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.