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.


Dubai Holiday Package's picture

Paragraph writing is also a fun, if you be acquainted with afterward you can write otherwise it is complex to write.

stainless steel jewelry for men's picture

You are so cool! I don't suppose I've truly read a single thing like this before.

So good to find another person with some original thoughts on this subject matter.
Seriously.. many thanks for starting this up. This
website is something that is required on the internet, someone with a bit of originality!

stainless steel jewelry for men's picture

Its not my first time to pay a quick visit this web site, i
am browsing this web page dailly and take nice facts from here

json pretty print's picture

Wow, wonderful blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your web site is
great, let alone the content!

iptv premium subscription's picture

If you want to increase your experience simply keep visiting this website
and be updated with the hottest news update posted here.

membrane bioreactors's picture

Hi to all, it's really a good for me to go to see this site, it consists of helpful Information.

letras corporeas en asuncion's picture

I really like your blog.. very nice colors & theme.

Did you make this website yourself or did you hire someone to
do it for you? Plz answer back as I'm looking to construct my own blog and would
like to know where u got this from. many thanks

msp vip hack tool no survey's picture

An impressive share! I have just forwarded this onto a
co-worker who has been doing a little homework on this.
And he actually ordered me dinner simply because I stumbled upon it for him...
lol. So let me reword this.... Thank YOU for the meal!!
But yeah, thanks for spending some time to talk about this topic here on your website.

fabricacion de carteles en paraguay's picture

Hi there, I found your blog via Google while looking for a related subject, your web site came up, it appears to be like great.
I have bookmarked it in my google bookmarks.
Hello there, simply turned into alert to your blog via Google,
and located that it is really informative.
I am going to be careful for brussels. I'll appreciate if you continue this
in future. Numerous folks can be benefited from your writing.


medical malpractice attorney NYC's picture

Hello! I could have sworn I've visited this site before but after looking at a
few of the articles I realized it's new to me. Nonetheless, I'm definitely happy I found it and I'll be book-marking it and checking back frequently!

cctv kits's picture

Great article.

salwar suits best price online chennai india online's picture

Hurrah, that's what I was looking for, what a material!

present here at this webpage, thanks admin of this site.

buy leggings and palazzos for girl kids online india's picture

Undeniably consider that that you stated. Your favourite reason appeared to be
on the web the simplest factor to understand of.
I say to you, I definitely get irked while other folks consider worries that
they plainly don't recognize about. You controlled to hit the
nail upon the top and defined out the whole thing
without having side effect , folks can take a signal. Will probably
be back to get more. Thank you's picture

Hey there! I simply wish to give you a big thumbs up
for the great information you have here on this post. I am coming back to your web site for more soon.

best Entry-Level DSLR Camera's picture

Good day! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your blog posts.
Can you recommend any other blogs/websites/forums that cover the same subjects?
Thanks a ton!

lien ket my's picture

It's amazing to go to see this site and reading the views of all colleagues on the topic of this
paragraph, while I am also eager of getting know-how.

pittsburgh bands's picture

Your style is very unique in comparison to other people I've read stuff from.
Many thanks for posting when you've got the opportunity, Guess I'll just
bookmark this site.

florida's picture

You really make it seem really easy along with your presentation but I to
find this topic to be actually one thing which I believe I'd by no means understand.
It kind of feels too complicated and very large for me.

I'm having a look forward to your next publish, I will attempt to get the cling of it!

visqueen floor protection's picture

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

Jersey Murah Jakarta's picture

Asking questions are really pleasant thing if you are not understanding something
completely, except this post offers pleasant understanding even.

m88's picture

Thanks for every other informative blog. Where else may just I get that
type of info written in such an ideal method?
I have a projmect that I'm just now working on, and Ihave been att the glance out for such info.

My web-site ... m88

just click the next Site's picture

Why people still use to read news papers when in this technological world
the whole thing is existing on net?

David Drwencke's picture

I know this if off topic but I'm looking into starting my own weblog and was curious what all is needed
to get setup? I'm assuming having a blog like yours would cost a pretty penny?
I'm not very internet smart so I'm not 100% positive. Any tips or advice would be
greatly appreciated. Cheers

Nathaniel Crawford - the manor flagler village prices's picture

The study shines lght on the difference between "Achievers", who value uniqueness above all and "Emulators", who want to aspire to be Achievers, but
may not bee able to afford thhe lifestyle. Luxury
real estate in New Zealand is knoan worldewide foor its ability to create
a maggical home, in a pace of great natural beauty. If not, you might want to consider
a different tact when approaching your personal
branding, other than using your name as your brand.

clash of kings hack no password's picture

Within the ebook, Gaines fastidiously lays out the winding street the
Seashore Boys took from their early days in Hawthorne
up to the early 80's when drummer Dennis Wilson drowned at Marina del Ray.
The unremitting nature of the weight loss- weight gain cycle is profoundly frustrating.
Simply left-click on the device and it will bring up a round screen which gives you the option of
selecting which historical figure and time you wish to travel to next.

pirater un compte facebook's picture

