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 svn.freebsd.org 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 svn.freebsd.org -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 svn.freebsd.org -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.


1083 comments

cool hoodies for men's picture

When I originally commented I clicked the "Notify me when new comments are added" checkbox
and now each time a comment is added I get three e-mails with the
same comment. Is there any way you can remove me from that service?
Many thanks!

www.ccsh.ptc.edu.tw's picture

Wir haben einen Online-Broker-Vergleich durchgefuhrt und empfehlen den Depot Testsieger DAB Bank fur den Aktienhandel.

my web-site - aktiendepot kostenlos (www.ccsh.ptc.edu.tw)

Phoenix DUI attorney's picture

I 'd enjoy to see a post that took care of the highlighted portion of
Ms. Rodger's piece, as it's there that she specifies soome of the
techniques that lawyers consistently take part in that
offer them a bad name.

Feel free to surf to my homepage :: Phoenix DUI attorney

brodyblacknews.alanrickmanfan.org's picture

Therefore, have patience and meet a chiropractor with right expectations.
However, looking for a chiropractor must be done with great care
and research as treatments usually involve manipulating the spine.
To ensure that patients have a certain specific problem, diagnostic tests
are given.

My Home's picture

Thanks for the good writeup. It in fact used to be a amusement account it.
Glance advanced to far added agreeable from you! However, how could
we keep in touch?

testo force muscle's picture

I was able to find good info from your articles.

Kristofer's picture

Here are Vapir Vaporizer Reviews which are like that; vapir vaporizer
is extremely efficient and helpful on each level.
It produces the precise helpful ingredients for your health with none harmful effects.
This vaporizer can also be used for several other purposes such as
that of an herb vaporizer for inhaling the healthy ingredients of herbs for curing certain diseases.

Loan's picture

It's an awesome piece of writing for all the internet people;
they will take advantage from it I am sure.

make own shirt's picture

Thanks for another great post. The place else could anybody get that kind of
info in such an ideal manner of writing? I have a presentation next week, and I'm on the look for such info.

design tee shirts's picture

Hi there, I found your website by way of Google while looking for a comparable matter,
your web site came up, it appears to be like
great. I've bookmarked it in my google bookmarks.

Hi there, just was alert to your blog via Google, and found that it
is truly informative. I'm going to be careful
for brussels. I will be grateful in the event you continue this in future.
Lots of folks will likely be benefited out of
your writing. Cheers!

dien dan rao vat vung tau's picture

Hi! This post couldn't 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
write-up to him. Pretty sure he will have a good read. Thanks
for sharing!

chiropractic chairs's picture

) Palmer, was 1 of his students and dedicated to promote chiropractic which he did taking more than the helm in 1906.

In addition, they will help to treat these imbalances by massaging the muscles that surround
the spine, and also using acupressure to help correct imbalances
in the central nervous system. Remember that there quite a lot of misconceptions floating around regarding
the subject and misconceptions, especially about health, can be quite critical.

miracle bust's picture

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

nonetheless, you command get bought an edginess over that you wish be delivering the following.

unwell unquestionably come further formerly again as exactly the same nearly very often inside case you
shield this hike.

my blog's picture

Thanks very nice blog!

low APR car finance's picture

What's up, I desire to subscribe for this web site to take latest updates, thus where
can i do it please help.

http://www.weeklyrecord.net/guestbook/index.php's picture

An impressive share! I have just forwarded this onto a coworker who had been conducting a little research
on this. And he actually ordered me lunch due to
the fact that I stumbled upon it for him... lol. So allow me
to reword this.... Thanks for the meal!! But
yeah, thanks for spending some time to talk about
this issue here on your web site.

Cheri's picture

Thanks in favor of sharing such a good thinking,
piece of writing is pleasant, thats why i have read it completely

Que Caro Estoy Pagando's picture

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

usmmp green screen's picture

Hi! Quick question that's entirely off topic.
Do you know how to make your site mobile friendly?
My web site looks weird when browsing from my iphone.
I'm trying to find a theme or plugin that might be able to fix this problem.
If you have any recommendations, please share. Many thanks!

dealers solutions group richie bello's picture

I'll right away grab your rss as I can't to find your email subscription hyperlink or newsletter
service. Do you've any? Please permit me realize so that I
may subscribe. Thanks.

usmmp green screen's picture

