Re: CFT: new BSD-licensed sort available
Oleg Moskalenko oleg.moskale...@citrix.com 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 see this syntax stamped out instead; it's unnecessary, confusing, and has been considered obsolete for decades. A quick look over my workstation's filesystems shows just a few uses: in texconfig, libtool, something in X11/config, maybe a handful more. I'm not sure what the best answer is in practice, but I'm willing to spend some of my time working on it if that helps. Be well. Lowell ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 symlinks nor conf file-base indirection are appropriate for FreeBSD sort. It might be cool to program such an app, as it was to write /etc/mailer.conf, but many of us do not want to maintain another layer of abstraction. If you want to do this at least put it in ports and give the installer an to either OVERWRITE_BASE or install to /usr/local/bin. I value KISS an the advantage BSD distributions have over most Linux distributions in this regard. Different paths to different applications are the most maintainable solution to non-backwards compatible updates using the same file name. Better yet, make them fully backwards compatible and update the distribution. Roger Marquis ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On Sun, Mar 18, 2012 at 11:33:06AM -0400, Lowell Gilbert wrote: Oleg Moskalenko oleg.moskale...@citrix.com 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 see this syntax stamped out instead; it's unnecessary, confusing, and has been considered obsolete for decades. A quick look over my workstation's filesystems shows just a few uses: in texconfig, libtool, something in X11/config, maybe a handful more. I'm not sure what the best answer is in practice, but I'm willing to spend some of my time working on it if that helps. I suspect the right answer for the near future would be to eliminate dependence on it wherever you can get such changes accepted by upstream, and support it as a deprecated (perhaps even undocumented) feature in bsdsort just so it's easier to entirely eliminate any dependence on gnusort for purposes of backward compatibility. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
RE: CFT: new BSD-licensed sort available
I guess that using a not-backward-compatible syntax would make it difficult for some users to accept. We are going to have a newer 1.7 build soon that supports older pre-POSIX syntax (among other improvements). It is guarded by #ifdef. If Gabor decides to eliminate this 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: CFT: new BSD-licensed sort available On Sun, Mar 18, 2012 at 11:33:06AM -0400, Lowell Gilbert wrote: Oleg Moskalenko oleg.moskale...@citrix.com 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 see this syntax stamped out instead; it's unnecessary, confusing, and has been considered obsolete for decades. A quick look over my workstation's filesystems shows just a few uses: in texconfig, libtool, something in X11/config, maybe a handful more. I'm not sure what the best answer is in practice, but I'm willing to spend some of my time working on it if that helps. I suspect the right answer for the near future would be to eliminate dependence on it wherever you can get such changes accepted by upstream, and support it as a deprecated (perhaps even undocumented) feature in bsdsort just so it's easier to entirely eliminate any dependence on gnusort for purposes of backward compatibility. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On Wed, Mar 14, 2012 at 11:59 AM, Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. ... If you are interested in this sort utility, could you please try the port and report us any issue that you experience? Is there a public repository? -- Eitan Adler ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 simplicity. And GNU sort should go as soon as BSD sort is good enough to replace it. If you check the wiki, we have set a goal for 10.X, which is the GPL-free base system. I think it is possible and I hope we can achieve it. Gabor ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 that: http://segfault.in/2010/04/using-the-debian-alternatives-system/ [...] This sounds like a good solution to more than one problem. Does anyone know why they indirect through 2 sets of symlinks? That article doesn't touch on the why? only the what. Do you mean, why do they do /usr/bin/vim - /etc/alternatives/vim - /usr/bin/vim.gtk instead of /usr/bin/vim - /usr/bin/vim.gtk ? Someone's choice of a vi-like editor would be considered configuration, so it belongs in /etc. If that's the *only* reason then it seems to me that it would be better solved by being able to express that in a config file in /usr/local/etc which the alternate-updater script takes into account. But I need to install debian for other reasons anyway, so I'll look at this in more detail. Thanks. As I already said I started working on something equivalent for freebsd: http://people.freebsd.org/~bapt/alternative.txt but never found time to finish. Why to symlink, this is 1/ because it concerns user/admin configuration, 2 it allows to change it even with your /usr/local/bin mounted RO. regards, Bapt pgpqYoFulXWDK.pgp Description: PGP signature
Re: CFT: new BSD-licensed sort available
-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 feature that should be in the base. Having 2 symlinks just seems like overkill. 2 it allows to change it even with your /usr/local/bin mounted RO. I don't understand this bit, sorry. Aren't we talking about symlinks in / and /usr pointing to alternate versions in either /, /usr, or /usr/local? I don't see how anything would need to be written in /usr/local with either 1 symlink or 2. Doug - -- This .signature sanitized for your protection -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJPZR+GAAoJEFzGhvEaGryER/sH/A8nuMDQ18cmm1OkboCn1ZKY DFb8THBfCwiXlpN7VYqz6YaYwumIooTO6108sKPbBoC3UPE7sZN7F9ENFbihkYrg Gq3YPhn6h6Wkvt61s+2Om/fkJEUQvy0u+9WMJE5YExBKpeIBMSxkhmTj9B7WKfS5 hONNUVWww4pSvBF4eMCTf41mtI54jlsOrPZYJofTMvOc26T8qLlzgJEPLp+uAlOx /92rRcKklIkLokUzWzFO/XdnmzqkpeLw0Oo46iIWer/4uFUzQl5+WcJ+kDwykRzB l2Oai0X5IOA/YKuEsToVvLOydBpZ2uBqgfSEe5Hzn2P0Vts/i5ckVHqFN5txPkw= =Jvry -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 configured mailer, alternates, etc. Sure, and in that situation the conf file in /etc would still work just as well. I should point out that I'm imagining a conf file *plus* an rc.d script to enforce it ... likely just calling update-alternatives (or whatever we decide to call it). Doug -- This .signature sanitized for your protection ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On 17 March 2012 17:15, Doug Barton do...@freebsd.org 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 root filesystem is readonly, so the netbooted/VM host can't change it. Adrian ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On Fri, Mar 16, 2012 at 1:05 AM, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org 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 guess: look for troubles with stdin, stdout or stderr. HTH -- Regards, Torfinn Ingolfsen ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Chris Rees cr...@freebsd.org writes: On 15 March 2012 19:18, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? portsdb(1) (from portupgrade) doesn't seem to like it; apparently it is missing a '-2' option, which I haven't tracked down yet... Fails with gnusort too anyway: [crees@pegasus]~% gsort -2 gsort: invalid option -- '2' Try `gsort --help' for more information. [crees@pegasus]~% As it turns out, this *is* something that Gnu sort supports, although the documentation claims that the syntax is obsolete -- and doesn't document it very well. [5022] (lowell-desk) ~ printf fee\nfie\nfoe\nfum\nfoo\nbaz |gsort -t 'a' +1 -2 fee fie foe foo fum baz [5022] (lowell-desk) ~ 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 Personally, I'd don't see any reason for bsdsort to include this functionality... ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org 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. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
RE: CFT: new BSD-licensed sort available
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. Regards, Oleg -Original Message- From: Lowell Gilbert [mailto:freebsd-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 cr...@freebsd.org writes: On 15 March 2012 19:18, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? portsdb(1) (from portupgrade) doesn't seem to like it; apparently it is missing a '-2' option, which I haven't tracked down yet... Fails with gnusort too anyway: [crees@pegasus]~% gsort -2 gsort: invalid option -- '2' Try `gsort --help' for more information. [crees@pegasus]~% As it turns out, this *is* something that Gnu sort supports, although the documentation claims that the syntax is obsolete -- and doesn't document it very well. [5022] (lowell-desk) ~ printf fee\nfie\nfoe\nfum\nfoo\nbaz |gsort -t 'a' +1 -2 fee fie foe foo fum baz [5022] (lowell-desk) ~ 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 Personally, I'd don't see any reason for bsdsort to include this functionality... ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On 16 March 2012 22:39, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org 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. Fixed :) Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 runtime are... well, just symlinks. For instance, /usr/bin/vim is a symlink to /etc/alternatives/vim, which is itself a symlink to a binary like vim.gtk (example shamelessly stolen from the linked page, since I no longer have any Debian boxes to check for myself on :). No magic binaries or argv[0] fu. This sounds like a good solution to more than one problem. Does anyone know why they indirect through 2 sets of symlinks? That article doesn't touch on the why? only the what. Doug -- This .signature sanitized for your protection ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 than one problem. Does anyone know why they indirect through 2 sets of symlinks? That article doesn't touch on the why? only the what. Do you mean, why do they do /usr/bin/vim - /etc/alternatives/vim - /usr/bin/vim.gtk instead of /usr/bin/vim - /usr/bin/vim.gtk ? Someone's choice of a vi-like editor would be considered configuration, so it belongs in /etc. I agree, it does sound like a good solution. As simple as possible, but no less. ;) Eric ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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-system/ [...] This sounds like a good solution to more than one problem. Does anyone know why they indirect through 2 sets of symlinks? That article doesn't touch on the why? only the what. Do you mean, why do they do /usr/bin/vim - /etc/alternatives/vim - /usr/bin/vim.gtk instead of /usr/bin/vim - /usr/bin/vim.gtk ? Someone's choice of a vi-like editor would be considered configuration, so it belongs in /etc. If that's the *only* reason then it seems to me that it would be better solved by being able to express that in a config file in /usr/local/etc which the alternate-updater script takes into account. But I need to install debian for other reasons anyway, so I'll look at this in more detail. Thanks. -- This .signature sanitized for your protection ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
(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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? Thanks in advance, Gabor ___ freebsd-curr...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org bsdsort is one of my long awaiting ports. Because GNU sort has a numeric sort bug in some multi-byte locales. For example, ls -l /usr/bin | env LANG=en_US.UTF-8 sort -n -k 5 (we expect the result is sorted by file size.) shows invalid result. bsdsort does not has such a bug, so I hope our base system will include bsdsort in the near future. Thanks. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 symlinks, which at runtime are... well, just symlinks. For instance, /usr/bin/vim is a symlink to /etc/alternatives/vim, which is itself a symlink to a binary like vim.gtk (example shamelessly stolen from the linked page, since I no longer have any Debian boxes to check for myself on :). No magic binaries or argv[0] fu. In one way, it's an elegant solution. On the other, it's a classic example of Wheeler's Law in action. :) I'm peripherally aware of at least three different things known to at least someone as Wheeler's Law. The only Wheeler's Law that comes to mind as being relevant here is Wheeler's Law of Hype (which, ironically, applies to itself to reduce the measure its own importance and significance to one quarter according to how Andrew Wheeler stated the law, but to one half according to his examples): Each adjective reduces, by half, the importance and significance of a blurb or award description. Is that the Wheeler's Law you mean? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? portsdb(1) (from portupgrade) doesn't seem to like it; apparently it is missing a '-2' option, which I haven't tracked down yet... ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On 15 March 2012 19:18, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? portsdb(1) (from portupgrade) doesn't seem to like it; apparently it is missing a '-2' option, which I haven't tracked down yet... Fails with gnusort too anyway: [crees@pegasus]~% gsort -2 gsort: invalid option -- '2' Try `gsort --help' for more information. [crees@pegasus]~% Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
RE: CFT: new BSD-licensed sort available
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 ? Thanks Oleg -Original Message- From: utis...@gmail.com [mailto:utis...@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 freebsd-ports-lo...@be-well.ilk.org wrote: Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? portsdb(1) (from portupgrade) doesn't seem to like it; apparently it is missing a '-2' option, which I haven't tracked down yet... Fails with gnusort too anyway: [crees@pegasus]~% gsort -2 gsort: invalid option -- '2' Try `gsort --help' for more information. [crees@pegasus]~% Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
RE: CFT: new BSD-licensed sort available
In the old BSD sort, originated from OpenBSD, there was no -2 option, as far as I can see. Oleg -Original Message- From: Oleg Moskalenko Sent: Thursday, March 15, 2012 1:30 PM To: 'Chris Rees'; Lowell Gilbert Cc: Gabor Kovesdan; freebsd-ports@freebsd.org Subject: RE: CFT: new BSD-licensed sort available 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 ? Thanks Oleg -Original Message- From: utis...@gmail.com [mailto:utis...@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 freebsd-ports-lo...@be-well.ilk.org wrote: Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? portsdb(1) (from portupgrade) doesn't seem to like it; apparently it is missing a '-2' option, which I haven't tracked down yet... Fails with gnusort too anyway: [crees@pegasus]~% gsort -2 gsort: invalid option -- '2' Try `gsort --help' for more information. [crees@pegasus]~% Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Oleg Moskalenko oleg.moskale...@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. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Oleg Moskalenko oleg.moskale...@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. - Lowell ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Oleg Moskalenko oleg.moskale...@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. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Oleg Moskalenko oleg.moskale...@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 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org -- Jos Backus jos at catnook.com ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
Jos Backus j...@catnook.com writes: On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org writes: Oleg Moskalenko oleg.moskale...@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. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
CFT: new BSD-licensed sort available
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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? Thanks in advance, Gabor ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
On 14 March 2012 08:59, Gabor Kovesdan ga...@freebsd.org 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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? 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 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. Would that be helpful herE? Adrian ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 oleg.moskale...@citrix.com showed interest in continuing this version and he has made a very good job on this BSD sort variant. Now it is compatible with the base version of GNU sort but the performance in most cases (string sort and -n) is quite behind GNU sort (although with -g it is about *4 times* faster). Oleg is still working on optimizing the code and the long-term plan is to drop GNU sort once this variant is good enough to replace it. For now, it is only available in Ports Collection as textproc/bsdsort but if there is no objection or any serious bug report I plan to add it to base installed as bsdsort, being GNU sort still the default sort until it proves that we can safely drop GNU sort. If you are interested in this sort utility, could you please try the port and report us any issue that you experience? I meant to send this email yesterday. It's on Twitter: https://twitter.com/#!/CopyfreeNews/status/179985533911576576 I'll be testing the bsdsort for my own purposes, and report back if I have any problems. Thanks for the hard work! -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
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 program. 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. 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 runtime are... well, just symlinks. For instance, /usr/bin/vim is a symlink to /etc/alternatives/vim, which is itself a symlink to a binary like vim.gtk (example shamelessly stolen from the linked page, since I no longer have any Debian boxes to check for myself on :). No magic binaries or argv[0] fu. In one way, it's an elegant solution. On the other, it's a classic example of Wheeler's Law in action. :) Jon -- Jonathan Anderson Research Student, Security Group Computer Laboratory University of Cambridge +44 (1223) 763747 jonathan.ander...@cl.cam.ac.uk___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
RE: CFT: new BSD-licensed sort available
This is true, debians do the symlinks trick. In Ubuntu : /usr/bin/java - /etc/alternatives/java /etc/alternatives/java - /usr/lib/jvm/java-6-openjdk/jre/bin/java Oleg From: Jonathan Anderson [mailto:jonathan.ander...@cl.cam.ac.uk] Sent: Wednesday, March 14, 2012 3:14 PM To: Adrian Chadd 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 program. 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. 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 runtime are... well, just symlinks. For instance, /usr/bin/vim is a symlink to /etc/alternatives/vim, which is itself a symlink to a binary like vim.gtk (example shamelessly stolen from the linked page, since I no longer have any Debian boxes to check for myself on :). No magic binaries or argv[0] fu. In one way, it's an elegant solution. On the other, it's a classic example of Wheeler's Law in action. :) Jon -- Jonathan Anderson Research Student, Security Group Computer Laboratory University of Cambridge +44 (1223) 763747 jonathan.ander...@cl.cam.ac.ukmailto:jonathan.ander...@cl.cam.ac.uk ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CFT: new BSD-licensed sort available
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 to freebsd-ports-unsubscr...@freebsd.org