From owner-freebsd-current@freebsd.org Tue Sep 11 15:03:23 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64D221093D11 for ; Tue, 11 Sep 2018 15:03:23 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 087F57AC95; Tue, 11 Sep 2018 15:03:23 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: by sdaoden.eu (Postfix, from userid 1000) id 1A2C61604A; Tue, 11 Sep 2018 17:03:22 +0200 (CEST) Date: Tue, 11 Sep 2018 17:04:56 +0200 From: Steffen Nurpmeso To: Alan Somers Cc: Eric van Gyzen , FreeBSD CURRENT Subject: Re: Request for Review: Generate /etc/services from the IANA registry Message-ID: <20180911150456.JQd44%steffen@sdaoden.eu> In-Reply-To: References: <8b7930bc-1086-05d3-c019-052368ddf097@vangyzen.net> <59cd421e-f5d4-855a-83ec-65726f792555@vangyzen.net> <20180911142000.unrYV%steffen@sdaoden.eu> Mail-Followup-To: Alan Somers , Eric van Gyzen , FreeBSD CURRENT , Steffen Nurpmeso User-Agent: s-nail v14.9.11-45-g9c6690b7 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Tue, 11 Sep 2018 15:03:23 -0000 Alan Somers wrote in : |Don't worry Steffen.=C2=A0 Python won't be a build requirement for FreeBS= D \ |even after Eric's patch.=C2=A0 His Python script will only need to be run= \ |whenever IANA=20 |updates its database, and the results will be checked into source contro\ |l.=C2=A0 So for a normal user, there is no change to "make buildworld && = make=20 |installworld". I cannot, unfortunately. I use binary updates and even preinstalled VM images (thanks for that, by the way). |As for Python vs Awk, I too tried to do this with Awk.=C2=A0 However, Awk= \ |can't easily handle things like IANA's representation of aliases, and \ |it can't=20 |easily format the list in the same order as our current list.=C2=A0 Pytho= n \ |is truly a better choice. I absolutely fail to see what you mean. The script (which is in actual use, mind you) generates the desired output except that comments get lost, but this could be added upon interest, of course. It (or a derivative) would have been a good candidate for /usr/share/misc/ in elder times i guess, too. |-Alan Ciao. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)