From owner-freebsd-ports@freebsd.org Sun May 3 20:11:05 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 10A4A2E69AD; Sun, 3 May 2020 20:11:05 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49FcZ00WdPz47XW; Sun, 3 May 2020 20:11:03 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id VKx1jF8CcYYpxVKx3jTjFg; Sun, 03 May 2020 14:11:02 -0600 X-Authority-Analysis: v=2.3 cv=OubUNx3t c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=sTwFKg_x9MkA:10 a=mi56gJdQAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=iqZg9Ac-I8Q_iH7sYJkA:9 a=CjuIK1q_8ugA:10 a=m6W23KLcDyq3lIHOBnQi:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [IPv6:fc00:1:1:1::5b]) by spqr.komquats.com (Postfix) with ESMTPS id 0C5A523A; Sun, 3 May 2020 13:10:59 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id 043KAw3G005794; Sun, 3 May 2020 13:10:58 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id 043KAwm9005791; Sun, 3 May 2020 13:10:58 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <202005032010.043KAwm9005791@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Baptiste Daroussin cc: Cy Schubert , freebsd-current@freebsd.org, freebsd-ports@freebsd.org Subject: Re: sysutils/screen-ncurses port In-reply-to: <20200430130449.cwsf3x42o6w67gor@ivaldir.net> References: <202004291841.03TIfkZh081308@slippy.cwsent.com> <20200430075337.3wdzglshhorcd2qn@ivaldir.net> <202004301256.03UCusls050859@slippy.cwsent.com> <20200430130449.cwsf3x42o6w67gor@ivaldir.net> Comments: In-reply-to Baptiste Daroussin message dated "Thu, 30 Apr 2020 15:04:49 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 May 2020 13:10:58 -0700 X-CMAE-Envelope: MS4wfDEyiCzvv5tJZTGpUhsVF+0tU0Hnn3JbFqWTDeA0FC6nOKUHw0OmVFiYb7q7Ja9YdcF7JIUKRYOASslFRxlJ2+oU54d+T4baJCd9OWRkpr4qhX4l5vny yvpM0hSybUKGLX07YHVuigAS1412jzO2a5CECY0sSPT0sA+xcQs3QTTwzF+Mby5x1T+3KZp8ijJakMAE9gWE344rINh/qPlxzHsAYkjYa5vSIEbcaEJjQtBB roDdpHPZuSOt3jQvdkuWNA== X-Rspamd-Queue-Id: 49FcZ00WdPz47XW X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.138) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.22 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.52)[ip: (-6.63), ipnet: 64.59.128.0/20(-3.30), asn: 6327(-2.58), country: CA(-0.09)]; RCVD_IN_DNSWL_LOW(-0.10)[138.136.59.64.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 20:11:05 -0000 In message <20200430130449.cwsf3x42o6w67gor@ivaldir.net>, Baptiste Daroussin wr ites: > > > --mvhxgm4zl62unzlf > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Thu, Apr 30, 2020 at 05:56:54AM -0700, Cy Schubert wrote: > > In message <20200430075337.3wdzglshhorcd2qn@ivaldir.net>, Baptiste=20 > > Daroussin wr > > ites: > > >=20 > > > > > > --vwrr5drfobpkyvop > > > Content-Type: text/plain; charset=3Dus-ascii > > > Content-Disposition: inline > > > Content-Transfer-Encoding: quoted-printable > > > > > > On Wed, Apr 29, 2020 at 11:41:46AM -0700, Cy Schubert wrote: > > > > Would people be open to the idea of a sysutils/screen-ncurses port th= > at=3D > > > =3D20 > > > > depends on devel/ncurses instead of ncureses in base? The reason for = > this=3D > > > =3D20 > > > > is there are screen.* terminfo entries in devel/ncurses that don't ex= > ist =3D > > > in=3D20 > > > > termcap(5). People who want that extra functionality would be advised= > to=3D > > > =3D20 > > > > install the alternative pkg or build the sysutils/screen port with th= > e=3D20 > > > > appropriate option. > > > >=3D20 > > > > Or, simply change the default from whatever ncurses is available to a= > lway=3D > > > s=3D20 > > > > install devel/ncurses. People could always select one of the other op= > tion=3D > > > s.=3D20 > > > > Personally, I'm not enamoured with this approach. > > > > > > I think it is a terrible idea, and we should fix the initial problem in= > stea=3D > > > d of > > > workarounding it. > > > > > > 1/ why those are not in our termcap(5) ? they should be added if they a= > re > > > missing. and MFC asap (prior 11.4 and 12.2 would be nice) > >=20 > > I came to this conclusion last night after sending this email thread oud= > =20 > > and will test it some time today. > >=20 > > > > > > 2/ we should allow our base ncurses to get informations from newer term= > cap(=3D > > > 5) if > > > needed. > > > So far the default TERMCAP is > > > ${HOME}/.termcap{,.db}:/etc/termcap{,.db}:/usr/share/misc/termcap{,.db} > > > > > > First the user can be advise to point configure the $home/.termcap this= > is =3D > > > for > > > quick now. > > that is in your scope via a pkg-message :D > > > > > > > Second for later futur proof mechanism we could modify our termcap read= > er (=3D > > > we > > > use our own, not the one in provided by ncurses). to be able to fetch t= > ermc=3D > > > ap > > > capabilities from /usr/local/share/misc/termcap/*.conf for example > > > > > > This way ports with random termcap info to add would be able to do it w= > itho=3D > > > ut > > > the requirement to wait for a commit in base and a MFC. > >=20 > > This is probably outside of my scope at the moment but, yes, agreed. > >=20 > I will then. > I added that to my TODO There's already a utility in devel/ncurses called infotocap (and its corresponding captoinfo) that already does this. Both are links to tic. Our ncurses import includes tic. Looks like all that's needed is add it to buildworld. I can look at it later tonight. Seems like a quick win. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org The need of the many outweighs the greed of the few.