Re: Massive libxo-zation that breaks everything

From: Alfred Perlstein <bright_at_mu.org>
Date: Sun, 01 Mar 2015 23:47:04 -0500
On 3/1/15 4:29 PM, Rui Paulo wrote:
> On Mar 1, 2015, at 11:11, David Chisnall <theraven_at_FreeBSD.org> wrote:
>> How would it be in a port?  It involves modifying core utilities (some of which, like ifconfig, rely on kernel APIs that change between releases) to emit structured output.  Maintaining two copies of each utility, one in the base system with plain-text output only and another in ports with XML/JSON output would be very painful.
> It would work fine if we had *libraries* for ifconfig/netstat/route/etc.  Obviously that's not the case and no one has stepped up to implement them.  I've also seen FreeBSD committers expressing their distaste for libraries for "trivial" command line utilities, which implies they are unaware of another world beyond the CLI.  :-)

+1.

Next step is making those utils into libraries.  Should be easy, just 
make all globals into TLS and don't munge stdin/stdout in dumb ways and 
we're there.

Glad you are a big thinker Rui. :)

-Alfred
Received on Mon Mar 02 2015 - 03:43:23 UTC

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