From root@laptop.slackerbsd.org  Mon Sep 23 21:25:35 2002
Return-Path: <root@laptop.slackerbsd.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 56BF037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Sep 2002 21:25:35 -0700 (PDT)
Received: from laptop.slackerbsd.org (pcp02155875pcs.walngs01.pa.comcast.net [68.81.47.129])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DEB0843E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Sep 2002 21:25:34 -0700 (PDT)
	(envelope-from root@laptop.slackerbsd.org)
Received: by laptop.slackerbsd.org (Postfix, from userid 0)
	id 0D0E44168; Tue, 24 Sep 2002 00:25:33 -0400 (EDT)
Message-Id: <20020924042533.0D0E44168@laptop.slackerbsd.org>
Date: Tue, 24 Sep 2002 00:25:33 -0400 (EDT)
From: Carl Schmidt <carl@slackerbsd.org>
Reply-To: Carl Schmidt <carl@slackerbsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Use NetBSD sort, not GNU sort.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43317
>Category:       bin
>Synopsis:       Use NetBSD sort, not GNU sort.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 23 21:30:02 PDT 2002
>Closed-Date:    Mon Sep 23 23:49:03 PDT 2002
>Last-Modified:  Mon Sep 23 23:49:03 PDT 2002
>Originator:     Carl Schmidt
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD laptop.slackerbsd.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Sep 23 19:20:39 EDT 2002 root@laptop.slackerbsd.org:/usr/obj/usr/src/sys/LAPTOP i386

>Description:
GNU sort was imported about three months ago and subsequently made a part
of the build.  NetBSD sort was imported about five months ago and was
apparently not made part of the build.  GNU sort does not understand
the common usage of +# (# = 1, 2, 3, etc.).

>How-To-Repeat:
Try building libncurses on its own.  There were other areas which
complained of sort's inability to use +# but I don't recall exactly
where.

>Fix:
The following solves my problem on my machine.  Your mileage may
vary and probably will.  I imagine there was a reason for using
GNU sort and not NetBSD sort.  I have no idea why though and since
GNU sort breaks world, I'd have to be all for using NetBSD sort
regardless of what fancy schmancy crap GNU sort offers.

--- usr.bin/Makefile.orig	Tue Sep 24 00:14:26 2002
+++ usr.bin/Makefile	Tue Sep 24 00:11:45 2002
@@ -146,6 +146,7 @@
 	showmount \
 	sockstat \
 	soelim \
+	sort \
 	split \
 	stat \
 	su \

---
mkdir usr.bin/sort
cp Makefile usr.bin/sort/Makefile
---

--- Makefile mentioned above ---

.PATH:	${.CURDIR}/../../contrib/sort

PROG=	sort
SRCS=	append.c fields.c files.c fsort.c init.c msort.c sort.c tmp.c

.include <bsd.prog.mk>

--- end Makefile ---

--- gnu/usr.bin/Makefile.orig	Tue Sep 24 00:19:20 2002
+++ gnu/usr.bin/Makefile	Tue Sep 24 00:19:29 2002
@@ -1,7 +1,7 @@
 # $FreeBSD: src/gnu/usr.bin/Makefile,v 1.72 2002/09/17 01:43:21 obrien Exp $
 
 SUBDIR= bc binutils cc cpio dc dialog diff diff3 \
-	gperf grep groff gzip man patch rcs sdiff send-pr sort tar texinfo
+	gperf grep groff gzip man patch rcs sdiff send-pr tar texinfo
 
 .if !defined(NO_CVS)
 SUBDIR+=cvs

---
Or something like that...apologies if this is a duplicate pr.
>Release-Note:
>Audit-Trail:

From: Carl Schmidt <carl@slackerbsd.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/43317: Use NetBSD sort, not GNU sort.
Date: Tue, 24 Sep 2002 00:40:44 -0400

 This is so much fun.  It has been brought to my attention that
 NetBSD sort was used for a little while but was backed out.  So
 this PR is obviously not necessary since we are all aware of the
 problem (everyone but me at least).
 
 Ugh.  I feel retarded.  More clutter for gnats, yay.
 -- 
 Carl Schmidt
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Mon Sep 23 23:48:20 PDT 2002 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43317 
>Unformatted:
