Date: Tue, 24 Sep 2002 00:25:33 -0400 (EDT) From: Carl Schmidt <carl@slackerbsd.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/43317: Use NetBSD sort, not GNU sort. Message-ID: <20020924042533.0D0E44168@laptop.slackerbsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 43317
>Category: bin
>Synopsis: Use NetBSD sort, not GNU sort.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 23 21:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020924042533.0D0E44168>
