Date: Fri, 13 Mar 2015 14:41:05 +0100 From: <rank1seeker@gmail.com> To: freebsd-hackers@freebsd.org Cc: Allan Jude <allanjude@freebsd.org> Subject: Re: STDIN of dialog4ports Message-ID: <20150313144105.000001f8@gmail.com> In-Reply-To: <550234D8.1070006@freebsd.org> References: <20150312054510.000067f4@gmail.com> <9928461426161287@web22o.yandex.ru> <20150312154503.00003c47@gmail.com> <550234D8.1070006@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Mar 2015 20:52:40 -0400 Allan Jude <allanjude@freebsd.org> wrote: > On 03/12/2015 10:45, rank1seeker@gmail.com wrote: > > Thanks Ilya, > >=20 > > Well, better you patch it as you already know the layout of > > dialog4ports's code, as you've been main dev and you know where to > > start patching. I believe it's a little change which would cost you > > only hour or few. ;) > > + you are way more experienced in C then I (I did it only for about > > 4 months) > >=20 > > Just throw a patch and I'll gladly test it. (added hackers@) > >=20 > >=20 > > Domagoj Smol=C4=8Di=C4=87 > >=20 > >=20 > >=20 > > On Thu, 12 Mar 2015 14:54:47 +0300 > > Ilya A. Arkhipov <rum1cro@yandex.ru> wrote: > >=20 > >> Yes, now dialog4ports can't to get from STDIN any data. > >> But if you want you(or maybe I) can prepare patch for that ^_^ > >> > >> 12.03.2015, 07:45, "rank1seeker@gmail.com" <rank1seeker@gmail.com>: > >>> Hi! > >>> > >>> I'm contacting you because you have developed dialog4ports and > >>> I'll try to be very short in my request. > >>> > >>> GOAL: File "/var/db/ports/$PORT/options" being created via 'make > >>> config' as it is when ENTER is pressed as soon as dialog was > >>> displayed. > >>> > >>> Before 9.0 my solution was: > >>> When in port's dir (DOESN'T have "/var/db/ports/$PORT/options" > >>> file set =3D> doesn't exists yet) -- > >>> # make config << MyEND > >>> o > >>> MyEND > >>> -- > >>> Additionally, I avoided dialog being displayed by sending it > >>> to /dev/null. Once "/var/db/ports/$PORT/options" is created, task > >>> is done =3D> NO build, install, etc ... > >>> > >>> Now as I understand, change to "raw" mode type of dialog4ports's > >>> STDIN, which differs from pipe's buffered mode, makes me unable to > >>> pipe ENTER (\n) to dialog > >>> > >>> Now I'm forced to use lang/expect which is overhead and very slow! > >>> > >>> Thanks in advance. > >>> > >>> Domagoj Smol=C4=8Di=C4=87 > >> > >=20 > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org" > >=20 >=20 > If you just want to accept the defaults, setting the environment > variable BATCH=3DYES will skip displaying dialog4ports entirely No, BATCH=3DYES won't work for 'config' target as it'll display dialog anyw= ay. It'll work with 'install' target, BUT "/var/db/ports/$PORT/options" won't b= e created!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150313144105.000001f8>