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.


vitayouth's picture

Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter
and said "You can hear the ocean if you put this to your ear." She put the shell to her ear and screamed.
There was a hermit crab inside and it pinched her ear. She never wants
to go back! LoL I know this is entirely off topic
but I had to tell someone!

Age Renew Review's picture

This piece of writing is really a nice one it assists new the web people, who are wishing for blogging.

Wordpress Urgent Development's picture

Hi would you mind stating which blog platform you're using?

I'm planning to start my own blog soon but I'm having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your layout seems different then most blogs and I'm looking for something unique.
P.S My apologies for getting off-topic but I had to ask!'s picture

You get paid on the number of 'clicks' to these Ads
by your site-visitors. You certainly get the best web design output which brings considerable returns
to your business. Our inventive team of specialists includes a thorough understanding of the overall culture and
may influence totally different subjects and may style
logos that really represent your company and conveys the
proper message.

Lorella Skin Cream Reviews's picture

Hey would you mind letting me know which hosting
company you're using? I've loaded your blog in 3 completely different web browsers and I must say this blog loads a lot faster then most.
Can you recommend a good internet hosting provider at a fair price?
Thank you, I appreciate it!

slimdrene's picture

As the admin of this website is working, no hesitation very soon it will
be well-known, due to its feature contents.

print t shirt's picture

I every time spent my half an hour to read this web
site's articles or reviews all the time along with a cup of coffee.

ultra trim 350 reviews's picture

Thanks for any other informative site. Where else may just I get that type of
info written in such an ideal manner? I've a mission that I'm just now working
on, and I have been on the glance out for such info.

foot doctors's picture

Howdy! I know this is kind of off-topic but I needed to ask.
Does managing a well-established blog such as yours require a large amount of work?
I am brand new to operating a blog however I do write in my journal daily.

I'd like to start a blog so I can share my own experience and feelings online.
Please let me know if you have any kind of recommendations or tips
for brand new aspiring blog owners. Appreciate it!

table easily's picture

I constantly spent my half an hour to read this blog's articles all the time along with a mug of coffee.

life garcinia's picture

I think the admin of this website is truly working hard in support
of his web page, for the reason that here every information is quality based material.

tickle's picture

Hmm is anyone else experiencing problems with the pictures on this blog loading?
I'm trying to figure out if its a problem on my
end or if it's the blog. Any responses would be greatly appreciated.

elliskin cream's picture

This is really interesting, You're a very skilled blogger.
I have joined your rss feed and look forward to seeking more
of your magnificent post. Also, I've shared your web site in my
social networks!

meditation in austin's picture

Link exchange is nothing else however it is simply placing the other person's weblog link on your page at appropriate place
and other person will also do similar in favor of you.

jacked muscle x's picture

Good post. I learn something totally new and challenging on websites I stumbleupon every
day. It's always useful to read content from other
writers and practice something from other web sites.

True Derma Review's picture

I was curious if you ever considered changing the page
layout of your site? Its very well written; I love what youve got to
say. But maybe you could a little more in the way of content so people could
connect with it better. Youve got an awful lot of text for only having one or 2 pictures.

Maybe you could space it out better?

8 ball Pool Hack's picture

I think the admin of this website is genuinely working
hard for his website, for the reason that here every stuff is quality based data.

whitening underarm's picture

I wadz aondering if you ver considered changing the page ayout of your blog?
Its very well written; I love what youve got to say.
But maybe yoou could a little moee in the way of conmtent so people could connect with it better.
Youve got an awful lot of text for only having 1 oog twwo images.
Maybe youu could space it out better?

minnesota criminal attorney's picture

Just wish to say your article is as amazing. The clearness in your post is simply great and i
can assume you are an expert on this subject. Fine with your permission allow me to
grab your RSS feed to keep updated with forthcoming post.
Thanks a million and please carry on the gratifying work.

Cash1234 System's picture

Hi there to all, how is everything, I think every one is getting more from this web site, and
your views are nice designed for new visitors.

Flawless Youth Reviews's picture

I think this is among the most significant information for me.
And i am glad reading your article. But should remark on some general things, The web site style is wonderful, the articles is really great :
D. Good job, cheers's picture

PTs may need to be physically strong and able to withstand long hours in which they stand, crouch,
and lift heavy medical equipment and even patients. 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.
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.

Eugenia's picture

Expand them only when you need them so that you get ample of workspace for your images or videos.
I also use After Effects and Photoshop in my editing so using all those programs from one company which is Adobe makes linking from one
software to the other really easy. In that way, they will be brought to your video and do some likes and give some comments.

Klinik Green Angelica's picture

Good post! We will be linking to this particularly great post
on our website. Keep up the great writing.

Bunny Rabbit funny's picture

Hey there! This post could not be written any better!
Reading through this post reminds me of my good old room mate!

He always kept chatting about this. I will forward this post to him.

Fairly certain he will have a good read. Thanks for sharing!

Roblox Robux Hack's picture

Hey there! Do you know if they make any plugins to help with SEO?
I'm trying to get my blog to rank for some targeted keywords but I'm not seeing
very good gains. If you know of any please share.
Many thanks!

Icasnetwork's picture

There iis often some misconception as too the type of accountant needed, or indeed tht there are more
than one type and below are just two of the mwin types of Chartered accountants there are:
. Roger Buis - Roger & Pauline Buis, the caretakers of OTTO the Helicopter were awarded the Art Scholl Showmansship Award this year at the abnual ICAS convention. The goal of ICAS and The Project on Student Debt is to bring more transparency to the true cost of a
college edufation and to make higher edycation mmore affordable.'s picture

Every weekend i used to pay a visit this website, because i wish for enjoyment, as this this website conations genuinely
good funny data too.'s picture

Los niveles de pH acido del estomago puede ser perjudicado por la cantidad de alimentos
que come, la infeccion y el estres.

make money online ways's picture

I loved as much as you'll receive carried out right here.
The sketch is tasteful, your authored subject matter stylish.

nonetheless, you command get bought an nervousness over that you wish
be delivering the following. unwell unquestionably come further
formerly again since exactly the same nearly a lot often inside case you shield this

Brandi Rowell's picture

Howdy just wanted to give you a quick heads
up and let you know a few of the pictures aren't loading
properly. I'm not sure why but I think its a linking issue.

I've tried it in two different browsers and both show the
same results.

Feel free to visit my site :: Brandi Rowell

sikh girl names's picture

Thanks for sharing your thoughts about baby names. Regards

Realash serum's picture

Rzesy uwazane sa za najwiekszy atut pan.

Odzywka do rzes REALASH to niekwestionowany nr 1
na swiecie wsrod odzywek do rzes - sprawdzony przez doglebne panie, przebadany przez dermatologow, probowany przez blogerki z calego swiata.

Realash do rzas to odzywka wszech czasow, ktore sprawi,
iz Twoje rzesy stana sie dlugie, grube i bardzo
seksowne, a Ty bedziesz uwodzic spojrzeniem!

Tonye Cole's picture

Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts.
Any way I will be subscribing to your feeds and even I achievement you access consistently quickly.

Kimra Bettasso's picture

Hey very nice blog!! Guy .. Beautiful ..
Wonderful .. I'll bookmark your web site and take the feeds additionally?
I'm happy to find so many useful info here within the post, we
need work out extra techniques in this regard, thanks for sharing.
. . . . .

Marine Essentials's picture

Unquestionably consider that which you said. Your favourite reason appeared to
be at the web the simplest factor to understand of.

I say to you, I certainly get annoyed even as other people consider concerns that they
just don't recognise about. You managed to hit the nail upon the top
as neatly as outlined out the whole thing without having side effect ,
folks could take a signal. Will probably be back to get more.

Thanks's picture

My coder 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 numerous websites for about
a year and am nervous about switching to another platform.
I have heard great things about

Is there a way I can import all my wordpress content into it?
Any help would be greatly appreciated!

Realash serum's picture

Rzesy uwazane sa za najwiekszy atut pan.

Odzywka do rzes REALASH to niekwestionowany nr 1
na swiecie wsrod odzywek do rzes - sprawdzony przez doglebne panie, przebadany przez dermatologow, probowany przez blogerki z calego swiata.

Realash do rzas to odzywka wszech czasow, ktore sprawi,
iz Twoje rzesy stana sie dlugie, grube i bardzo
seksowne, a Ty bedziesz uwodzic spojrzeniem!

porn videos's picture

We are a gaggle of volunteers and starting a new scheme in our community.
Your web site provided us with helpful information to work on. You have performed a formidable
process and our entire neighborhood shall be grateful
to you.

My Internet Success Coach Scam's picture

Very quickly this site will be famous among all blogging visitors, due to it's good articles or reviews

hungry shark evolution cheat engine 6.4's picture

This is the perfect website to download free Hungry Shark Evolution Android APK hack instrument!

powered's picture

Hello to every one, the contents existing at this site are really amazing
for people experience, well, keep up the good work fellows.

What is the safest car seat's picture

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

Maldives holidays's picture

My partner and I stumbled over here coming from a different
page and thought I should check things out. I like what
I see so now i am following you. Look forward to finding out about your web page repeatedly.

Bioderm RX Reviews's picture

Hi there to all, how is everything, I think every one is getting more from this web site,
and your views are fastidious in support of
new users.

custom droid's picture

Does your website have a contact page? I'm having a tough time locating it but, I'd like to send you an e-mail.

I've got some ideas for your blog you might be interested in hearing.

Either way, great site and I look forward to seeing it improve over time.

free html email templates's picture

Undeniably consider that that you stated. Your favourite justification seemed to be
at the web the easiest factor to bear in mind of. I say to
you, I certainly get irked at the same time as other people
consider worries that they just don't know about.
You controlled to hit the nail upon the top and also outlined out the whole thing without
having side-effects , other people could take a signal. Will likely
be again to get more. Thanks's picture

Thanks for any other informative blog. The place
else may just I am getting that kind of information written in such an ideal approach?
I've a venture that I am just now operating on, and I've been on the glance out for such information.

security systems denver's picture

Fastidious respond in return of this question with genuine arguments and describing the whole thing regarding that.

identity protection and credit monitoring services's picture

Incredible story there. What occurred after? Thanks!

My website :: identity protection and credit monitoring services


Add new comment