From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 12 14:45:12 2015 Return-Path: Delivered-To: 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 40A4975D; Thu, 12 Mar 2015 14:45:12 +0000 (UTC) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C51B12AA; Thu, 12 Mar 2015 14:45:11 +0000 (UTC) Received: by wevk48 with SMTP id k48so16849355wev.7; Thu, 12 Mar 2015 07:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=sljVJZgwb2Q1vWlTe0FKEf8uIPW/ZSSOC9xNsDgrTvI=; b=n4Q1F4+AdCGxJkWGbvv08ZdX9ZC4PKFtoK4XUMhcSTaHyGnw/Oa8T+zGHl4YtX8m11 7BkxtlGJ0A4XR/v9xfoYrSxoOG58TqbZ0noIpsDDJ/ZJWU4jxHgb7o9tZKk61WIb1Ern ewHtcu8oYbAd3fzNCTyKDPO2a8EXt8C8wONt2qE7ojyGPOQXapM1PCnrrlzCmxRgoytc DVB/3zxO+bwSCaxxJOddF8AWsxIWmNqVuya/SE1UJ4l5X0uE8vgNcFgUxJlk4oAxLSkz 0fISG5NaOkMz/voH8mdrOTCZMMH4eQ5dqu9+8ZergkNPewv8nc9Q3SaBEO0XVGx/AS0l swBQ== X-Received: by 10.180.107.71 with SMTP id ha7mr132800903wib.23.1426171510227; Thu, 12 Mar 2015 07:45:10 -0700 (PDT) Received: from localhost ([217.14.212.217]) by mx.google.com with ESMTPSA id w8sm10386013wja.4.2015.03.12.07.45.09 (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 12 Mar 2015 07:45:09 -0700 (PDT) Date: Thu, 12 Mar 2015 15:45:03 +0100 From: To: "Ilya A. Arkhipov" , hackers@freebsd.org, "eadler@FreeBSD.org" , "bapt@FreeBSD.org" , "danfe@FreeBSD.org" Subject: Re: STDIN of dialog4ports Message-ID: <20150312154503.00003c47@gmail.com> In-Reply-To: <9928461426161287@web22o.yandex.ru> References: <20150312054510.000067f4@gmail.com> <9928461426161287@web22o.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 12 Mar 2015 14:45:12 -0000 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=C4=8Di=C4=87 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 ^_^ >=20 > 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 =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