From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 3 20:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83727F39 for ; Tue, 3 Dec 2013 20:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5D6CE1FA5 for ; Tue, 3 Dec 2013 20:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rB3KK0Ev097786 for ; Tue, 3 Dec 2013 20:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rB3KK0lW097785; Tue, 3 Dec 2013 20:20:00 GMT (envelope-from gnats) Resent-Date: Tue, 3 Dec 2013 20:20:00 GMT Resent-Message-Id: <201312032020.rB3KK0lW097785@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roman Bogorodskiy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3C207C73 for ; Tue, 3 Dec 2013 20:09:57 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0DC771EF9; Tue, 3 Dec 2013 20:09:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rB3K9u5T094970; Tue, 3 Dec 2013 20:09:56 GMT (envelope-from novel@freefall.freebsd.org) Received: (from novel@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rB3K9urv094969; Tue, 3 Dec 2013 20:09:56 GMT (envelope-from novel) Message-Id: <201312032009.rB3K9urv094969@freefall.freebsd.org> Date: Tue, 3 Dec 2013 20:09:56 GMT From: Roman Bogorodskiy To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/184479: [ patch ] devel/autoconf-wrapper: fix lost stderr Cc: Eric Blake X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Roman Bogorodskiy List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Dec 2013 20:20:01 -0000 >Number: 184479 >Category: ports >Synopsis: [ patch ] devel/autoconf-wrapper: fix lost stderr >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 03 20:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Roman Bogorodskiy >Release: FreeBSD 11.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD freefall.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r258818: Sun Dec 1 23:20:44 UTC 2013 peter@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64 >Description: Autoconf tools could be used with pipe. For example, fresh autopoint from gettext uses autom4te this way: http://git.savannah.gnu.org/cgit/gettext.git/commit/gettext-tools/misc/autopoint.in?id=eea2dddde35037d25b3f240ab95836b6adeaf517 As the wrapper currently eats stdin, autopoint doesn't work. It causes problems bootstrapping projects, e.g. I got this error with libvirt: (22:54) novel@dev:~/code/libvirt[master] %> ./autogen.sh I am going to run ./configure with no arguments - if you wish to pass any to it, please specify them on the ./autogen.sh command line. running bootstrap... ./bootstrap: Bootstrapping from checked-out libvirt sources... ./bootstrap: consider installing git-merge-changelog from gnulib ./bootstrap: getting gnulib files... ./bootstrap: autopoint --force autopoint: *** Missing version: please specify in configure.ac through a line 'AM_GNU_GETTEXT_VERSION(x.yy.zz)' the gettext version the package is using autopoint: *** Stop. Failed to bootstrap, please investigate. (22:54) novel@dev:~/code/libvirt[master] %> Attached patch fixes problem for me. >How-To-Repeat: >Fix: --- autoconf-wrapper-stdin-fix.diff begins here --- Index: Makefile =================================================================== --- Makefile (revision 335590) +++ Makefile (working copy) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME?= autoconf-wrapper -PORTVERSION= 20130530 +PORTVERSION= 20131203 CATEGORIES= devel MASTER_SITES= # none DISTFILES= # none Index: files/autotools-wrapper.sh =================================================================== --- files/autotools-wrapper.sh (revision 335590) +++ files/autotools-wrapper.sh (working copy) @@ -31,6 +31,8 @@ bindir=%%PREFIX%%/bin tool=$(basename $0) +exec 4<&0 + error() { echo "$@" 1>&2 exit 1 @@ -85,5 +87,6 @@ "(${bindir}/${tool}-${selected_version})" 1>&2 fi +exec 0<&4 4<&- exec ${bindir}/${tool}-${selected_version} "$@" } --- autoconf-wrapper-stdin-fix.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: