Adventures in tinderbox

For those that don't know anything about FreeBSD it is an operating system that traces it's heritage back to the original unix development at AT&T starting in 1970. FreeBSD uses what is called ports to build a whole range of software that you can use. If you know linux and say well we just use yum to install binary programs, that's fine, ports is the structure holding up the FreeBSD equivalent, which is called packages. So you get two options, 1. use a port to compile the software yourself or 2. have a pre-built binary package installed. The port needs to be setup and working before you can get a binary package to install.

Being in the process of helping fix issues related to getting programs to compile within the FreeBSD ports system I have gone and setup tinderbox on my machine. Basically tinderbox allows you to setup virtual systems to test the build process of the port you are working on. This means you can test that the port builds on any number of FreeBSD versions, which is a good starting point to allowing others to use it. Yeah, I said a good starting point, someone will find that it won't work on their machine while program x is installed. But hey that's one of the joys of programming. ;-)

Anyway to the point of this post - setting up tinderbox. While there is some decent documentation it doesn't fully cover all features, maybe these are the newer features. Anyway this is the first of a series of posts that cover my exploration into setting up tinderbox my way.

Tinderbox uses some terms a little different than you may expect so lets start with the first building block - a tinderbox jail. Within tinderbox a jail is a copy of a FreeBSD install of a particular version, that is what you get when you run make buildworld installworld from /usr/src. The idea is you have a few of these jails setup, I will use 10-CURRENT and 9-STABLE as examples here. One area here that isn't covered in the docs is using subversion to get your source files, so that is what I will use. The main FreeBSD development changed to using svn several years ago now but with them keeping the cvs repo mirrored to the svn updates there doesn't appear to be much info on using svn yet. This wiki page seems to be the best info available.

So to get started install tinderbox - from ports of course.

cd /usr/ports/ports-mgmt/tinderbox make install clean

Before install you can run make config to change a few options - personally I swapped mysql with PostgreSQL and csup with cvsup, which I didn't end up using. Installing will put all the scripts in /usr/local/tinderbox/scripts and I will assume that is where your setup is. Beside the scripts dir you will also find several other empty dirs at this point, I'll mention them as we get to the relevant parts.

I won't go into the setup step here as what you need to know is in the docs (tinderbox/scripts/README) basically create the database to be used and save a few options into config files.

Then you stat by creating some jails, you obviously need to give it some info for that.

usage: tc createJail -j <jailname> -u CSUP|CVSUP|LFTP|SVN|USER|NONE [-t <tag>] [-d <description>] [-C] [-P <protocol>] [-H <updatehost>] [-D <updatehostdirectory>] [-m <mountsrc>] [-I] [-a <arch>]

