From owner-freebsd-ports@freebsd.org Mon May 4 13:35:09 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 B0C4F2D00C8; Mon, 4 May 2020 13:35:09 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (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 49G3kj2w7zz4CpX; Mon, 4 May 2020 13:35:09 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id VbFQjlpXkng7KVbFSjxrc4; Mon, 04 May 2020 07:35:07 -0600 X-Authority-Analysis: v=2.3 cv=ecemg4MH 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=Wmk-lukIvAQwSAJmWjgA: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 185CDA01; Mon, 4 May 2020 06:35:04 -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 044DZ3Ve054568; Mon, 4 May 2020 06:35:03 -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 044DZ3m1054565; Mon, 4 May 2020 06:35:03 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <202005041335.044DZ3m1054565@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: <20200504072624.wlyd73pehq25tcp2@ivaldir.net> References: <202004291841.03TIfkZh081308@slippy.cwsent.com> <20200430075337.3wdzglshhorcd2qn@ivaldir.net> <202004301256.03UCusls050859@slippy.cwsent.com> <20200430130449.cwsf3x42o6w67gor@ivaldir.net> <202005032010.043KAwm9005791@slippy.cwsent.com> <20200504072624.wlyd73pehq25tcp2@ivaldir.net> Comments: In-reply-to Baptiste Daroussin message dated "Mon, 04 May 2020 09:26:24 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 May 2020 06:35:03 -0700 X-CMAE-Envelope: MS4wfOILSq5cypboP80vohdzOREKFeH2ud0M4alkS5dy6wZSwhwVqUUZKCf6z5r6T8u424Xw+aI2cu4JWS9WRIrI5JO7y3Hx3df9p7uDL+ucA75DKbvYiAk9 /+IPHkGV2fsmjetF70r1zj6CZitvSkOf+b4F4XQsZlVrkM+1003CdLvhhP0chQkuf0jRwmCpA15XxqNVyGBJPkXvH+IvEQbHBgITS2wsMcevKLvCujGvS/9X cwgZ5+trCCjcl8vpBVI5fg== X-Rspamd-Queue-Id: 49G3kj2w7zz4CpX X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] 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: Mon, 04 May 2020 13:35:09 -0000 In message <20200504072624.wlyd73pehq25tcp2@ivaldir.net>, Baptiste Daroussin wr ites: > > > --ma2vde2ykv3k7k6b > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sun, May 03, 2020 at 01:10:58PM -0700, Cy Schubert wrote: > > In message <20200430130449.cwsf3x42o6w67gor@ivaldir.net>, Baptiste=20 > > Daroussin wr > > ites: > > >=20 > > > > > > --mvhxgm4zl62unzlf > > > Content-Type: text/plain; charset=3Dus-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=3D= > 20 > > > > Daroussin wr > > > > ites: > > > > >=3D20 > > > > > > > > > > --vwrr5drfobpkyvop > > > > > Content-Type: text/plain; charset=3D3Dus-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 por= > t th=3D > > > at=3D3D > > > > > =3D3D20 > > > > > > depends on devel/ncurses instead of ncureses in base? The reason = > for =3D > > > this=3D3D > > > > > =3D3D20 > > > > > > is there are screen.* terminfo entries in devel/ncurses that don'= > t ex=3D > > > ist =3D3D > > > > > in=3D3D20 > > > > > > termcap(5). People who want that extra functionality would be adv= > ised=3D > > > to=3D3D > > > > > =3D3D20 > > > > > > install the alternative pkg or build the sysutils/screen port wit= > h th=3D > > > e=3D3D20 > > > > > > appropriate option. > > > > > >=3D3D20 > > > > > > Or, simply change the default from whatever ncurses is available = > to a=3D > > > lway=3D3D > > > > > s=3D3D20 > > > > > > install devel/ncurses. People could always select one of the othe= > r op=3D > > > tion=3D3D > > > > > s.=3D3D20 > > > > > > Personally, I'm not enamoured with this approach. > > > > > > > > > > I think it is a terrible idea, and we should fix the initial proble= > m in=3D > > > stea=3D3D > > > > > d of > > > > > workarounding it. > > > > > > > > > > 1/ why those are not in our termcap(5) ? they should be added if th= > ey a=3D > > > re > > > > > missing. and MFC asap (prior 11.4 and 12.2 would be nice) > > > >=3D20 > > > > I came to this conclusion last night after sending this email thread = > oud=3D > > > =3D20 > > > > and will test it some time today. > > > >=3D20 > > > > > > > > > > 2/ we should allow our base ncurses to get informations from newer = > term=3D > > > cap(=3D3D > > > > > 5) if > > > > > needed. > > > > > So far the default TERMCAP is > > > > > ${HOME}/.termcap{,.db}:/etc/termcap{,.db}:/usr/share/misc/termcap{,= > =2Edb} > > > > > > > > > > First the user can be advise to point configure the $home/.termcap = > this=3D > > > is =3D3D > > > > > 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=3D > > > er (=3D3D > > > > > we > > > > > use our own, not the one in provided by ncurses). to be able to fet= > ch t=3D > > > ermc=3D3D > > > > > 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=3D > > > itho=3D3D > > > > > ut > > > > > the requirement to wait for a commit in base and a MFC. > > > >=3D20 > > > > This is probably outside of my scope at the moment but, yes, agreed. > > > >=3D20 > > > I will then. > > > I added that to my TODO > >=20 > > There's already a utility in devel/ncurses called infotocap (and its=20 > > corresponding captoinfo) that already does this. Both are links to tic. O= > ur=20 > > ncurses import includes tic. Looks like all that's needed is add it to=20 > > buildworld. > >=20 > > I can look at it later tonight. Seems like a quick win. > >=20 > That is not the point, tic won't work here except if create your own versio= > n or > use infotocap. Tic is for terminfo databases while we are still using the= > =20 > termcap for historical reason I'm not suggesting replacing all of termcap. Just adding some converted screen.* entries. > > Having both ncurses from ports and ncurses from base installed at the same = > time > can open a special can of worm so imho that is not really something we want= > to > look forward. Some ports require ncurses from ports. Same can of worms as installing a kerberos or openssl port. -- 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.