RE: [HEADS-UP] BSD sort coming to -CURRENT

From: Oleg Moskalenko <oleg.moskalenko_at_citrix.com>
Date: Tue, 8 May 2012 15:48:04 -0700
Hi Michael

We found the problem. In the ispell port, an unusual form of deprecated sort syntax for the key field(s) is used. There are three forms of key field(s) specification:

POSIX standard: $ sort -kPOS1[,POS2]
Documented deprecated form: $ sort +POS1 [-POS2]
Undocumented deprecated form: $ sort -POS2 +POS1

The new sort supports two first forms. The ispell uses the third form (sort -1 +0). We can add support for the third form. We are going to do it today or tomorrow and we will test the ispell build.

Thanks
Oleg

-----Original Message-----
From: owner-freebsd-current_at_freebsd.org [mailto:owner-freebsd-current_at_freebsd.org] On Behalf Of Michael Scholz
Sent: Tuesday, May 08, 2012 3:08 PM
To: Gabor Kovesdan
Cc: FreeBSD Current; Oleg Moskalenko
Subject: Re: [HEADS-UP] BSD sort coming to -CURRENT

Gabor Kovesdan wrote:
> Oleg Moskalenko has been working very hard on BSD sort and by now we 
> think it is compatible with the base version (and has even more 
> features, the ideas mostly taken from the latest GNU sort) and it is 
> efficient. I just updated the textproc/bsdsort port to the latest 
> version so that people can test it and I plan to commit it to HEAD in 
> some days, for now installed as "bsdsort", leaving GNU sort the default 
> version. If someone has any objection, please raise it now. Future plans 
> are to switch the logic and make BSD sort default once it has undergone 
> enough testing and finally drop GNU sort permanently if no problems appear.

BSD sort doesn't work with ports/textproc/ispell, it stops with
   sort: invalid option -- 1

% uname -a
FreeBSD pumpkin.fth-devel.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri May  4 15:34:58 CEST 2012     root_at_pumpkin.fth-devel.net:/usr/obj/usr/src/sys/PUMPKIN  i386

% ls -lF /usr/bin/*sort*
lrwxr-xr-x  1 root  wheel     13 May  8 22:15 /usr/bin/bsdsort_at_ -> /usr/bin/sort
-r-xr-xr-x  1 root  wheel  65416 May  8 22:15 /usr/bin/gnusort*
-r-xr-xr-x  1 root  wheel  49280 May  8 22:15 /usr/bin/sort*
-r-xr-xr-x  1 root  wheel   7276 May  4 15:46 /usr/bin/tsort*

# cd /usr/ports/textproc/ispell && make

[...]
./ispell -v | sed -e 1q
_at_(#) International Ispell Version 3.3.02 12 Jun 2005
. ./config.sh;  set +vx;  sed  -e "s_at_!!BAKEXT!!_at_$BAKEXT_at_g"  -e "s_at_!!COUNTSUFFIX!!_at_$COUNTSUFFIX_at_g"  -e "s_at_!!DEFHASH!!_at_$DEFHASH_at_" -e "s_at_!!DEFLANG!!_at_$DEFLANG_at_"  -e "s_at_!!HASHSUFFIX!!_at_$HASHSUFFIX_at_g"  -e "s_at_!!LIBDIR!!_at_$LIBDIR_at_" -e "s_at_!!DEFDICT!!_at_$DEFDICT_at_"  -e "s_at_!!LOOK_XREF!!_at_$LOOK_XREF_at_g"  -e "s_at_!!MAN45SECT!!_at_$MAN45SECT_at_g"  -e "s_at_!!POUNDBANG!!_at_$POUNDBANG_at_g"  -e "s_at_!!SPELL_XREF!!_at_$SPELL_XREF_at_g"  -e "s_at_!!STATSUFFIX!!_at_$STATSUFFIX_at_g"  -e "s_at_!!TIB_XREF!!_at_$TIB_XREF_at_g"  -e "s_at_!!WORDS!!_at_$WORDS_at_g"  $SORTTMP < ispell.1X > ispell.1
. ./config.sh;  set +vx;  sed  -e "s_at_!!BAKEXT!!_at_$BAKEXT_at_g"  -e "s_at_!!COUNTSUFFIX!!_at_$COUNTSUFFIX_at_g"  -e "s_at_!!DEFHASH!!_at_$DEFHASH_at_" -e "s_at_!!DEFLANG!!_at_$DEFLANG_at_"  -e "s_at_!!HASHSUFFIX!!_at_$HASHSUFFIX_at_g"  -e "s_at_!!LIBDIR!!_at_$LIBDIR_at_" -e "s_at_!!DEFDICT!!_at_$DEFDICT_at_"  -e "s_at_!!LOOK_XREF!!_at_$LOOK_XREF_at_g"  -e "s_at_!!MAN45SECT!!_at_$MAN45SECT_at_g"  -e "s_at_!!POUNDBANG!!_at_$POUNDBANG_at_g"  -e "s_at_!!SPELL_XREF!!_at_$SPELL_XREF_at_g"  -e "s_at_!!STATSUFFIX!!_at_$STATSUFFIX_at_g"  -e "s_at_!!TIB_XREF!!_at_$TIB_XREF_at_g"  -e "s_at_!!WORDS!!_at_$WORDS_at_g"  $SORTTMP < ispell.5X > ispell.5
make LANGUAGE_TARGET=all SHELLDEBUG=+vx language-subdirs
+ cd languages/american
+ eval make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx ' '\''MASTERDICTS=american.med+'\'' '\''HASHFILES=americanmed+.hash'\'' '\''EXTRADICT=/usr/share/dict/words'\' all
+ make BUILD=build DBUILD=build CBUILD=build SHELLDEBUG=+vx MASTERDICTS=american.med+ HASHFILES=americanmed+.hash EXTRADICT=/usr/share/dict/words all
rm -f english.[0-3] american.[0-2] altamer.[012] british.[012]
make -f ../english/Makefile 'DBUILD=' VARIANTS=american  'EXTRADICT=/usr/share/dict/words' 'SHELLDEBUG=+vx'  'AFFIXES=../english/english.aff'  english.med+
+ PATH=../..:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
+ export PATH
+ ../../munchlist -v -l ../english/english.aff /usr/share/dict/words english.0 english.1 american.0 american.1
Collecting input.
sort: invalid option -- 1
Usage: sort [-bcCdfigMmnrsuz] [-kPOS1[,POS2] ... ] [+POS1 [-POS2]] [-S memsize] [-T tmpdir] [-t separator] [-o outfile] [--batch-size size] [--files0-from file] [--heapsort] [--mergesort] [--radixsort] [--qsort] [--nthreads thread_no] [--human-numeric-sort] [--version-sort] [--random-sort [--random-source file]] [--compress-program program] [file ...]
[...]

Mike
_______________________________________________
freebsd-current_at_freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue May 08 2012 - 20:48:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:26 UTC