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.


play doh's picture

Hello, I want to subscribe for this weblog to obtain most recent
updates, thus where can i do it please help out.

Office Cleaning West Sussex's picture

hey there and thank you for your info - I
have definitely picked up anything new from right
here. I did however expertise a few technical points using
this site, since I experienced to reload the site lots of times previous
to I could get it to load correctly. I had been wondering if your
web host is OK? Not that I'm complaining, but sluggish loading
instances times will often affect your placement in google and
could damage your quality score if ads and marketing with Adwords.
Well I'm adding this RSS to my email and can look out for a
lot more of your respective intriguing content. Make sure you update this again very

Kristopher's picture

Great article! That is the kind of info that should be shared across the internet.
Shame on the seek engines for now not positioning this submit upper!
Come on over and consult with my site . Thank you =)

best college florida's picture

Portland plays host to hundreds of chiropractors and multiple schools where one can learn to become a chiropractor but the important question for the average
person is if the treatment actually works. Some people enjoy the addition of massage therapy
throughout their chiropractic visits. Eric Robertson, an assistant
professor at Regis University, said he and his colleagues have come across more Cross - Fit patients in their physical-therapy
practices during the past year.

Mike's picture

People commonly ask me if chiropractor care is safe. Checking for the qualification of a
practitioner will be a good move and you can do this by
asking around the community where he or she is practicing.
Chiropractors are one of those types of medical professionals
that people like to talk about.

mot so dien dan rao vat's picture

I do believe all of the ideas you have presented in your post.
They are very convincing and will definitely work. Still, the posts are too quick for starters.
May you please extend them a bit from subsequent time? Thanks
for the post.

Michele Frazier's picture

This is my first time pay a quick visit at here and i am genuinely impressed to read everthing aat one place.

Dominick's picture

Our drug rehabilitation centers assist you recognize just how
and also why you have actually ended up being dependented on drugs.

Feel free to surf to my site alcohol addiction treatment (Dominick)'s picture

Though Microsoft keeps on identifying and adding websites to its Compatibility
List, it does not include all incompatible websites. But according to publishing form of language, article is a
piece of nonfiction prose that is an independent part of a publication. When you
provide answers you give them what they wanted.'s picture