I read this article completely regarding the difference of hottest and preceding technologies,
it's awesome article.

Here is my site :: pirater un compte facebook

кредит в банке втб 24 по зарплатно's picture

I blog frequently and I really thank you for your content.

The article has really peaked my interest. I will book mark your
website and keep checking for new information about once per week.
I subscribed to your Feed too.

hay day astuce's picture

Joseph Ratzinger - April 16, 1927 - Better known as Pope Benedict
XVI. Although a number of these have been done over and over again, it's nice to know
that collectors will be seeing some better sculpts for characters such
as Chalmun's Cantina, also known as the Mos Eisley Cantina, denizens Dr.
To be honest, he's one of those actors that just puts a smile on my face when I see him working and he was
always one of my favorite characters in Star Trek.

game of war fire age generator's picture

Z-Day Approaches: A Look At The History Of Zombies
In Games. Some interactive visuals such as some creepy copies of the people
dancing around at one of your parties can be displayed on your wall in the darkness.
MSNBC reported that 'investors' have ordered 4x more than the initial
offer (not including the increased offer or greenshoe option).

steam wallet cheats's picture

In the wake of the Yahoo Voices hack, the advice is still the same:
use a strong password and don't use the same one at more than one site.
You can also include facts about any statuses that just werent posted by you in the body of the request.

Darren Hauck for The New York Times is telling Internet
users to assume their personal information was stolen.

clash of kings pirater's picture

If you hack in and remove the house, you still cannot see me because the visibility tracing still happens on the server," Kislyi said. Along with when you commence taking part in, it's very tempting to pay the quality foreign currency (of diamonds) to be able to velocity items way up. In this article, we will share lots of great ways to save money online.

how to install zikula on hostgator's picture

I like reading an article that will make men and women think.
Also, thank you for permitting me to comment!

astuce clash of clans's picture

I read this paragraph fully regarding the difference of latest
and earlier technologies, it's awesome article.

David Drwencke's picture

I am really impressed with your writing skills and also
with the layou on your blog. Is this a paid theme or did you customize it yourself?
Anyway keep up the excellent quality writing, it is rare to see a great blog
like this one these days.

David Drwencke's picture

Hello, every time i used to check weblog posts here in the early hours in the daylight, as i
love to find out more and more.

age of warring empire cheats's picture

It has a large, bright 5-inch screen, and simple, easy-to-use interface.

There are some people that might question a determination to get your
personal Minecraft server. On this rate
of progress seashore break it will be not flighty to get proposes which
join Boom Beach Hack platinum, genuine pearls close-by wooden to make
a titan zone close by expert the adversaries.'s picture

It features characters and images from the new
movie and allows you to interact with some of the more famous races from the Star Trek world, including the
Klingons. LEGO Star Wars III: The Clone Wars Missing Character Locations: Undead Geonosian. The Mandalorians in this story are a peace
loving people but there is a faction within that wants to change all that.

fun boy hairstyles's picture

I'm really enjoying the design and layout of your website.

It's a very easy on the eyes which makes it much more pleasant for me to come here and visit
more often. Did you hire out a designer to create your theme?

Outstanding work!'s picture

The magic mirror is one where they use the Kinect's skeletal tracking to do an overlay a video image of the person from the Kinect.
If you are following a golfing dream, How to Break 80 is a great start,
so swing that golf club and effectively break 80.
After mugging Paul, the thugs break into his home and murder
both his housekeeper and daughter.;view=itemlist&amp;task='s picture

Fakehospital pack siterip 28 videos downloa : tale mode hack - grab unlimited.

retrica app's picture

Retrica has this unique Watermark logo, which you can consist of on photo to let every
person view it!

truth about cellulite's picture

The Truth About Cellulite has both pros and cons.
However, the cons seem to be really minor and easy to overcome, making them far less weighty than all the positives
the e-book brings with it. The reality is that there is absolutely no more need for you to invest in various
lotions, creams, pills, moisturizers and scrubbers, spending hundreds of
dollars and things that don't get the job done and can actually harm you as well.

Instead, join the thousands of individuals across the
world that have tried the Truth About Cellulite,
including myself, and rejoice in the fact that your cellulite
will soon be a thing from the past. Best of all, because it's your own efforts and actions that will reduce this cellulite,
you will quickly feel better about yourself and notice your self-confidence
building back up to the right levels. And the finest of all, the system can be
used by men and women alike. I say give it a go!

marvel contest of champions trainer's picture

Bobby: Obviously Tarkin is the go to guy, but how many characters have
you portrayed at this point in the series, besides Mas Amedda and Tarkin. First among these is Donald Duck as Clone
Commander Cody. They were used by the Galatic Empire and old Republic for ground transport or assault.

marvel contest of champions hack's picture

Other riders complain of horses that are grumpy and non-responsive to their training efforts in the arena or round pen. The
following are tips on keeping horses healthy
both physically and mentally (these tips do not take into account medical conditions that might require your horse
to remain on stall rest, be off grass or need limited turnout for his health):
. Those people who doubt the importance of good nutrition for effective learning, need only
look back to the year 1966 when the School Breakfast
Program began as a pilot study to provide breakfast for 'nutritionally needy' children in the school system.

wizzard101 crown cheats's picture

We all react to comment pirater facebookcomo hackear facebook - Facebook
Account Hack - Facebook Hack - Facebook Hack Download - Facebook Hack
Free Download - Facebook Hack Toolfacebook hack tool downloadfacebook hacke - Facebook Password Breaker - Facebook Password Hack - Facebook Password Hack
Download - Hoe Facebook hackhow to hack facebookjak zhakowac facebookangielski come
hackerare facebook - Wie Facebook-Hack differently.
IF you don't know the difference, Open - VPN is the most secure, while PPTP is the fastest.
There's also an option to sign in to Windows Live Hotmail using enhanced security (SSL),
send up to 10 GB in attachments and access hotmail on a mobile device.

blood brothers trainer's picture

Again, speed up the process by correcting him when he doesn't do it.
Fresh fruits in a paper box will definitely work well.
An even better idea, pick up a small re-usable dish (it can be
a coin dish, jewelry or rings etc.'s picture

Brain Age group: Train Your Braiun in Moments a Day featured several
short games that will designer Doctor Ryuta Kawashima claimed
might increase blood flow to the prefontal cortex. Whilst they make a inner feast for
their dolls and fille animals, you will definately get hours
associated with enjoyment viewing them learn to be creative.
The other is actually that I've wasted regarding 4 hours in past tumes weewk actively
playing this.
This is a page to organize the online games I've created or modified significantly which includes notes about content.
The home in Long gone Home" is usuaslly filled with nods to the genre of video games that inspired it; one suntopic challenged students tto collect the concealed references.
There are plenty of different games that can be effective when used by the right
teeacher for the right group of learners, " Husoy explained.
After i look for games to put inn the particular classroom, I usse
the same technique as any various other media. Theze are destroying the normal values plus lexicon that allow all oof
us to communicate with each other plus hold us together as
being a society. Nearly all games using a sexual theme feature a male character and lots of naked females.

A neew series of games come up regularly and thus you do nott get bored actively playing the same video
games agazin and again, they get a new variety
of game every time each goes online. Thhe newest series of onliine games these day's are escape games
to have to come out of the trap solve the puzzle, find the keys
and score a lot more as possible. Be aware though,since the game speeds up ass you go.

If you want Code Lypko games you will discover others
uppon mygames4girls.
This is a web page to organize the particular gaes I have created or
modified considerably with some records about articles. The
house in Gone Home" is filled with nods towards thhe genre associated with games that will inspired
it; one subtopic challenged college students to coollect the hidden references.
There are plenty of different games that can be effective whenever used
by thhe correct teacher for your right numer of students,
" Husoy explained. When I search for games to put in the classroom, I use the same approach
as any other mmass media. They are wiping out the common values and lexicon that allow us to communicate with one another and hold us together as a culture.
The majority of video games with a sexal theme
feature a male personality and lots of nude women.
The particular leegacy still left by Russia's first wintertime Games is onne of sparkling purpose-built arenas with
little if any post-Games use, a masssive overhaul of infrastructure at the Dark sea resort and
a record price tag that triggered adjustments for long term Olympics.

Simmply by blaming the European problems on income and the cost of labor plus ignoring the role off credit movves within the financial union, economists are allowinbg Big Banking institutions off the
connect, absolving all of them from any kind of responsibility, keep alone blame -
and unjustifiably therefore.

game facebook yang ada di android's picture

Thanks for sharing your info. I truly appreciate your efforts and I am waiting for your
next write ups thanks once again.

kim kardashian hollywood hack's picture

" After a few minutes of this role-playing, Elec got fed up and (true to his pyromaniacal nature) threw an alchemist fire at Mama in the middle of negotiations. "Devotion to Darkness" intro pack - Creatures (20)1 Abhorrent Overlord2 Blood-Toll Harpy2 Child of Night2 Disciple of Phenax2 Gray Merchant of Asphodel2 Horizon Scholar2 Insatiable Harpy1 Minotaur Abomination2 Mogis's Marauder2 Returned Phalanx2 Undead Minotaur - Other Spells (15)1 Boon of Erebos2 Glimpse the Future1 Griptide1 Lash of the Whip1 March of the Returned1 Ordeal of Thassa1 Pharika's Cure1 Rescue from the Underworld1 Sea God's Revenge2 Sip of Hemlock1 Voyage's End1 Whip of Erebos1 Witches' Eye - Lands (25)9 Island16 Swamp. They are, however, affected by fire and explosions from molotovs, pipe-bombs, propane cylinders and other similar projectile weapons and makeshift bombs.'s picture

Candy is not only a guilty pleasure but one that evokes clear
memories from our youth. There's Halloween, Valentine's Day,
Christmas, Easter, and Hanukkah. If you don't know where to look for these
homemade recipes your best bet would be on the
internet, local bookshops, and someone you know that is an expert at
making Chocolate Candy.


Add new comment