Re: CFT: new BSD-licensed sort available

2012-03-18 Thread Gabor Kovesdan
On 2012.03.14. 22:10, Adrian Chadd wrote: So you could intall gnusort, bsdsort, and then some config file would determine which was used. 'sort' would then be a symlink to said magic program, that'd look at its argv[0], look at the contents of that file, and exec() the right one. I prefer simpli

Re: CFT: new BSD-licensed sort available

2012-03-18 Thread Eitan Adler
On Wed, Mar 14, 2012 at 11:59 AM, Gabor Kovesdan wrote: > Hi Folks, > some time ago I started writing a BSDL sort variant from scratch since the > OpenBSD version did not support multibyte locales and was hard to modify. > The development was a bit stalled but recently, Oleg Moskalenko > showed i

RE: CFT: new BSD-licensed sort available

2012-03-18 Thread Oleg Moskalenko
s backward compatibility, he can easily remove -D option from the Makefile. Regards, Oleg -Original Message- From: owner-freebsd-po...@freebsd.org [mailto:owner-freebsd-po...@freebsd.org] On Behalf Of Chad Perrin Sent: Sunday, March 18, 2012 11:15 AM To: freebsd-ports@freebsd.org Subject: Re: CF

Re: CFT: new BSD-licensed sort available

2012-03-18 Thread Chad Perrin
On Sun, Mar 18, 2012 at 11:33:06AM -0400, Lowell Gilbert wrote: > Oleg Moskalenko writes: > > > > Yes, indeed, there was an old sort syntax, where they supported it in > > a form "+POS1 -POS2". It is a non-POSIX obsolete syntax, so we did > > not implement it in the new BSD sort. I can add it, if

Re: CFT: new BSD-licensed sort available

2012-03-18 Thread Roger Marquis
Why to symlink, this is 1/ because it concerns user/admin configuration, I get that, but why is a conf file not the right answer? We could even put the conf file in /etc if we decide that this is a feature that should be in the base. Having 2 symlinks just seems like overkill. IMO nether symli

Re: CFT: new BSD-licensed sort available

2012-03-18 Thread Lowell Gilbert
Oleg Moskalenko writes: > Yes, indeed, there was an old sort syntax, where they supported it in a form > "+POS1 -POS2". It is a non-POSIX obsolete syntax, so we did not implement it > in the new BSD sort. I can add it, if necessary. If anyone asked for my opinion, I'd say that I'd prefer to se

Re: CFT: new BSD-licensed sort available

2012-03-17 Thread Adrian Chadd
On 17 March 2012 17:15, Doug Barton wrote: > Sure, and in that situation the conf file in /etc would still work just > as well. How will the conf file work? If there's a program like what mailer.conf uses, sure. If the symlink is directly from sort to /usr/bin/bsdsort, no so much. The shared roo

Re: CFT: new BSD-licensed sort available

2012-03-17 Thread Doug Barton
On 03/17/2012 17:08, Adrian Chadd wrote: > I can imagine a netboot'ed system where the config in /etc/alternates/ > is different for individual hosts, which have a shared root. > > That way you can have two netbooted hosts with a shared read-only > rootfs, but a ramdisk /etc, with the locally conf

Re: CFT: new BSD-licensed sort available

2012-03-17 Thread Adrian Chadd
I can imagine a netboot'ed system where the config in /etc/alternates/ is different for individual hosts, which have a shared root. That way you can have two netbooted hosts with a shared read-only rootfs, but a ramdisk /etc, with the locally configured mailer, alternates, etc. Adrian __

Re: CFT: new BSD-licensed sort available

2012-03-17 Thread Doug Barton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 03/17/2012 03:27, Baptiste Daroussin wrote: > Why to symlink, this is 1/ because it concerns user/admin > configuration, I get that, but why is a conf file not the right answer? We could even put the conf file in /etc if we decide that this is a

Re: CFT: new BSD-licensed sort available

2012-03-17 Thread Baptiste Daroussin
On Fri, Mar 16, 2012 at 09:08:52PM -0700, Doug Barton wrote: > On 03/16/2012 18:47, Eric van Gyzen wrote: > > On 03/16/2012 08:25 PM, Doug Barton wrote: > >> On 03/14/2012 15:14, Jonathan Anderson wrote: > >>> In fact, the runtime behaviour of the Debian "alternatives" system is > >>> simpler than

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Doug Barton
On 03/16/2012 18:47, Eric van Gyzen wrote: > On 03/16/2012 08:25 PM, Doug Barton wrote: >> On 03/14/2012 15:14, Jonathan Anderson wrote: >>> In fact, the runtime behaviour of the Debian "alternatives" system is >>> simpler than that: >>> http://segfault.in/2010/04/using-the-debian-alternatives-syst

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Eric van Gyzen
On 03/16/2012 08:25 PM, Doug Barton wrote: On 03/14/2012 15:14, Jonathan Anderson wrote: In fact, the runtime behaviour of the Debian "alternatives" system is simpler than that: http://segfault.in/2010/04/using-the-debian-alternatives-system/ [...] This sounds like a good solution to more tha

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Doug Barton
On 03/14/2012 15:14, Jonathan Anderson wrote: > In fact, the runtime behaviour of the Debian "alternatives" system is simpler > than that: > http://segfault.in/2010/04/using-the-debian-alternatives-system/ > > The custom Perl script with a config file is used to set up symlinks, which > at runti

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Chris Rees
On 16 March 2012 22:39, Lowell Gilbert wrote: > Lowell Gilbert writes: > >> It wouldn't be bad if BSD sort supported it, but it should definitely be >> fixed in the ports Makefile. I have submitted the fix in a PR: >> http://www.freebsd.org/cgi/query-pr.cgi?pr=166188 > > And I forgot to mark the

RE: CFT: new BSD-licensed sort available

2012-03-16 Thread Oleg Moskalenko
d-ports-lo...@be-well.ilk.org] Sent: Friday, March 16, 2012 3:37 PM To: freebsd-ports@freebsd.org Cc: Chris Rees; Gabor Kovesdan; Oleg Moskalenko Subject: Re: CFT: new BSD-licensed sort available Chris Rees writes: > On 15 March 2012 19:18, Lowell Gilbert > wrote: >> Gabor Kovesdan wr

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Lowell Gilbert
Lowell Gilbert writes: > It wouldn't be bad if BSD sort supported it, but it should definitely be > fixed in the ports Makefile. I have submitted the fix in a PR: > http://www.freebsd.org/cgi/query-pr.cgi?pr=166188 And I forgot to mark the PR with [PATCH]... Grumble. ___

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Lowell Gilbert
Chris Rees writes: > On 15 March 2012 19:18, Lowell Gilbert > wrote: >> Gabor Kovesdan writes: >> >>> some time ago I started writing a BSDL sort variant from scratch since >>> the OpenBSD version did not support multibyte locales and was hard to >>> modify. The development was a bit stalled bu

Re: CFT: new BSD-licensed sort available

2012-03-16 Thread Torfinn Ingolfsen
On Fri, Mar 16, 2012 at 1:05 AM, Lowell Gilbert wrote: > 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. Quick

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Lowell Gilbert
Jos Backus writes: > On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert > wrote: >> Lowell Gilbert writes: >> >>> Lowell Gilbert writes: >>> Oleg Moskalenko writes: > There is no option "-2" in the new BSD sort or in the GNU sort. There is > no such option in Posix standard, t

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Jos Backus
On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert wrote: > Lowell Gilbert writes: > >> Lowell Gilbert writes: >> >>> Oleg Moskalenko 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

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Lowell Gilbert
Lowell Gilbert writes: > Lowell Gilbert writes: > >> Oleg Moskalenko 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 misd

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Lowell Gilbert
Lowell Gilbert writes: > Oleg Moskalenko 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 an

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Lowell Gilbert
Oleg Moskalenko 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.

RE: CFT: new BSD-licensed sort available

2012-03-15 Thread Oleg Moskalenko
tis...@gmail.com] On Behalf Of Chris Rees Sent: Thursday, March 15, 2012 12:50 PM To: Lowell Gilbert Cc: Gabor Kovesdan; Oleg Moskalenko; freebsd-ports@freebsd.org Subject: Re: CFT: new BSD-licensed sort available On 15 March 2012 19:18, Lowell Gilbert wrote: > Gabor Kovesdan writes: > >&

RE: CFT: new BSD-licensed sort available

2012-03-15 Thread Oleg Moskalenko
Rees Sent: Thursday, March 15, 2012 12:50 PM To: Lowell Gilbert Cc: Gabor Kovesdan; Oleg Moskalenko; freebsd-ports@freebsd.org Subject: Re: CFT: new BSD-licensed sort available On 15 March 2012 19:18, Lowell Gilbert wrote: > Gabor Kovesdan writes: > >> some time ago I started writing a

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Chris Rees
On 15 March 2012 19:18, Lowell Gilbert wrote: > Gabor Kovesdan writes: > >> some time ago I started writing a BSDL sort variant from scratch since >> the OpenBSD version did not support multibyte locales and was hard to >> modify. The development was a bit stalled but recently, Oleg >> Moskalenko

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Lowell Gilbert
Gabor Kovesdan writes: > some time ago I started writing a BSDL sort variant from scratch since > the OpenBSD version did not support multibyte locales and was hard to > modify. The development was a bit stalled but recently, Oleg > Moskalenko showed interest in continuing > this version and he

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Chad Perrin
On Wed, Mar 14, 2012 at 10:14:28PM +, Jonathan Anderson wrote: > > In fact, the runtime behaviour of the Debian "alternatives" system is simpler > than that: > http://segfault.in/2010/04/using-the-debian-alternatives-system/ > > The custom Perl script with a config file is used to set up sym

Re: CFT: new BSD-licensed sort available

2012-03-15 Thread Kazuaki ODA
(12/03/15 0:59), Gabor Kovesdan wrote: Hi Folks, some time ago I started writing a BSDL sort variant from scratch since the OpenBSD version did not support multibyte locales and was hard to modify. The development was a bit stalled but recently, Oleg Moskalenko showed interest in continuing thi

Re: CFT: new BSD-licensed sort available

2012-03-14 Thread Adrian Chadd
I must be thinking of our mailer trick then? I know i've seen it somewhere before. Alternatives sounds fun though? ADrian ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail

RE: CFT: new BSD-licensed sort available

2012-03-14 Thread Oleg Moskalenko
add Cc: Gabor Kovesdan; freebsd-curr...@freebsd.org; Oleg Moskalenko; freebsd-ports@freebsd.org Subject: Re: CFT: new BSD-licensed sort available On 14 Mar 2012, at 21:10, Adrian Chadd wrote: Hi, This makes me think of the whole debian-y way of replacing the mailer programs using some magic alias p

Re: CFT: new BSD-licensed sort available

2012-03-14 Thread Jonathan Anderson
On 14 Mar 2012, at 21:10, Adrian Chadd wrote: > Hi, > > This makes me think of the whole debian-y way of replacing the mailer > programs using some magic alias program. > > So you could intall gnusort, bsdsort, and then some config file would > determine which was used. > > 'sort' would then be

Re: CFT: new BSD-licensed sort available

2012-03-14 Thread Chad Perrin
On Wed, Mar 14, 2012 at 04:59:21PM +0100, Gabor Kovesdan wrote: > > some time ago I started writing a BSDL sort variant from scratch > since the OpenBSD version did not support multibyte locales and was > hard to modify. The development was a bit stalled but recently, Oleg > Moskalenko showed int

Re: CFT: new BSD-licensed sort available

2012-03-14 Thread Adrian Chadd
On 14 March 2012 08:59, Gabor Kovesdan wrote: > some time ago I started writing a BSDL sort variant from scratch since the > OpenBSD version did not support multibyte locales and was hard to modify. > The development was a bit stalled but recently, Oleg Moskalenko > showed interest in continuing

CFT: new BSD-licensed sort available

2012-03-14 Thread Gabor Kovesdan
Hi Folks, some time ago I started writing a BSDL sort variant from scratch since the OpenBSD version did not support multibyte locales and was hard to modify. The development was a bit stalled but recently, Oleg Moskalenko showed interest in continuing this version and he has made a very goo