Jailname sounds obvious - the catch is it must start with the main system version number so 10-CURRENT not FREEBSD-10, -u will be SVN and can be left out if you setup SVN as your default, protocol will be svn (this may also be http or svn+ssh but you'll need a login account for ssh access to the official repo), update host will be unless you get fancy and run your own mirror, updatehostdirectory is the svn path to get to what you want. So for a jail based on the current head development we get

cd /usr/local/tinderbox/scripts ./tc createJail -j 10-CURRENT -P svn -H -D base/head -d "FreeBSD 10-CURRENT tinderbox jail"

And for 9-STABLE we get

cd /usr/local/tinderbox/scripts ./tc createJail -j 9-STABLE -P svn -H -D base/stable/9 -d "FreeBSD 9-STABLE tinderbox jail"

So you may notice that the FreeBSD svn setup is a little different than you might expect - they don't use tags or branches the way you expect. Instead the path defines the release tag as such. So you can see that you get 9-stable from base/stable/9 you can also get 9.0-release from base/releng/9.0 or 5.2.1 from base/release/5.2.1 (yes 5.2.1 was the last minor release update) If you want to know the difference between RELEASE and RELENG then read this page. I would say current along with 8 and 9 stable would be sufficient but some may want to add other main releases to their testing list and may need them to find a regression between updates.

At this stage you will find that within /usr/local/tinderbox/jails a folder is created that contains the source and build files for each jail you create. When it is finished there will be a nice tarball of the jails world setup. If you mess around and want to start again then run ./tc rmJail -j my-messed-up-jail (from within tinderbox/scripts) and then remove it's folder within jails. rmJail removes the info from your database but leaves the jail files in place for you - I think there should probably be an option to delete all the files along with the jail definition, note for a suggestion or patch.

Some other options for -D that may interest you are -

base/head base/stable/9 base/releng/9.0 base/stable/8 base/releng/8.2 base/releng/8.1 base/releng/8.0 base/stable/7 base/releng/7.4 base/releng/7.3 base/releng/7.2 base/releng/7.1 base/releng/7.0

Well building the jails will take a few hours, so stay tuned for the next exciting episode.


Enochville Fire's picture

Spot on with this write-up, I rewally think this web site
needs a great deal more attention. I'll probably be returning to see more, thanks for the

VPS Hosting's picture

Awesome post.

Luigi Wewege's picture

You're so awesome! I don't suppose I have read through
anything like that before. So good to find another person with a few unique
thoughts on this subject matter. Really.. many thanks for starting
this up. This site iss one thing that is needed on the
web, someone with a bit of originality!

shirt design's picture

I think this is among the most important info for me. And i'm
glad reading your article. But wanna remark on some general things,
The website style is great, the articles is really nice : D.
Good job, cheers

nitro focus review's picture

For latest news you have to pay a visit internet and on internet I found
this web site as a most excellent website for newest updates.

pool table Assembly nj's picture

What's up to every one, the contents present at this site are genuinely amazing for people experience, well, keep up the nice work fellows.

e-cigs pro vapor's picture

Nice replies in return of this query with solid arguments and describing everything regarding that.

DUI LAWYER's picture

When I originally commented I appear to have clicked on the
-Notify me when new comments are added- checkbox and from now on whenever a comment is added I get
4 emails with the same comment. Is there a way you are able to
remove me from that service? Kudos!

Promax Pump's picture

There is certainly a lot to find out about this subject.
I really like all of the points you made.

Tonye Cole's picture

Hi colleagues, its wonderful article regarding teachingand fully explained, keep
it up alll the time.

email marketing plan's picture

If you don't know something, join an online community, find someone who does, and simply ask.

hydramatrix reviews's picture

This is my first time visit at here and i am really impressed
to read all at one place.

Joe Olujic's picture

Appreciate this post. Let me try it out.

programa para emitir nota fiscal mei's picture

Desculpe minha pressa, mas e por causa do tempo que tenho para implementa-lo sistema.

starfish water's picture

Hello! I know this is somewhat off topic but I was wondering which blog platform are you
using for this site? I'm getting fed up of Wordpress because I've had
problems with hackers and I'm looking at alternatives for another
platform. I would be fantastic if you could point me in the direction of
a good platform.'s picture

You actually make it appear really easy with your presentation but I to find this
topic to be actually one thing that I believe I'd never understand.
It seems too complex and very wide for me. I'm taking a look ahead on your next publish, I'll
attempt to get the grasp of it!'s picture

Precisely what I was searching for, thanks for putting up.

logiciel anti spam forum's picture

Die Zuverlassigkeit wurden wir in unseren Beispielen auf knapp 80% grob schatzen da doch einige Beitrage zu Unrecht im Filter
gelandet sind.

Neutratone's picture

I am truly happy to glance at this website posts which contains
plenty of valuable data, thanks for providing these information.'s picture

Hi, I do think this is an excellent site. I stumbledupon it ;) I am going to revisit
yet again since i have book marked it. Money and freedom is the
greatest way to change, may you be rich and continue to help other people.

new rappers 2016's picture

Heya are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create
my own. Do you require any coding expertise to make your
own blog? Any help would be really appreciated!'s picture

What's Taking place i am new to this, I stumbled upon this I've discovered It absolutely
useful and it has aided me out loads. I hope to give a contribution & aid other customers like its
helped me. Great job.'s picture

What i don't understood is in reality how you're no longer actually much more neatly-appreciated than you may be right now.
You're very intelligent. You know thus significantly in terms of this topic, produced me
in my opinion consider it from so many numerous
angles. Its like women and men don't seem to be
fascinated except it's something to accomplish with Lady gaga!
Your individual stuffs great. Always handle it up!

ngan hang chung cu 69 vu trong phung's picture

I'm not sure why but this site is loading incredibly slow for me.
Is anyone else having this issue or is it a issue on my end?
I'll check back later on and see if the problem still exists.

du an chung cu rivera park

tickle's picture

I know this website presents quality dependent
articles or reviews and other information, is there any other web page which provides these kinds
of things in quality?

summoners war hack's picture

Why people still use to read news papers when in this
technological globe the whole thing is accessible on net?'s picture

Thankfulness to my father who stated to me concerning this website, this web
site is actually remarkable.

Annetta's picture

Pretty! This was a really wonderful post. Thank you for providing
these details.

bet365's picture

I will immediately grab your rss feed as I can't
in finding your e-mail subscription link or e-newsletter service.
Do you have any? Please allow me know in order that I may subscribe.
Thanks.'s picture

