From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 13 00:52:47 2015 Return-Path: Delivered-To: freebsd-hackers@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 5DBD1218 for ; Fri, 13 Mar 2015 00:52:47 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 3A3E394B for ; Fri, 13 Mar 2015 00:52:46 +0000 (UTC) Received: from [192.168.128.101] (ai126143092246.32.access-internet.ne.jp [126.143.92.246]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id D78409C531 for ; Fri, 13 Mar 2015 00:52:39 +0000 (UTC) Message-ID: <550234D8.1070006@freebsd.org> Date: Thu, 12 Mar 2015 20:52:40 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: STDIN of dialog4ports References: <20150312054510.000067f4@gmail.com> <9928461426161287@web22o.yandex.ru> <20150312154503.00003c47@gmail.com> In-Reply-To: <20150312154503.00003c47@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2015 00:52:47 -0000 On 03/12/2015 10:45, rank1seeker@gmail.com wrote: > Thanks Ilya, > > 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) > > Just throw a patch and I'll gladly test it. (added hackers@) > > > Domagoj Smolčić > > > > On Thu, 12 Mar 2015 14:54:47 +0300 > Ilya A. Arkhipov wrote: > >> 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" : >>> 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 => 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 => 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čić >> > > _______________________________________________ > 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" > If you just want to accept the defaults, setting the environment variable BATCH=YES will skip displaying dialog4ports entirely -- Allan Jude