From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 13 13:41:11 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 576B9A7C; Fri, 13 Mar 2015 13:41:11 +0000 (UTC) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (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 DD162A1E; Fri, 13 Mar 2015 13:41:10 +0000 (UTC) Received: by wiwl15 with SMTP id l15so12213958wiw.1; Fri, 13 Mar 2015 06:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=yo2QPeUejGf/MgYlGh/oUJGZMCTnfg4pGKbv7VYRYFk=; b=oBMSVyhD0Y5GCsTwkEuMknl8m9XTdCSw279m6CIWtoMGWaH5qRB1052Z8lSpFoub+g CEtiK+UtHxInnIMx9k0EjW5prgCp13F46pK+aW7ct0L77eihoa2eHFVMxeMCkgHTGdgg NXrnFe8PfAUtZsp9ad7JoEPpHHge7MB5to5GZ3GIrDZoVCnT1LPuR50QZI+SvL4g3aDK IUv9T0rNZiL2k8kh36qNXecE/uZT9joVpM3LZA8epk6VyEjl7I5bj4tqJf4UNz8YHFyE g5EoJ0/bwvycD5SDxKSGIfqhghgPMtrq4CSo6AAeMyHYaGc2r6zxrwYGsUn2hiWq4Hja 2S4g== X-Received: by 10.194.156.133 with SMTP id we5mr99388672wjb.37.1426254069371; Fri, 13 Mar 2015 06:41:09 -0700 (PDT) Received: from localhost ([217.14.212.217]) by mx.google.com with ESMTPSA id ew5sm2845217wic.14.2015.03.13.06.41.08 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 13 Mar 2015 06:41:08 -0700 (PDT) Date: Fri, 13 Mar 2015 14:41:05 +0100 From: To: freebsd-hackers@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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Allan Jude 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 13:41:11 -0000 On Thu, 12 Mar 2015 20:52:40 -0400 Allan Jude 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 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" : > >>> 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!