Having read this I thought it was extremely enlightening.

I appreciate you spending some time and effort to put this short
article together. I once again find myself personally spending way too much time both reading and posting comments.
But so what, it was still worth it!

kids coloring book's picture

Pretty nice post. I just stumbled upon your blog and wished to
say that I have really enjoyed surfing around your blog
posts. After all I'll be subscribing to your rss feed and I hope you write again very soon!

location chapiteau's picture

Great delivery. Great arguments. Keep up the amazing spirit.

Renta de Inflables en Toluca's picture

What's up to every one, the contents present at this web page are actually awesome for people
experience, well, keep up the nice work fellows.

Karl Jobst's picture

It's remarkable to pay a quick visit this
web page and reading the views of all mates regarding this post,
while I am also zealous of getting experience.

how to get more Youtube views's picture

I desired to make an effort to state my gratitude towards this amazing website and you!

Caring it!

John Ross Jesensky's picture

What's up it's me, I am also visiting this web site regularly, this site is actually
fastidious and the visitors are truly sharing nice thoughts.

clash of kings hack apk for android's picture

Make use of Leaders Compromise Tool's Clash to uncover
all facets of the game, RULE and start to become a push to be reckoned with-in this game.

Weight Loss Review Sites's picture

Inspiring quest there. What occurred after? Thanks!

dien dan rao vat bat dong san's picture

I am regular visitor, how are you everybody? This paragraph posted at this website is
in fact pleasant.

bbw's picture

Hi! I just wanted to ask if you ever have any trouble with
hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no back up.
Do you have any methods to stop hackers?

Joe Olujic's picture

Hi, i feel that i saw you visited my website thus i came to go back the
favor?.I'm trying to to find things to improve my site!I suppose its ok to use some of your concepts!!

bola terpercaya's picture

The acquisition of Nex - Tel was considered one
of the worst acquisitions ever and now, with Verizon pushing 4G LTE, Sprint is left spinning
as to which direction they want to take. Offer web-based psychotherapies as first-line
interventions for depression and anxiety (and probably insomnia), as recommended by the
UK's National Institute for Health and Care Excellence.
The mind needs to perform typically and continually at all times.

Wolf Grey 3s's picture

Yesterday, while I was at work, my sister stole my iPad and tested to see
if it can survive a twenty five foot drop, just so
she can be a youtube sensation. My iPad is now broken and she has 83 views.
I know this is totally off topic but I had to share it with someone!

weights gloves's picture

Undoubtedly, the internet is among the most preferred market
places where sellers and buyers meet. So, you are not required
to move from one dealer to another for ideal model. This is a rear-wheel drive car, and that means that unlike front-wheel
drive cars - which typically can't be used much beyond B class - the
MR2 can be upgraded all the way to the top of A - although
going into S class is probably a bit much.

seo sydney's picture

But iff you know how to do Search Engine Optimization and your
internet site haas content that is valuagle and fascinating, then guests
will come.

my page :: seo sydney

cockatiels's picture

If one of these men had been a leader, he'd have spoken out against this
bill. You should also keep in mind that in the cage
you will put food bowls, toys and other accessories.
Australian Birds were introduced in Europe only about 200 years ago.

truedirtylaundry.com's picture

Therefore, have patience and meet a chiropractor with
right expectations. In addition, they will help to treat these imbalances by massaging
the muscles that surround the spine, and
also using acupressure to help correct imbalances in the central nervous system.
Chiropractors are one of those types of medical professionals that people like to talk about.

Mai'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.
In addition, they will help to treat these imbalances by massaging the muscles that surround the spine, and also using acupressure to help correct imbalances in the central nervous system.
On his initial pay a visit to, the Chiropractor observed a slight spinal issue in Jonny
- in the location linked with asthma.

Leonel's picture

So let's ask why this is the Mercedes-Benz of vaporizers.
It is not necessary that only smoking can give you
a different feeling, a vaporizer can do that too. Vaporizers enable you to have healthier lungs compared to smoking, without the risk of cancer or any other respiratory disease.

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
soon.

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)

http://www.krutu.net/'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.

http://linkage.hkhosting.com's picture

Our australian web design companies (http://linkage.hkhosting.com) development team specialises in creating
complicated, receptive sites powered by open resource Material Administration Systems such as WordPress.

Pages

Add new comment