From bram@moolenaar.net  Wed Oct  1 09:51:16 2003
Return-Path: <bram@moolenaar.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C95E016A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 09:51:16 -0700 (PDT)
Received: from smtpq3.home.nl (smtpq3.home.nl [213.51.128.198])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C712443FBD
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 09:51:15 -0700 (PDT)
	(envelope-from bram@moolenaar.net)
Received: from [213.51.128.135] (port=52931 helo=smtp4.home.nl)
	by smtpq3.home.nl with esmtp (Exim 4.20)
	id 1A4kC2-0007MP-MX
	for FreeBSD-gnats-submit@freebsd.org; Wed, 01 Oct 2003 18:51:14 +0200
Received: from cp52318-a.venlo1.lb.home.nl ([217.123.168.93]:1691 helo=moolenaar.net)
	by smtp4.home.nl with esmtp (Exim 4.20)
	id 1A4kC1-0001kF-Eb
	for FreeBSD-gnats-submit@freebsd.org; Wed, 01 Oct 2003 18:51:13 +0200
Received: from masaka.moolenaar.net (localhost [127.0.0.1])
	by moolenaar.net (8.12.8p1/8.12.8) with ESMTP id h91G1o9R004924
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Oct 2003 18:01:50 +0200 (CEST)
	(envelope-from Bram@moolenaar.net)
Received: (from mool@localhost)
	by masaka.moolenaar.net (8.12.8p1/8.12.8/Submit) id h91G1oQZ004923;
	Wed, 1 Oct 2003 18:01:50 +0200 (CEST)
Message-Id: <200310011601.h91G1oQZ004923@masaka.moolenaar.net>
Date: Wed, 1 Oct 2003 18:01:50 +0200 (CEST)
From: Bram Moolenaar <Bram@moolenaar.net>
Reply-To: Bram Moolenaar <Bram@moolenaar.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dialog(1) does not read stdin, breaks subversion port
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57466
>Category:       bin
>Synopsis:       dialog(1) does not read stdin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 01 10:00:34 PDT 2003
>Closed-Date:    Wed Aug 06 14:02:14 UTC 2008
>Last-Modified:  Wed Aug 06 14:02:14 UTC 2008
>Originator:     Bram Moolenaar
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD masaka.moolenaar.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Mon Sep 1 12:55:03 CEST 2003 mool@masaka.moolenaar.net:/usr/src/sys/compile/MASAKA i386


	
>Description:
	The dialog command apparently does not read from stdin but probably
	from stderr.  When stderr is redirected it no longer listens to what
	the user types.  Since redirecting the output of "make" in a port is
	quite normal, this breaks building a port that uses the dialog command.
	The Subversion port is an example.
>How-To-Repeat:
	% cd /usr/ports/devel/subversion
	% make |& tee makelog

	The dialog is displayed, but typed keys are echoed instead of used.
	Can only get out by pressing CTRL-C.
>Fix:
	Unknown.


>Release-Note:
>Audit-Trail:

From: "Bruce A. Mah" <bmah@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, bram@moolenaar.net
Cc:  
Subject: Re: bin/57466: dialog(1) does not read stdin, breaks subversion
	port
Date: Fri, 23 Jul 2004 10:00:03 -0700

 --=-Y3kXiBe06hH+Yxy3ErNe
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 This PR caught my eye because at one point I used to maintain the
 subversion port.  When did it ever use the dialog command?  It didn't
 when I used to maintain it, and it doesn't seem to now.
 
 Is this still a problem?
 
 Bruce.
 
 
 --=-Y3kXiBe06hH+Yxy3ErNe
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQBBAUQS2MoxcVugUsMRAgMVAJ9L+AQIXev5po0WjVsVBhdixYcvtgCglN7b
 3c5V3rfAuAl4K8/1uhzQsLg=
 =vq21
 -----END PGP SIGNATURE-----
 
 --=-Y3kXiBe06hH+Yxy3ErNe--

From: Bram Moolenaar <Bram@moolenaar.net>
To: "Bruce A. Mah" <bmah@freebsd.org>
Cc: freebsd-gnats-submit@freebsd.org, bram@moolenaar.net
Subject: Re: bin/57466: dialog(1) does not read stdin, breaks subversion
	port
Date: Fri, 23 Jul 2004 20:37:59 +0200

 Bruce -
 
 > This PR caught my eye because at one point I used to maintain the
 > subversion port.  When did it ever use the dialog command?  It didn't
 > when I used to maintain it, and it doesn't seem to now.
 > 
 > Is this still a problem?
 
 I'll try it out (now using FreeBSD 4.9)...  Hmm, now the subversion port
 breaks because of a nasty dependency:
 	An older version of textproc/expat2 is already installed (expat-1.95.6_1)
 The usual problem: 126 packages depend on expat-1.95.6_1!  Thus I can't
 use the subversion port at this time.  This kind of dependency makes
 the port system completely useless!
 
 Note that the original problem is not with subversion, it just happened
 to occur in the subversion port.  The actual problem is with "dialog".
 
 I tried making a test to show the problem with just running "dialog":
 
 	dialog --yesno question 6 50 |& tee /tmp/tt
 
 Problem is that keys like <Tab> and <Space> are not handled.  But Enter
 is used.  Could it be that the terminal is not set to raw mode?  Without
 redirecting stderr it works fine, thus I suspect a stty() is done on
 stderr while the input is read from stdin.  The xterm settings are also
 messed up (scrolling works as if the number of lines is much less, need
 to do a "soft rest" to fix that).
 
 - Bram
 
 -- 
 hundred-and-one symptoms of being an internet addict:
 65. The last time you looked at the clock it was 11:30pm, and in what
     seems like only a few seconds later, your sister runs past you to
     catch her 7am school bus.
 
  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///

