Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 20:05:37 -0400
From:      Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
To:        Jos Backus <jos@catnook.com>
Cc:        Oleg Moskalenko <oleg.moskalenko@citrix.com>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: CFT: new BSD-licensed sort available
Message-ID:  <44ty1p76lq.fsf@lowell-desk.lan>
In-Reply-To: <CAETOPp2VPY3ryB5-s2Ysn4LToAKy536QAZ3b2=EuSd6ywtCu_g@mail.gmail.com> (Jos Backus's message of "Thu, 15 Mar 2012 16:32:05 -0700")
References:  <4F60C059.7060904@FreeBSD.org> <44pqcd8yhd.fsf@lowell-desk.lan> <CADLo83_r3SgYj6apifN6NTCwZ-ApYbLkyMOS5zcCmTFst_Vcow@mail.gmail.com> <031222CBCF33214AB2EB4ABA279428A30107B5E9D2A6@SJCPMAILBOX01.citrite.net> <44d38d8qad.fsf@lowell-desk.lan> <447gyl8nss.fsf@lowell-desk.lan> <4439998mwx.fsf@lowell-desk.lan> <CAETOPp2VPY3ryB5-s2Ysn4LToAKy536QAZ3b2=EuSd6ywtCu_g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jos Backus <jos@catnook.com> writes:

> On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert
> <freebsd-ports-local@be-well.ilk.org> wrote:
>> Lowell Gilbert <freebsd-ports-local@be-well.ilk.org> writes:
>>
>>> Lowell Gilbert <freebsd-ports-local@be-well.ilk.org> writes:
>>>
>>>> Oleg Moskalenko <oleg.moskalenko@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.
>>>
>>>> =A0 =A0Updating the ports index ... Generating INDEX.tmp - please wait=
..
>>>> =A0 =A0sort: 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ty1p76lq.fsf>