Hello would you mind letting me know which hosting company
you're utilizing? I've loaded your blog in 3 completely different internet
browsers and I must say this blog loads a lot quicker then most.
Can you suggest a good web hosting provider at a reasonable price?
Thanks a lot, I appreciate it!

w88's picture

Hello there, I discovered your web site by the use of Google at
the same time as looking for a comparable subject, your
site came up, it seems great. I have bookmarked it in my
google bookmarks.
Hello there, just was aware of your blog thru Google, and found that it's truly informative.
I'm going to watch out for brussels. I'll appreciate
if you happen to proceed this in future.

Numerous folks will likely be benefited out of your writing.

kindle reader's picture

Thanks , I have recently been looking for info about this topic for ages and yours is the best
I have found out till now. However, what about the bottom line?
Are you positive about the supply?

Lose weight Fast's picture

Good article. I'm dealing with some of these issues as well..

The Amazing Race Season 28 Episode 5's picture

Hi there Dear, are you actually visiting this web page daily,
if so after that you will without doubt take nice

e kard prepaid electricity's picture

My developer is trying to persuade me to move to .net from PHP.
I have always disliked the idea because of the expenses.
But he's tryiong none the less. I've been using WordPress on a number of websites for about
a year and am anxious about switching to another platform.
I have heard good things about Is there
a way I can transfer all my wordpress content into it?

Any help would be really appreciated!

Mark Curry MacFarlane Group's picture

A motivating discussion is worth comment. I do think that you
should publish more about this issue, it may not be a taboo subject but usually folks don't speak about such issues.

To the next! All the best!!

chicagoland fireplace &amp; chimney restoration's picture

We stumbled over here different web address and thought I
might as well check things out. I like what I
see so i am just following you. Look forward to looking into your web
page again.

cheap online auto insurance quotes's picture

It is truly a great and helpful piece of info. I'm glad that you
simply shared this useful info with us. Please stay us up to
date like this. Thank you for sharing.

ทางเข้า12bet's picture

Magnificent website. Plenty of helpful info here. I'm sending it to several pals ans additionally sharing in delicious.
And certainly, thanks to your sweat!

m88asia's picture

Very nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts.
In any case I will be subscribing to your rss feed
and I hope you write again soon!

how to make money online's picture

Fantastic beat ! I would like to apprentice while you amend your
web site, how could i subscribe for a blog website? The account helped me a applicable deal.
I were a little bit acquainted of this your broadcast offered bright clear concept

link vao 188bet's picture

Hey very nice site!! Guy .. Beautiful .. Wonderful .. I will bookmark your site
and take the feeds additionally? I'm glad to seek out
a lot of helpful information here in the post, we'd like work
out extra techniques on this regard, thanks for sharing.
. . . . .

ทะเบียนสวย's picture

You could definitely see your expertise in the work you write.
The world hopes for more passionate writers such as you who aren't afraid to mention how they believe.
All the time follow your heart.'s picture

Hi! Someone in my Facebook group shared this website with us so I came to
give it a look. I'm definitely enjoying the information. I'm book-marking and will be tweeting this to my followers!
Great blog and fantastic design.

first android's picture

You're so awesome! I do not suppose I've read something like this before.
So great to find somebody with a few genuine thoughts on this subject
matter. Really.. many thanks for starting this up.
This web site is one thing that is required on the web, someone with a bit of originality!'s picture

My spouse and I absolutely love your blog and find many of your post's to be just
what I'm looking for. Would you offer guest writers to write content available
for you? I wouldn't mind writing a post or elaborating on a number
of the subjects you write concerning here. Again, awesome weblog!

Check out my web-site; identity protection equifax -,

Parking Sensors's picture

Hello there! This is my first visit to your blog!
We are a collection of volunteers and starting
a new initiative in a community in the same niche.
Your blog provided us useful information to work on. You have done a outstanding job!

m88 casino's picture

I think what you posted made a lot of sense. However, think on this, suppose you added
a little information? I am not suggesting your information isn't solid., however suppose you
added a post title to maybe get a person's attention? I
mean Add new comment | is kinda vanilla. You should glance at Yahoo's home page and see how they create
news headlines to get people to open the links. You might add a related video or a picture or
two to get people interested about everything've
written. Just my opinion, it would make your posts
a little livelier.

michelle obama's picture

This article is truly a fastidious one it helps new the
web visitors, who are wishing in favor of blogging.'s picture

If some one wishes to be updated with latest technologies
then he must be pay a visit this web page and be up to date all the time.


Add new comment