From: "Bruce A. Mah" <bmah@freebsd.org>
To: Bram Moolenaar <Bram@moolenaar.net>
Cc: freebsd-gnats-submit@freebsd.org,
	"Bruce A. Mah" <bmah@freebsd.org>
Subject: Re: bin/57466: dialog(1) does not read stdin, breaks subversion
	port
Date: Fri, 23 Jul 2004 11:57:00 -0700

 --=-5oP2GlCwDzMrQ4+Nra33
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, 2004-07-23 at 11:37, Bram Moolenaar wrote:
 > Bruce -
 >=20
 > > This PR caught my eye because at one point I used to maintain the
 > > subversion port.  When did it ever use the dialog command?  It didn't
 > > when I used to maintain it, and it doesn't seem to now.
 > >=20
 > > Is this still a problem?
 >=20
 > I'll try it out (now using FreeBSD 4.9)...  Hmm, now the subversion port
 > breaks because of a nasty dependency:
 > 	An older version of textproc/expat2 is already installed (expat-1.95.6_1=
 )
 > The usual problem: 126 packages depend on expat-1.95.6_1!  Thus I can't
 > use the subversion port at this time.  This kind of dependency makes
 > the port system completely useless!
 
 portupgrade is your friend.  In this case what happened (I think) is
 that the shared library version number for expat was incremented and
 subversion (rightfully) wants the newer one.  If you portupgrade the
 expat port, it'll save away a copy of the old library (or libraries) so
 your 126 existing ports can use them.
 
 > Note that the original problem is not with subversion, it just happened
 > to occur in the subversion port.  The actual problem is with "dialog".
 
 Unfortunately, I'm actually fairly clueless about how dialog works.  I
 was just trying to see how it related to subversion.
 
 Bruce.
 
 
 --=-5oP2GlCwDzMrQ4+Nra33
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQBBAV982MoxcVugUsMRAuapAKDFTwzsViZKOq+TcjuOIEZdR/MbGACg0ygt
 duyuiF6xkU0WmCcZl5W1FiU=
 =UHjM
 -----END PGP SIGNATURE-----
 
 --=-5oP2GlCwDzMrQ4+Nra33--

From: Bram Moolenaar <Bram@moolenaar.net>
To: "Bruce A. Mah" <bmah@freebsd.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/57466: dialog(1) does not read stdin, breaks subversion
	port
Date: Fri, 23 Jul 2004 21:41:41 +0200

 Bruce -
 
 > > > This PR caught my eye because at one point I used to maintain the
 > > > subversion port.  When did it ever use the dialog command?  It didn't
 > > > when I used to maintain it, and it doesn't seem to now.
 > > > 
 > > > Is this still a problem?
 > > 
 > > I'll try it out (now using FreeBSD 4.9)...  Hmm, now the subversion port
 > > breaks because of a nasty dependency:
 > > 	An older version of textproc/expat2 is already installed (expat-1.95.6_1)
 > > The usual problem: 126 packages depend on expat-1.95.6_1!  Thus I can't
 > > use the subversion port at this time.  This kind of dependency makes
 > > the port system completely useless!
 > 
 > portupgrade is your friend.  In this case what happened (I think) is
 > that the shared library version number for expat was incremented and
 > subversion (rightfully) wants the newer one.  If you portupgrade the
 > expat port, it'll save away a copy of the old library (or libraries) so
 > your 126 existing ports can use them.
 
 	% portupgrade
 	portupgrade: Command not found
 
 If portupgrade is such an obvious solution, then why isn't it used
 automatically?  I have no idea what the side effects will be, I'm not
 going to take a risk on a stable system.
 
 In other words: Why isn't the right version of expat installed when it's
 needed?  Version conflicts should be dealt with, not result in an error
 message.
 
 - Bram
 
 -- 
 hundred-and-one symptoms of being an internet addict:
 68. Your cat always puts viruses on your dogs homepage
 
  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Wed Aug 6 13:49:19 UTC 2008 
State-Changed-Why:  
Although this doesn't resolve the issue, the following can be said 
about it: 

- It only happens in tcsh with |&, not in tcsh with | and in sh/bash. 

- Redirecting the output of make in the ports collection can better 
be done with the script(1) command. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=57466 
>Unformatted:
