From owner-freebsd-ports@freebsd.org Wed Mar 22 06:35:10 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E36AD165A6 for ; Wed, 22 Mar 2017 06:35:10 +0000 (UTC) (envelope-from freebsd-ports@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 986ADC6B for ; Wed, 22 Mar 2017 06:35:08 +0000 (UTC) (envelope-from freebsd-ports@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Wed, 22 Mar 2017 07:35:06 +0100 id 00136BEE.58D21B1A.00013B03 Date: Wed, 22 Mar 2017 07:35:06 +0100 From: Milan Obuch To: freebsd-ports@freebsd.org Subject: Re: mail/roundcube - strange error Message-ID: <20170322073506.6ebbe3a1@zeta.dino.sk> In-Reply-To: <20170321144837.4273875e@zeta.dino.sk> References: <20170321144837.4273875e@zeta.dino.sk> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; i386-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2017 06:35:10 -0000 On Tue, 21 Mar 2017 14:48:37 +0100 Milan Obuch wrote: > Hi, > > I am trying to install mail/roundcube port on dedicated VM and issuing > make in /usr/ports/mail/roundcube yields [ snip ] > /bin/mkdir-p /usr/ports/mail/roundcube/work/stage/usr/local/www/roundcube > *** Error code 127 [ snip ] For a record, I found the problem using 'make -d A' command. It gives tons of debug output, most important is it displayed *** Failed target: do-install and the exact command failing was missing cpio binary. Could our ports framework be a bit more descriptive in such a case? Default output suggests problem with mkdir binary, which is misleading and simply not true... In my case it was caused by using WITHOUT_CPIO in buildworld/installworld environment, so one could tell it is a pilot error, but even if accept this being the case, error message is a bit cryptic. Displaying failed command would be great help, I don't know, how hard it is - in this case, it was *** Failed command: cd /usr/ports/mail/roundcube/work/roundcubemail-1.2.3 && /bin/sh -c '(/usr/bin/find -Ed $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/bin/find -Ed $0 $2 \( -type d -exec /bin/sh -c '\''cd '\''$1'\'' && chmod 755 "$@"'\'' -- . {} + -o -type f -exec /bin/sh -c '\''cd '\''$1'\'' && chmod 555 "$@"'\'' -- . {} + \)' -- bin /usr/ports/mail/roundcube/work/stage/usr/local/www/roundcube (next line from 'make -d A' output, long, harder to parse, but really meaningfull). Regards, Milan