From owner-freebsd-ports@FreeBSD.ORG Fri Jun 17 15:26:46 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CC8B1065670 for ; Fri, 17 Jun 2011 15:26:46 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrz3028.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id BB48E8FC16 for ; Fri, 17 Jun 2011 15:26:45 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 1D18F5B0A6; Fri, 17 Jun 2011 17:09:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 1B30C5B0A4; Fri, 17 Jun 2011 17:09:14 +0200 (CEST) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id F10B85D1BF; Fri, 17 Jun 2011 17:09:13 +0200 (CEST) Received: from lexx.ifp.tuwien.ac.at ([128.131.127.223]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.2FP2HF144) with ESMTP id 2011061717091291-12632 ; Fri, 17 Jun 2011 17:09:12 +0200 Date: Fri, 17 Jun 2011 17:09:12 +0200 From: Alexey Shuvaev To: Ruslan Mahmatkhanov Message-ID: <20110617150912.GA10067@lexx.ifp.tuwien.ac.at> References: <4DFB6148.1000407@yandex.ru> <4DFB63B9.9060706@yandex.ru> MIME-Version: 1.0 In-Reply-To: <4DFB63B9.9060706@yandex.ru> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.2FP2HF144 | May 11, 2011) at 06/17/2011 05:09:13 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.2FP2HF144 | May 11, 2011) at 06/17/2011 05:09:13 PM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Ports Mailing List Subject: Re: tinderbox question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2011 15:26:46 -0000 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. =