Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2014 13:50:24 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        FreeBSD Ports <ports@freebsd.org>, Alfred Perlstein <alfred@freebsd.org>, Bryan Drewery <bdrewery@freebsd.org>
Subject:   Re: poudriere: bulk.sh: cpdup: Permission denied
Message-ID:  <59D51E6C-A7CF-4443-A384-CC7F442A94FF@mu.org>
In-Reply-To: <CAG=rPVeoGLaDX1cEp9sHMOM9PmC36x1ztuaRuTgJvGU6T13MhQ@mail.gmail.com>
References:  <548F2678.7040903@freebsd.org> <CAG=rPVeoGLaDX1cEp9sHMOM9PmC36x1ztuaRuTgJvGU6T13MhQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Craig.=20

Replies below.=20

> On Dec 15, 2014, at 12:21 PM, Craig Rodrigues <rodrigc@FreeBSD.org> wrote:=

>=20
>=20
>=20
>> On Mon, Dec 15, 2014 at 10:20 AM, Alfred Perlstein <alfred@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59D51E6C-A7CF-4443-A384-CC7F442A94FF>