From owner-freebsd-ports@FreeBSD.ORG Sat Jun 21 17:29:33 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org 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 DE1649BF for ; Sat, 21 Jun 2014 17:29:32 +0000 (UTC) Received: from smtp-out-04.shaw.ca (smtp-out-04.shaw.ca [64.59.134.12]) by mx1.freebsd.org (Postfix) with ESMTP id A7CC32433 for ; Sat, 21 Jun 2014 17:29:32 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=/24PZDiXryEUsaYH72AX4ulVzqSXihAXfE7Ql5lDP0I= c=1 sm=1 a=5aOOx30H-5sA:10 a=QrugwKR0C_UA:10 a=wAGQQ9Az6v0A:10 a=BLceEmwcHowA:10 a=ICAaq7hcmGcA:10 a=kj9zAlcOel0A:10 a=IbtKDeXwb2+SRU442/pi3A==:17 a=-Z94IbCPAAAA:8 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=96pV_0BBLLQshYYCvLIA:9 a=CjuIK1q_8ugA:10 a=V7tsTZBp22UA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([96.50.7.119]) by smtp-out-04.shaw.ca with ESMTP; 21 Jun 2014 11:29:25 -0600 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id B6BDE9F26; Sat, 21 Jun 2014 10:29:24 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.14.9/8.14.9) with ESMTP id s5LHTOIL027467; Sat, 21 Jun 2014 10:29:24 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.14.9/8.14.8/Submit) with ESMTP id s5LHTOTa027463; Sat, 21 Jun 2014 10:29:24 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201406211729.s5LHTOTa027463@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: Greg Rivers Subject: Re: security/tripwire stage error In-Reply-To: Message from Greg Rivers of "Sat, 21 Jun 2014 11:28:45 -0500." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 21 Jun 2014 10:29:23 -0700 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2014 17:29:33 -0000 In message , Greg Rivers writes: > This message is in MIME format. The first part should be readable text, > while the remaining parts are likely unreadable without MIME-aware tools. > > --487545500-2130553633-1403368130=:10559 > Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII > > Cy, thanks for your recent updates. tripwire builds nicely with clang > now, but poudriere is running into a staging error: > > ====>> Failed ports: security/tripwire:stage > > poudriere build log attached. > > Now that the port is no longer interactive, is the intent to package the > install.sh script so that it can be run as needed for initial database > setup? Looks like it's a poudriere issue. The install script expects to have a pty. Poudriere does not run subshells in ptys. You can test this by rsh localhost /bin/sh. That gives you a shell but no pty. rts/security/tripwire/work/tripwire-2.4.2.2-src' STGDIR="$STAGEDIR" prefix="/usr/local" sysconfdir="/usr/local/etc/tripwire" \ path_to_vi="/usr/bin/vi" path_to_sendmail="/usr/sbin/sendmail" \ ./install/install.sh Say 'sh install.sh', not 'sh < install.sh' gmake[1]: Leaving directory `/export/wrkdir/amd64/export/home/cy/freebsd/svn /ports/security/tripwire/work/tripwire-2.4.2.2-src' *** Error code 2 Stop. make: stopped in /export/home/cy/freebsd/svn/ports/security/tripwire tty not a tty The test below is where the check is made. The solution will be to also test if on a pty or even discard the test altogether. if [ ! -t 0 ] ; then echo "Say 'sh install.sh', not 'sh < install.sh'" exit 1 fi Having said all this, poudriere should run jails within ptys (or have the option to -- probably better idea). I don't have time to fix this now but I'll get to it when I get back home tonight. The solution is pretty simple. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org