CFT: new BSD-licensed sort available

Lowell Gilbert freebsd-ports-local at be-well.ilk.org
Fri Mar 16 00:05:45 UTC 2012


Jos Backus <jos at catnook.com> writes:

> On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert
> <freebsd-ports-local at be-well.ilk.org> wrote:
>> Lowell Gilbert <freebsd-ports-local at be-well.ilk.org> writes:
>>
>>> Lowell Gilbert <freebsd-ports-local at be-well.ilk.org> writes:
>>>
>>>> Oleg Moskalenko <oleg.moskalenko at citrix.com> writes:
>>>>
>>>>> There is no option "-2" in the new BSD sort or in the GNU sort. There is no such option in Posix standard, too.
>>>>>
>>>>> What is this option about, do we need to add something ?
>>>>
>>>> No, clearly I have misdiagnosed the problem.
>>>> I'll take another look.
>>>>
>>>> Sorry for the confusion.
>>>
>>> I think I'll need to dig into portsdb itself a bit.
>>>
>>>>    Updating the ports index ... Generating INDEX.tmp - please wait..
>>>>    sort: invalid option -- 2
 >>>
>>> I'll let you know what I find.
>>
>> This is taking longer than I had hoped; apparently I am handicapped by
>> the fact that I do not know ruby at all. I am having difficulty finding
>> a call out to the sort program, as opposed to sort routines implemented
>> in ruby.
>
> portsdb.rb:      open("| sort #{index_files}", 'r:utf-8') do |f|
>
> Hth,
> Jos

Thanks, it does help somewhat.

Unfortunately, I had already tried to instrument that line, and didn't
get anything useful. I probably still need to learn a bit more ruby in
order to figure out precisely where the '2' comes in.


More information about the freebsd-ports mailing list