From owner-freebsd-ports@FreeBSD.ORG Mon Dec 15 21:50:26 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7395E6AA; Mon, 15 Dec 2014 21:50:26 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 0068CEF3; Mon, 15 Dec 2014 21:50:26 +0000 (UTC) Received: from [100.121.71.237] (175.sub-70-197-5.myvzw.com [70.197.5.175]) by elvis.mu.org (Postfix) with ESMTPSA id 0D8A2341F860; Mon, 15 Dec 2014 13:50:25 -0800 (PST) Mime-Version: 1.0 (1.0) Subject: Re: poudriere: bulk.sh: cpdup: Permission denied From: Alfred Perlstein X-Mailer: iPhone Mail (12B440) In-Reply-To: Date: Mon, 15 Dec 2014 13:50:24 -0800 Message-Id: <59D51E6C-A7CF-4443-A384-CC7F442A94FF@mu.org> References: <548F2678.7040903@freebsd.org> To: Craig Rodrigues Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Ports , Alfred Perlstein , Bryan Drewery X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 21:50:26 -0000 Thanks Craig.=20 Replies below.=20 > On Dec 15, 2014, at 12:21 PM, Craig Rodrigues wrote:= >=20 >=20 >=20 >> On Mon, Dec 15, 2014 at 10:20 AM, Alfred Perlstein w= rote: >> Hey folks, I'm trying to get started with poudriere. I pulled from the l= atest version 3.1.1 (9f9e43d3). >=20 > =20 >>=20 >> /usr/home/alfred/poudriere/src/share/poudriere/bulk.sh: cpdup: Permission= denied >=20 > cpdup is a binary (not shell script) which gets installed as part of the p= oudriere distribution. > It looks like you haven't got it installed right in your setup. > I advise you to install the poudriere-devel port instead of pulling poudri= ere directly from git and building it. That won't work as I'm doing development on poudriere.=20 >=20 > The other thing I would recommend that you do is to check out the freebsd1= 0 branch > from https://github.com/freenas/freenas repository, and build it once. Th= en look at:' >=20 > https://github.com/freenas/freenas/tree/freebsd10/build/ports > https://github.com/freenas/freenas/blob/freebsd10/build/ports/build-ports.= sh >=20 > to see how poudriere is invoked to build the ports in FreeNAS. Will do, thanks for the pointer.=20 >=20 >=20 > If you want to enable tracing in poudriere, then use "-x" as the first fla= g write after poudiere. For example: >=20 > poudriere -x bulk=20 Yup, done that already. Problem is that Bourne shell debugging is terrible. -x does not give line nu= mbers, nor functions, nor files.=20 Spent some time trying to do things using PS4 variable but it was for naught= because $LINENO and $0 don't work properly in PS4 as far as I can tell in o= ur version of Bourne shell. Bash on the other hand seems to have better supp= ort for expanding useful things into PS4, however it's still very poor as co= mpared to the facilities of let's say Python or Ruby or probably even Javasc= ript.=20 I hear now that poudriere is being migrated to C of all things which IMO is a= huge mistake. Almost as bad as having it in shell.=20 As someone that would *like* to contribute to poudriere, (see my github whic= h has patches already) I'm hoping the maintainers can look at using a high l= evel language that offers debugging as well as built in string safety as opp= osed to going to an even more low level system. Moving to C would make that j= ust more pain than it seems worth.=20 -Alfred.=20 >=20 > -- > Craig=20