Adventures in tinderbox 2

If you stumbled into this post first you may want to have a look over this previous post as we are building upon steps covered there.

So far we have got our world binaries built and these are the foundation of the environments we setup for testing our port builds. From here we create a tinderbox build. Within tinderbox a build refers to a combination of world binaries (the tinderbox jails we setup before) and a version of the ports files. It is probably a rare case but it would appear that you could setup a build using say netbsd pkgsrc system or similar, the most likely alternative to the official ports system would be an internal development branch of the ports source.

The first step is to setup the ports files to be used. A cvs checkout is shown in the docs and you could adjust the svn usage from yesterday if you have your own local svn repo (official ports are still in cvs at this point). The examples in the docs show a source checkout that is unique to your tinderbox setup. I think using the system installed ports will be enough for what I want and will bypass the confusion of three copies of the ports files. Personally I use portsnap to update my system ports tree and create or update a port there to test and develop it. Then I have a copy within my home folder that is an svn checkout from my redports account that I transfer changes to that I want to keep, and commit as desired from there. While my personal folder is just the ports I make changes to, I don't want a third copy just for test builds, so what I will use here is a user defined update method that will run portsnap anytime I want to update the ports tree. We have two options here, 1. create a portsTree with no update method leaving us to run portsnap manually as desired. 2. create a portsTree with a user update method. The first option is straight forward and acceptable for most but I want to look at option 2 here.

Reading the docs you may jump straight in and use a command like cd /usr/local/tinderbox/scripts ./tc createPortsTree -p FreeBSD -u USER -m /usr/ports and get errors and no ports tree setup. The docs don't help here so I went digging through the scripts and found the answer. When you create a portstree with a user defined update method it looks for the update script when it is first setup. The solution is simple. If we are creating a portstree called FreeBSD then we create a file in tinderbox/portstrees/FreeBSD and call it and for this example I want it to run portsnap so I use the following contents - #!/bin/sh portsnap fetch update Then run the createPortsTree command with the -u USER option. Simple and a good basis of any custom update you want to setup. You could even use this to run portsnap and then merge files from your personal ports repo automatically. This setup script is run with the command ./tc updatePortsTree

You may also want to share your local distfiles with tinderbox. Pretty easy and the one setup is shared across all portstree configs -

cd /usr/local/tinderbox/scripts ./tc configDistfile -c /usr/ports/distfiles

Now that we have our jails and portsTree setup it is time for the build. Remember a tinderbox build is a combination of a specific jail and portsTree and is straight forward -

cd /usr/local/tinderbox/scripts ./tc createBuild -b 10-CURRENT-clang -j 10-CURRENT -p FreeBSD -d "10-CURRENT building with clang"

The name I used there may raise a few questions but first lets consider what variations of builds we want to use.

The aim of using tinderbox is to test building under a variety of conditions, in this case primarily different system versions. To that end we started by creating 2 jails with different versions of world binaries, you may have extended that number and I encourage you to do so but I use two in these examples. From FreeBSD 9.0 we are moving away from a  dependency on gcc as the main compiler and now include clang within the base system. Being in the early transition of this is a bit awkward as not all ports build with the old gcc v4.2 that is included with base and not all ports build with clang either. Well ports changes need to be tested with each compiler so we may get a full ports build happening on any system install. One option we have is to specify what version of gcc is used to build our port. Easy till we get linking issues with something like boost installed with gcc42 and not linking with a gcc46 built port (that is my early guess and may not be the location of a solution). So anyway I am suggesting that a number of builds are setup to test building with clang as well as gcc. This will only apply to 9.0 and higher, 8.3 has just entered beta1 and doesn't appear to include clang. The other question you may have is that I only put clang in the name, how does it know to build with clang? It doesn't yet - that comes in a minute.

Well using the two jails we built yesterday lets setup the builds -

cd /usr/local/tinderbox/scripts ./tc createBuild -b 10-CURRENT-clang -j 10-CURRENT -p FreeBSD -d "10-CURRENT building with clang" ./tc createBuild -b 10-CURRENT-gcc -j 10-CURRENT -p FreeBSD -d "10-CURRENT building with gcc" ./tc createBuild -b 9-STABLE-clang -j 9-STABLE -p FreeBSD -d "9-STABLE building with clang" ./tc createBuild -b 9-STABLE-gcc -j 9-STABLE -p FreeBSD -d "9-STABLE building with gcc"

Now we have four builds setup to test our ports in. As I suggested before you should also consider having at least an 8-STABLE jail setup and maybe even a 7-STABLE one as well if not more. As clang is not included in 7 or 8 there is no need to setup two builds for each, I would still use gcc in the build name though.

At this point you will find a few directories have been created. The first you will probably see is tinderbox/{BUILDNAME} so if your following along you will have four there corresponding to each build you setup. The next ones are inside tinderbox/builds and have the same names as the four we just looked at. The dirs inside builds contain a Makefile with all the package  dependencies and although you may think make.0 and make.1 are makefiles they are in fact logs containing the log of the last compile done, each port compile is run in two phases, and a more than likely empty duds file. The top level dirs are where all the work is done. For each port you make, tinderbox will extract the tarball found in the corresponding jail build and mount the various points needed for portstrees/distfiles/devfs/procfs. From that you can work out that each build starts up in a unique environment (it uses chroot) completely isolated for your test make. Each environment is cleaned up after each test make and the log files will include files left behind if you get your pkg-plist incorrect.

Now to configuring the compiler to use. When you first test making your port and look at a log file you may notice that the timestamp at the start is all wrong. That will be a wrong timezone setting and gets us close to the compiler settings. First lets set the timezone, so edit the file tinderbox/scripts/etc/env/GLOBAL and add the following line (adjusted to match your timezone of course)

export TZ=Australia/Adelaide

You can see that it uses a bash style environment setting. Within the same folder we want to create a config file for each build we setup using the name build.{BUILDNAME} and have it contain the CC options that we wish to use. Before you go thinking about copying all your /etc/make.conf settings consider the purpose of this - testing against a minimum system config to ensure your port is as compatible as possible. Those with a custom edited make.conf need to handle their own port build conflicts with the options they want to use. So here all we want to do is set the compiler to use. To make this easy let's make a script, I will put this inside tinderbox/scripts and lets call it

#!/bin/sh cd /usr/local/tinderbox/scripts/etc/env for BNAME in `ls ../../../builds | grep clang` do if [ ! -e build.$BNAME ] then cat > build.$BNAME <<CCOPTIONS export CC=clang export CXX=clang++ export CPP=clang-cpp CCOPTIONS fi done for BNAME in `ls ../../../builds | grep gcc` do if [ ! -e build.$BNAME ] then cat > build.$BNAME <<CCOPTIONS export CC=gcc export CXX=g++ export CPP=cpp CCOPTIONS fi done

Pretty straight forward if you know some shell scripting, if it's a bit beyond what you know it simply gets a list of dirs from within builds and outputs three lines to a corresponding config file for each one. The script won't touch files that already exist, so delete them if you want a clean slate or adjust if you want to add to existing files. The first loop uses grep to get clang named builds the second gcc. Is it overkill specifying gcc for the gcc builds - yep - but it keeps things consistent and also gets the CC setting output to the log file to remove any confusion when looking over them later, or more to the point when you get someone else to look over them for some help.

Now your all setup to use tinderbox to test your ports building. While the docs say you can do an adhoc build with just the tinderbuild command I find that not to be the case, the two command you use are

cd /usr/local/tinderbox/scripts ./tc addPort -b 10-CURRENT-clang -d graphics/blender ./tc tinderbuild -nullfs -b 10-CURRENT-clang graphics/blender

The first time you build a port it may take a while - it will build each  dependency needed, basically running make package-recursive for your port. Next time it will just pkg_add each dependancy and build the port you ask it to. The -nullfs option is needed if you setup the nullfs mount for portstree as shown above (or maybe it is for distfiles?). This adds some more dirs for you as well.

tinderbox/packages/{BUILDNAME} will contain all the packages created by that build. You will find a folder for each category containing links to the corresponding package inside the All dir.

tinderbox/logs/{BUILDNAME} will contain log files of each port compiled for that build.

tinderbox/errors/{BUILDNAME} will contain copies of the log files that had errors - this is probably all your really interested in.

That's about all you need to get up and running with tinderbox. I think I will do one more post covering some housekeeping and other notes. To close off I'll show a script I use to automate running any number of ports inside every build you have configured, I save it in tinderbox/scripts and call it

#!/bin/sh ## auto build passed ports for every tinderbox build setup ## works on assumption that /usr/ports is used for tinderbox portstree ## to test that the portname is correct cd /usr/local/tinderbox/scripts if [ ! $# -gt 0 ] then echo "Usage: ${0##*/} [category/portname ...]" echo "Multiple ports can be listed - space separated list" exit 1 fi for TESTPORT in "$@" do if [ ! -e "/usr/ports/$TESTPORT" ] then echo "********************" echo " /usr/ports/$TESTPORT doesn't exist" echo "********************" else for BNAME in `ls ../builds` do echo "***** Building $TESTPORT" ./tc addPort -b $BNAME -d ${TESTPORT} ./tc tinderbuild -nullfs -b $BNAME ${TESTPORT} done fi done

So to make use of the script

cd /usr/local/tinderbox/scripts ./ graphics/blender graphics/luxrender ports-mgmt/tinderbox

and it will go through and compile each port with every tinderbox build you have setup.


ガルバリウム鋼板屋根価格's picture

Ri Ben noJing Ji noChang Qi An Ding Hua ,Zi Yuan Wen Ti gaMing rakaninarunituretenoZi Yuan noYou Xiao Li Yong Deng woBei Jing ni,Jian Wu gaChang Qi Jian sonoYi niLi tuYao Yin woShi Qie niWei Chi dekiruyou,Jian Zhu Wu noChang Qi Jian noShi Yong Xing woXiang Shang subekitonoShe Hui De Yao Qing gaGao matutekiteiru. kousitaDong kinonakadeWai Bi Yong noCai Liao ,Bu Cai noNai Jiu Xing gaQuan Ti noJian Zhu Wu noNai Jiu Xing niGuan waruYing Xiang gaDa kiku,tokuniZhu Mu woatumeteori,Wai Bi niYao Qiu sareruNeng Li ,Xing Neng Ping Jia Fang Fa nadonoQuan Ban niJi buGuo Ji sinpoziumumoKai Cui sareteiru. Wai Bi noNai Jiu Xing niGuan Lian suruYao Yin haShu Duo kuaruga,sonoCai Liao ga,soreraniDui Ying sitedonoyounaFang Fa deNai Jiu Xing woPing Jia suruka.

doll inflatable10's picture

On November 27, 2009, Department of the Treasury Secretary Timothy F.
Geithner and Federal Reserve Chairman Ben S. Bernanke announced a six-month delay, till June 1, 2010, for required
compliance with the Illegal Internet Playing Enforcement Act of 2006 (UIGEA).

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

Hi! I'm at work surfing around your blog from my new iphone!
Just wanted to say I love reading your blog
and look forward to all your posts! Carry on the outstanding work!

Jandy R0446400 O-Ring, Tailpiece's picture

Somebody essentially lend a hand to make seriously posts I would state.

This is the very first time I frequented your website page and
up to now? I amazed with the analysis you
made to create this particular post incredible.
Excellent process!

Mezo's picture

It's actually a great and helpful piece of information. I am glad that you simply shared this helpful information with us.
Please stay us up to date like this. Thanks for sharing.

homenet bialystok opinie's picture

The state owned telecommunications company, Telkom, contain the monopoly and
squash all opposition. Always enter in the "2" value which
suggests it is for that trusted sites security zones of Internet Explorer: In the above example, you will see it can be automatically applied in IE's security zones for trusted
sites and there is no way to the end-users to add or remove
the list because it is managed by way of a system administrator using the
Group Policy object editor in Windows:. If you desire to narrow your focus, it is
possible to start your personal forum that's based
on your personal particular division of interest.

steam wallet generator's picture

The tips discussed above have been found very useful in dealing with the malicious attempts of hackers.
This refers to killing monsters and NPC's for specific drops that
anyone can do, regardless of profession. The earlier mentioned article has dealt with quite a
few practical suggestions that happen to be well worth trying to keep in mind, and there are lots of sources on the net that can help you achieve further knowledge.

answering machine's picture

I every time used to study paragraph in news papers but now
as I am a user of internet therefore from now I am using net for content, thanks to web.

Workout Ace Diet Plans's picture

Good day! I knnow this is kinda off topic however , I'd figured I'd
ask. Would you be interested in exchanging links or maybe guest authoring a blog
post or vice-versa? My siye discusses a lot of thee
same topics aas yours and I feel we could greatly benefit from each other.
If you might be interested feel free to
send me an email. I look forward to hearing from you!
Fantastic blog by the way!

m88's picture

Wonderful blog! Do you have any tips for aspiring writers?
I'm hoping too start my own websire sooon but I'm a little lost on everything.
Would you aevise starting with a free platform like Wordpress or go for
a paid option? There are so many choices out there that I'm completely overwhelmed ..
Any ideas? Many thanks!

Also visit myy web site: m88's picture

To go astray in the Leeds castle maze for which there were planted about 2500 yews.

The back should also arc a little so that it offers more support when you sit on the glider with the baby
in your arms until the wee hours of the morning.
When the car reaches the top of the mountain, the panoramic view seen from there,
of the whole cape peninsula is something that will always remain a
memorable imprint of Cape Town.

Leila's picture

If yoou are going for most excellernt contents like myself, only payy a quick visit this website
every day as it offers quality contents, thanks

Phil St Ores's picture

With havin so much written content do you ever run into any
issues of plagorism or copyright infringement?
My website has a lot of exclusive content I've either authored myself
or outsourced but it appears a lot of it is popping it up all over the internet without my permission. Do you know any solutions to help protect against
content from being ripped off? I'd definitely appreciate it.

Jerry's picture

If you are looking forward for an ultimate beach experience, Pattaya is the best place to be.
The Mercedes-Benz car was found to be 751 kg of the 750 kg
limit. They always try their best to master online driving and racing.

Sheri's picture

I have been browsing online greater than 3 hours
lately, but I by no means found any attention-grabbing article like yours.
It's beautiful value enough for me. Personally, if all
webmasters and bloggers made excellent content as you did, the net can be much more helpful than ever before.

brave frontier cheats's picture

This can save you a lot of time as she'll be the one chasing you instead of the
other way around. There are often hundreds, perhaps even thousands of businesses offering the same
or similar products and services so they put most of their efforts into
the necessary steps to stay ahead of the competition. Unfortunately, for many
it become too late because their blog usually has already been hacked.

hay day hack tool's picture

Yes, when you've got a hay_day hacker, you'll be able to enter
the hay_day game and have a lot of fun while you do so.

Bevin Bell-Hall, as Charlotte Hay, is an unstoppable force, with seemingly telekinetic powers to
thrill and threaten the men around her with just a look. Incidentally, both our kids came out in the tests as allergic to cats.

Antonia's picture

Heheheh, pero en fin... eso es tambien un reto y
no empana para nada las virtudes de este magnifico juego.

pret rapide's picture

Ainsi, de plus en plus de menages font appel a des etablissements de credit comme
Cofinoga.'s picture

Due to the high commissions and simple sale SEO book has
caused it to be into my 'recommended affiliate programs'
section. Eventually, killing the enemy champions so you can freely attack towers
is a major part of the game's strategy. Players also generate gold in each match which they can use to purchase items which enhance their talents even additional.'s picture

When I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and
now each time a comment is added I recieve four emails with the same comment.
Is there an easy method you are able to remove me from that service?
Appreciate it!'s picture

I am truly pleased to read this web site posts which consists of tons of useful data,
thanks for providing these data.

jurassic park builder hack no password's picture

VFP's Chapter 136 provided VFP "Helmut & Dove" lapel pins to
VFP members attending the services. 5:30 7:00pm Star Trek: The Next Generation 25th Anniversary Reunion Paid
Event (Ballroom FG). Right following the third slanted tile is really a brief cylindrical tube
with two round, flat tiles serving as vents.'s picture

Please let me know if you're looking for a article writer for your
blog. You have some really good posts and I believe I would be a good asset.
If you ever want to take some of the load off, I'd love to
write some material for your blog in exchange for a link back to mine.
Please blast me an e-mail if interested. Thank you!

quest bars's picture

Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out much.

I hope to give something back and help others like you aided me.
quest bars 3te5r1upyli0w

gamefly 3 month free trial's picture

Howdy, I think your site may be having browser compatibility issues.
When I look at your blog in Safari, it looks fine but when opening in Internet Explorer, it's
got some overlapping issues. I merely wanted to give you a quick heads up!
Other than that, fantastic blog!

bench craft company reviews's picture

hello there and thank you for your info - I've definitely picked up something new from right here.
I did however expertise a few technical
issues using this web site, as 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 hosting is OK? Not that I'm
complaining, but slow loading instances times will
very frequently affect your placement in google
and could damage your high-quality score if advertising and marketing with Adwords.
Well I'm adding this RSS to my email and could look out for a lot more of your
respective intriguing content. Make sure you update this again very soon.

sniper 3d assassin shoot to kill hack's picture

The correct technique has a slicing action on the grass,
cutting a narrow strip with each stroke. To quote a legend on their own life time, Noah Tuigamala 'A man will need to have his cake and eat
it to be able to justify his actions. If your password is straightforward to guess it will probably be easy for you to definitely hack into the account.

hack wrestling revolution 3d's picture

These games may entail only a drag and drop action. They must
also not rely on technology completely like a medium for
working with children at home. The question then is:
Why let kids use math flash games in websites on the internet instead of
using, say, cardboard flash cards or active games. Engaged in the
learning process through play, your children could have more incentive and fascination with acquiring new knowledge and skills required
by school and everyday life. The mods are usually utilized to set no time before seen objects inside
game. Then, reminding him of his notes earlier,
when he counted the two groups, it is possible to show him, by way of example, that six pieces plus seven pieces
equals an overall of thirteen pieces. If you've got a son who loves to stage these mini wars, but
he doesn't own many Star Wars, Transformers or any other name
brand character action figures, you can purchase an army of
green soldiers at any St. You don't have to show yourself,
your individual daughter and even anyone who really wants to learn most of these games.
The problem is, employing this approach frequently takes them an extremely long time
to consider of cool songwriting ideas and much more
often absolutely nothing results in a very big complicated
mess. These games are fantastic to sharpen your observation skills
and still provide exercise to your mind. "Dungeon Hunter" finely crafted operating system and
conserve handy control the overall game, take
advantage of the "sword slash" to take you pleasure.

Cast vinyl films manage to retain their shape and
form, driving them to extremely durable. The small , rubbery HTC Desire C was published just a couple of short months ago and has been doing pretty well.
Game Description: The cards inform you what to complete, when you ought to drink
and exactly how much to imbibe. Today's free games apps
are universal: they're suitable for i - Phone, i - Pad and i also -
Pod touch. Searching for games now would just require less effort and time.

Puzzle games can be found in variations of brainteasers, and require players to recognize patters, solve problems, or find hidden objects.

As they answer the questions correctly, the grid shows them
how well they are doing. You have to have the glasses to remain "in position" in your face well rather than be too tight or too loose.
s face it, people have internet and extremely not enough people don. s tempting
to place all of your respective concentrate on your
Queen, your strongest move, since that seems the fastest,
easiest strategy to victory. Here are a few ideas for cool approaches to wish
someone a Happy Birthday on Facebook. Among these gaming devices, computers belong to probably the most
popular ones. Without spending time and Web games and traditions not the same as
online games, there can also be many similarities between your
fun is "against people, endless joy," but to "Travian" as an example, these Web game hardware
requirements are faraway from traditional flash games really at high point, as long as
the browser can use Computer Be capable to easily make games, the typical
worker Office Computer games could be at any moment.
The dilemma is the exact same thing a lot of people allow you to
think you'll be able to practically go on the internet and make money
just clicking on the mouse.

m88's picture

I know this if off topic but I'm lookingg into starting
my own blog and was wondering what all is required to get setup?
I'm assuming having a blog like yours would cost a pretty penny?
I'm not very web smart so I'm not 100% certain. Any recommendations or advice would be greatly
appreciated. Cheers

Also visit my weblog; m88

marvel contest of champions trainer's picture

Spectres are known for being the elite unit of the Council and have the ability to complete the mission without having to obey the Councils laws.
Now with this Clone Walker LEGO set, your child and reenact the Clone Wars scenes in the latest Star Wars movies or TV series.
Most players want to unlock Republic Assault to complete Republic missions
in LEGO Star Wars III: The Clone Wars.

kim kardashian hollywood astuce's picture

My advice is: don't just use an alternative means of authentication just for the sake of using it.
The five-mile run at 6:00 in the morning, was intended to renounce
the recent stint of crime incidents that have occurred along the trail.
They are, however, affected by fire and explosions
from molotovs, pipe-bombs, propane cylinders and other similar projectile
weapons and makeshift bombs.

clash of clans hack's picture

Hi, i think that i saw you visited my blog so
i came to "return the favor".I am attempting to find
things to enhance my site!I suppose its ok to use some of your ideas!!

clash of clans hack

hay day hack's picture

Crack for ios games are easy to discover and there are plenty of websites all over the
net that can help you to get them for free. you are unreasonably pleased to get a horse item, ANY horse item, as a
gift. I found the community within Wo - W to be entirely

quest protein bars best price's picture

Very rapidly this site will be famous among all blogging and site-building viewers, due to it's
good content free trial's picture

Highly energetic article, I liked that a lot. Will there be a
part 2?

Lavive Eye's picture

With havin so much content and articles do you ever run into any issues of plagorism or copyright violation? My blog has a lot of exclusive content I've either created myself or outsourced
but it seems a lot of it is popping it up all over the web without my
permission. Do you know any methods to help reduce content from being stolen? I'd really appreciate it.

ทัวร์ญี่ปุ่น's picture

Today, I went to the beach front 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 placed 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 totally off topic
but I had to tell someone!

Damon's picture

Just bought a new Nikon! Super excited to start using it.'s picture

When someone writes an post he/she keeps the plan of a user in his/her mind that
how a user can know it. Thus that's why this article
is outstdanding. Thanks!

%anchor_text%'s picture

This post is actually a pleasant one it helps new internet people, who are wishing for blogging.

my singing monsters hack's picture

I'm not talking about Farmville ideas or a Farmville system, I mean real cheating.
how to hack facebook or myspace account password automatically
foreclosures your privacy settings for you to public. It is a dreadfully overdue
improvement, but in my judgment it just doesn't do enough enough.

it works global's picture

But what makes Vi - Salus so different is the use of what is know as a capture page branding both the
rep and the company at the same time. What does this
growing trend represent to the average person,
and how does it relate to the current state of the economy.

You must know what to choose in obtaining your goals.

clash of lords cheats's picture

He eventually tells me that he focuses mainly on Upper-body workouts.
A particular method out there can even help you hack into a woman's thoughts and make her addicted to you on an emotional level.
Historically, one such shift is the Copernican revolution in which a belief in the world being flat was
first challenged by the invention of the telescope, and then with the progression of science, discarded.

candy crush soda saga cheats's picture

The first time I saw the the trailer for Wreck-It Ralph, I laughed out loud.
They release weekly patches with modest stability alterations
that assist transfer the game in direction of staying properly fair.
The New Year cliparts are being prepared in diversified graphics packages,
to send these with New Year greeting cards.

rivera park hà nội's picture

Wonderful article! This is the type of information that are meant to be
shared around the internet. Shame on the seek engines for no
longer positioning this submit higher! Come on over
and visit my site . Thank you =)
Chung cu rivera park, chung cu rivera park, rivera park ha noi, rivera park ha noi free trial's picture

Good post. I learn something new and challenging on sites I stumbleupon on a daily basis.
It will always be exciting to read content from other authors and use a little something from their websites.

the walking dead game ios's picture

Wow, amazing blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your site is excellent,
as well as the content!

Freeuhdwallpaper.Com's picture

You can definitely see your skills in the artile you write.

The world hopes for even more passionate writers like you who aren't afraid to say how they believe.
Always follow your heart.

clash of clans shirt's picture

Appreciate the recommendation. Will try it out.


Add new comment