From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 21:30:04 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A12C4A42; Sun, 1 Mar 2015 21:30:04 +0000 (UTC) Received: from st11p02mm-asmtp002.mac.com (st11p02mm-asmtpout002.mac.com [17.172.220.237]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 732F6838; Sun, 1 Mar 2015 21:30:04 +0000 (UTC) Received: from fukuyama.hsd1.ca.comcast.net (unknown [73.162.13.215]) by st11p02mm-asmtp002.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NKJ000HDYDW0W20@st11p02mm-asmtp002.mac.com>; Sun, 01 Mar 2015 21:29:58 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-01_03:2015-02-27,2015-03-01,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1503010238 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Massive libxo-zation that breaks everything From: Rui Paulo In-reply-to: Date: Sun, 01 Mar 2015 13:29:56 -0800 Content-transfer-encoding: quoted-printable Message-id: <75C49F53-C675-4712-A446-370025EED037@me.com> References: <54F31510.7050607@hot.ee> <54F34B6E.2040809@astrodoggroup.com> <54F35F29.4000603@astrodoggroup.com> To: David Chisnall X-Mailer: Apple Mail (2.2070.6) X-Mailman-Approved-At: Sun, 01 Mar 2015 22:38:43 +0000 Cc: Harrison Grundy , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2015 21:30:04 -0000 On Mar 1, 2015, at 11:11, David Chisnall 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. :-) -- Rui Paulo