Our australian web design companies ( development team specialises in creating
complicated, receptive sites powered by open resource Material Administration Systems such as WordPress.

Pure Forskolin's picture

First of all I would like to say excellent blog!
I had a quick question that I'd like to ask if you don't mind.
I was curious to find out how you center yourself and clear
your head before writing. I've had trouble clearing my mind
in getting my ideas out there. I truly do take pleasure in writing but it just seems like the first
10 to 15 minutes are usually wasted simply just trying to
figure out how to begin. Any ideas or hints? Cheers!

Android game's picture

Thatt is iff we are to believe the hype surrounding the
laumch of the internet android tablet lwft andd right.
I think that's just aan excuse to the problem,
a massive use of drones in the future can surely decrease the
casualty of war, but they bombs civilians more
often recently years, so let's just regard them more sensible, we need mkre
tiime to update AI of our drones or the accuracy of our weapons.
You can flcus specifically on people who need the goods or services you
provide and those living in our city.

celebrity cleanse reviews's picture

Hello, just wanted to say, I enjoyed this article.
It was inspiring. Keep on posting!

pure green coffee's picture

great issues altogether, you just received a brand new
reader. What would you recommend about your post that you just made some days in the past?
Any certain?

Richard Harborne's picture

I've been browsing online more than 2 hours today, yet I never found any interesting article like yours.
It's pretty worth enough for me. In my opinion, if all web owners and bloggers made good
content as you did, the net will be much more useful than ever before.'s picture

The Author is a professional writer, presently writing for ELK Grove Chiropractor.
When car smashes at high speed, a potential force is exerted on the
neck and spine of the victims. Chiropractors only supply medical assistance
to people with problems on their musculoskeletal

juan gonzalo angel restrepo's picture

What's up, I read your blogs on a regular basis.
Your humoristic style is witty, keep it up!'s picture

Botox injections are not only used for cosmetic purposes though.
When the medical staff buys Botox it comes to them in a frozen powder form.
There are people who face the problem of excessive sweating
under the armpit.

Michele Frazier's picture

Hi there, I discovered your site via Google even as
searching for a similar matter, your site came up, it appears good.

I've bookmarked it in my google bookmarks.
Hello there, simply became alert to your weblog via Google, and found that iit is
really informative. I'm going to watch out for brussels.
I will appreciate in the event you continue this in future.
Numerous people shall be benefited from your writing. Cheers!

Gary Huffman's picture

Do you have a spam problem on this website; I also am
a blogger, and I was wanting to know your situation; we have created some nice practices and we are looking to
trade strategies with others, be sure to shoot me an email if interested.

porno,'s picture

These are genuinely impressive ideas in on the topic of blogging.
You have touched some nice things here. Any way keep up wrinting.

Emilio's picture

For more detailed information on AV Video Morpher, please visit.
You can save files in MPEG format for You - Tube use, and you'll need to have Java on your computer.
All the well-filmed movie clips in the world does you no good without a highly effective video
modifying application and it's a good plan to know something
about how all of the different items on the market work.

Lee Trotman's picture

Howdy! I could have sworn I've been to this website before but after
going through many of the posts I realized it's new to me. Regardless, I'm
certainly happy I found it and I'll be bookmarking it
and checking back often!

Clash of Clans hack gratuit's picture

Les gens spectaculaires verifier serve un guerre de ouvrage des clans
de piratage encore cette hacks ont enroule au regard de une big
dure a decouvrir.

how to use instagram for android phones's picture

hey there and thank you for your information - I've
definitely picked up anything new from right here. I did however expertise a few technical issues using this site, as I experienced to reload the
website lots of times previous to I could get it to load correctly.
I had been wondering if your hosting is OK? Not that I'm complaining, but slow loading instances times will sometimes affect your placement in google and can damage your high-quality
score if advertising and marketing with Adwords. Anyway I'm adding this RSS to my e-mail
and can look out for a lot more of your respective interesting content.
Make sure you update this again very soon.

michele frazier's picture

Heya i'm for the first time here. I found this board and I in finding It truly useful &
it helped me out a lot. I hope to offer one thing again and help others
like you aided me.

Home For Life's picture

Very nice post. I just stumbled upon your weblog and wanted to
say that I have really enjoyed browsing your blog posts.
After all I'll be subscribing to your feed and I hope you write again very soon!'s picture

This website was... how do I say it? Relevant!! Finally I have found something which helped me.

Appreciate it!

adderin brain health's picture

Greetings from Colorado! I'm bored to tears at work so
I decided to browse your blog on my iphone during lunch break.
I really like the info you provide here and can't wait
to take a look when I get home. I'm shocked at how fast your blog loaded on my cell phone
.. I'm not even using WIFI, just 3G .. Anyhow,
great site!

obat cialis's picture

hello!,I love your writing very much! share we keep up a correspondence extra about your post
on AOL? I need a specialist on this house to solve my problem.
Maybe that is you! Having a look forward to look you.

Oxytokin Cream's picture

What's up everybody, here every person is sharing these know-how,
so it's pleasant to read this webpage, and I used to visit this web site everyday.

custom screen printing's picture

Nice blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple tweeks would really make my blog stand
out. Please let me know where you got your theme.
Thanks a lot

Jim's picture

Beware of a girl who doesn't like hanging out with people
of the same sex. Many sexual predators choose to use online dating sites as a tool for their perversions.

Your address, email, phone number etc should not be relinquished unless you are completely
confident that the person has genuine dating interests.

Best Vitamins For Skin's picture

Greetings! Very helpful advice in this particular article!

It is the little changes that make the largest changes.
Thanks a lot for sharing!

pohlschroeder's picture

I'm excited to find this site. I wanted to thank you for
ones time for this particularly wonderful read!! I definitely loved every bit of it and i also have you saved as a favorite to see new things on your site.

porno's picture

Why people still make use of to read news papers when in this technological
globe all is available on web?

resvibrant serum reviews's picture

Nice answers in return of this difficulty with firm arguments and
explaining the whole thing regarding that.

renew cleanse's picture

I think the admin of this web page is truly
working hard for his web site, for the reason that
here every stuff is quality based data.

asdf's picture

Very descriptive article, I enjoyed that bit. Will there be a part

obat pembesar payudara's picture

Hello to all, how is everything, I think every one is
getting more from this site, and your views are pleasant designed for new users.

remedios caseros para quitar las quemaduras del sol en la 's picture

Quality posts is the key to invite the viewers to pay a quick visit the
web site, that's what this web site is providing.

Home For Life Animal Sanctuary's picture

Excellent way of explaining, and fastidious post to take information on the
topic of my presentation topic, which i am going to convey in academy.

porno's picture

Pretty element of content. I just stumbled upon your website and in accession capital to
claim that I get in fact loved account your blog posts.
Any way I'll be subscribing to your feeds and even I fulfillment you get admission to persistently quickly.

Adderin's picture

Very nice post. I just stumbled upon your weblog and wanted
to say that I've really enjoyed browsing your blog posts.
After all I'll be subscribing to your feed and I hope you
write again very soon!

Linking Online Cash Reviews's picture

This page definitely has all the information I wanted about this
subject and didn't know who to ask.

Yalmeh Reviews's picture

You are so awesome! I do not think I've truly read anything like that before.
So wonderful to find someone with a few genuine thoughts on this subject.
Really.. many thanks for starting this up. This site is something
that is required on the web, someone with a little originality!

Wade's picture

It is much more engaging than a Power - Point could
ever be. To deal with the problem of headless servers, IT professionals in the past would typically turn to KVM switches
that were either rack mounted or standalone, or
intricate software. My video resolution problem was solved immediately.

payday at home scam's picture

You have made some really good points there. I looked
on the internet for more info about the issue
and found most people will go along with your views on this website.

Maldives holidays's picture

Hey very interesting blog!

Truskin Naturals's picture

I was suggested this blog through my cousin. I am no longer positive
whether or not this post is written by him as nobody else recognise such
exact approximately my problem. You're incredible! Thanks!


Add new comment