From never@mile.x-play.com.ua  Tue Apr  3 16:41:52 2007
Return-Path: <never@mile.x-play.com.ua>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1759716A401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Apr 2007 16:41:52 +0000 (UTC)
	(envelope-from never@mile.x-play.com.ua)
Received: from mile.x-play.com.ua (mile.x-play.com.ua [195.69.169.250])
	by mx1.freebsd.org (Postfix) with ESMTP id 8042713C48C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Apr 2007 16:41:49 +0000 (UTC)
	(envelope-from never@mile.x-play.com.ua)
Received: from mile.x-play.com.ua (localhost [127.0.0.1])
	by mile.x-play.com.ua (8.13.8/8.13.8) with ESMTP id l33GT3A6008548
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Apr 2007 19:29:03 +0300 (EEST)
	(envelope-from never@mile.x-play.com.ua)
Received: (from never@localhost)
	by mile.x-play.com.ua (8.13.8/8.13.8/Submit) id l33GT3J6008547;
	Tue, 3 Apr 2007 19:29:03 +0300 (EEST)
	(envelope-from never)
Message-Id: <200704031629.l33GT3J6008547@mile.x-play.com.ua>
Date: Tue, 3 Apr 2007 19:29:03 +0300 (EEST)
From: Alexandr Kovalenko <never@nevermind.kiev.ua>
Reply-To: Alexandr Kovalenko <never@nevermind.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make distrubution target outputs to the wrong file descriptor
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         111195
>Category:       conf
>Synopsis:       make distribution target outputs to the wrong file descriptor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 03 16:50:03 GMT 2007
>Closed-Date:    Thu Apr 05 06:13:37 GMT 2007
>Last-Modified:  Thu Apr 05 06:13:37 GMT 2007
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 6.2-RELEASE-p1 i386
>Organization:
Sunny Mobile Ltd.
>Environment:
System: FreeBSD mile.xxx.ua 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1: Tue Feb 20 18:19:00 EET 2007 root@mile.xxx.ua:/usr/obj/usr/src/sys/mile i386

>Description:
	Some of command in "make distribution" target in /usr/src/etc output to the wrong file descriptor.
	For explanation, please check How-To-Repeat section.
>How-To-Repeat:
[never@mile /usr/src/etc]$ sudo make distribution DESTDIR=~never/chroot 2>&1 > /dev/null
+ ln -s ../var/named/etc/namedb /home/never/chroot/etc/namedb
+ ln -s mail/aliases /home/never/chroot/etc/aliases
[never@mile /usr/src/etc]$ 
>Fix:
N/A
>Release-Note:
>Audit-Trail:

From: Remko Lodder <remko@elvandar.org>
To: Alexandr Kovalenko <never@nevermind.kiev.ua>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: conf/111195: make distrubution target outputs to the wrong file descriptor
Date: Tue, 3 Apr 2007 22:44:31 +0200

 On Tue, Apr 03, 2007 at 07:29:03PM +0300, Alexandr Kovalenko wrote:
 > 
 > System: FreeBSD mile.xxx.ua 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1: Tue Feb 20 18:19:00 EET 2007 root@mile.xxx.ua:/usr/obj/usr/src/sys/mile i386
 > 
 > >Description:
 > 	Some of command in "make distribution" target in /usr/src/etc output to the wrong file descriptor.
 > 	For explanation, please check How-To-Repeat section.
 > >How-To-Repeat:
 > [never@mile /usr/src/etc]$ sudo make distribution DESTDIR=~never/chroot 2>&1 > /dev/null
 > + ln -s ../var/named/etc/namedb /home/never/chroot/etc/namedb
 > + ln -s mail/aliases /home/never/chroot/etc/aliases
 > [never@mile /usr/src/etc]$ 
 > >Fix:
 > N/A
 > >Release-Note:
 
 Hello,
 
 This report is useless, can you specify what the problem is? (at least I dont get what you
 are meaning and we would like to help, but then you need to submit information that we
 can use.)
 
 Thanks for using FreeBSD though!
 
 Cheers,
 remko
 
 -- 
 Kind regards,
 
      Remko Lodder               ** remko@elvandar.org
      FreeBSD                    ** remko@FreeBSD.org
 
      /* Quis custodiet ipsos custodes */

From: Alexandr Kovalenko <never@nevermind.kiev.ua>
To: Remko Lodder <remko@elvandar.org>
Cc: freebsd-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/111195: make distrubution target outputs to the wrong file descriptor
Date: Wed, 4 Apr 2007 19:45:46 +0300

 Hello, Remko Lodder!
 
 On Tue, Apr 03, 2007 at 08:50:06PM +0000, you wrote:
 
 > The following reply was made to PR conf/111195; it has been noted by GNATS.
 > 
 > From: Remko Lodder <remko@elvandar.org>
 > To: Alexandr Kovalenko <never@nevermind.kiev.ua>
 > Cc: FreeBSD-gnats-submit@FreeBSD.org
 > Subject: Re: conf/111195: make distrubution target outputs to the wrong file descriptor
 > Date: Tue, 3 Apr 2007 22:44:31 +0200
 > 
 >  On Tue, Apr 03, 2007 at 07:29:03PM +0300, Alexandr Kovalenko wrote:
 >  > 
 >  > System: FreeBSD mile.xxx.ua 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1: Tue Feb 20 18:19:00 EET 2007 root@mile.xxx.ua:/usr/obj/usr/src/sys/mile i386
 >  > 
 >  > >Description:
 >  > 	Some of command in "make distribution" target in /usr/src/etc output to the wrong file descriptor.
 >  > 	For explanation, please check How-To-Repeat section.
 >  > >How-To-Repeat:
 >  > [never@mile /usr/src/etc]$ sudo make distribution DESTDIR=~never/chroot 2>&1 > /dev/null
 >  > + ln -s ../var/named/etc/namedb /home/never/chroot/etc/namedb
 >  > + ln -s mail/aliases /home/never/chroot/etc/aliases
 >  > [never@mile /usr/src/etc]$ 
 >  > >Fix:
 >  > N/A
 >  > >Release-Note:
 >  
 >  Hello,
 >  
 >  This report is useless, can you specify what the problem is? (at least I dont get what you
 >  are meaning and we would like to help, but then you need to submit information that we
 >  can use.)
 
 Ok, let me explain more detailed, as you can see - I redirected both
 stdout and stderr to /dev/null, but still some text was displayed. I
 suppose it is not desired behavour and those "+ ln -s ..." lines should
 not appear in output, but they did because some part of script writes
 not to stdout and stderr only. I may be wrong though.
 
 -- 
 NEVE-RIPE, will build world for food
 Ukrainian FreeBSD User Group
 http://uafug.org.ua/

From: Maxim Konovalov <maxim@macomnet.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: conf/111195: make distrubution target outputs to the wrong file
 descriptor
Date: Wed, 4 Apr 2007 21:44:55 +0400 (MSD)

 Perhaps we need just remove those "set -x" from Makefile.
 
 -- 
 Maxim Konovalov

From: Ruslan Ermilov <ru@FreeBSD.org>
To: Alexandr Kovalenko <never@nevermind.kiev.ua>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/111195: make distrubution target outputs to the wrong
	file descriptor
Date: Wed, 4 Apr 2007 21:49:32 +0400

 On Wed, Apr 04, 2007 at 05:20:09PM +0000, Alexandr Kovalenko wrote:
 >  >  > >How-To-Repeat:
 >  >  > [never@mile /usr/src/etc]$ sudo make distribution DESTDIR=~never/chroot 2>&1 > /dev/null
 >  >  > + ln -s ../var/named/etc/namedb /home/never/chroot/etc/namedb
 >  >  > + ln -s mail/aliases /home/never/chroot/etc/aliases
 >  >  > [never@mile /usr/src/etc]$ 
 >  >  > >Fix:
 >  >  > N/A
 >  >  > >Release-Note:
 >  >  
 >  >  Hello,
 >  >  
 >  >  This report is useless, can you specify what the problem is? (at least I dont get what you
 >  >  are meaning and we would like to help, but then you need to submit information that we
 >  >  can use.)
 >  
 >  Ok, let me explain more detailed, as you can see - I redirected both
 >  stdout and stderr to /dev/null, but still some text was displayed. I
 >  suppose it is not desired behavour and those "+ ln -s ..." lines should
 >  not appear in output, but they did because some part of script writes
 >  not to stdout and stderr only. I may be wrong though.
 >  
 To redirect both stdout and stderr to /dev/null, you should
 write it like this: ">/dev/null 2>&1", and not like you did
 it: "2>&1 >/dev/null".  The order is important here.
 
 
 Cheers,
 -- 
 Ruslan Ermilov
 ru@FreeBSD.org
 FreeBSD committer
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Thu Apr 5 06:11:40 UTC 2007 
State-Changed-Why:  
Originator was supplied with the correct syntax 
to redirect both stdout and stderr to /dev/null. 

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