Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2011 17:09:12 +0200
From:      Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
To:        Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Cc:        FreeBSD Ports Mailing List <ports@freebsd.org>
Subject:   Re: tinderbox question
Message-ID:  <20110617150912.GA10067@lexx.ifp.tuwien.ac.at>
In-Reply-To: <4DFB63B9.9060706@yandex.ru>
References:  <4DFB6148.1000407@yandex.ru> <4DFB63B9.9060706@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 17, 2011 at 06:24:57PM +0400, Ruslan Mahmatkhanov wrote:
> 17.06.2011 18:14, Ruslan Mahmatkhanov =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> >Good day.
> >
> >How can i `inject` updated (or new) port into tinderbox Build to test it=
 for
> >correctness? I mean i have not any troubles to build any existing port, =
but what
> >should i do to place updated or new port into the tinderbox portstree?
> >
>=20
> Ok, it seems i got it.
> I have /usr/local/tinderbox/8.2-FreeBSD/usr/ports/ that is symlinked
> to /usr/local/tinderbox/8.2-FreeBSD/a/ports/. It's nullfs mounted fs
> and it's read-only. I realise that i can just patch
> /usr/local/tinderbox/portstrees/FreeBSD/ports to achive this goal,
> but i'm not sure if this is Right Thing or there is some another
> correct way. This procedure isn't mentioned in Tinderbox Users Guide
> (maybe it should be too obvious) so i ask there. Thanks.
>=20
Well, I think it is too obvious. Or, to say better, there are too many ways
to do it. Personally, I build "official" ports in tinderbox. So, I
null-mount /usr/ports to whatever tinderbox wants it to. If I want to test
updated port I move original category/port to caterogy/port.orig and place
the new port into category/port (all under /usr/ports). After testing
I remove category/port and move original port back. This way csup/portsnap
works as usual, keeping /usr/ports up-to-date.
The big changes like marcuscom or area51 repos are handled the same way,
but globally. So "mv /usr/ports /usr/ports.orig", then copy/patch/fetch/...
the new ports tree into /usr/ports, test the things, and move back at the e=
nd.

I find this strategy optimal for occasional ports testing, if you are
continiously working with the side repos like above, adding multiple ports
trees into tinderbox is (IMHO) the way to go. This is described in
tinderbox README.

HTH,
Alexey.
=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110617150912.GA10067>