Sticking your nose in the tinderbox

Once you tell tinderbox to build a list of ports it happily goes off and does it's work. But how do you know what it is doing? Well let's nosey around and see what we can find. Let's open a terminal and tell it to compile devel/p5-Log-Dispatch and see what happens.

[tinderbox/scripts] # compileport -B 9.0 -A amd64 -C clang -P devel/p5-Log-Dispatch ********** ********** Starting tinderbox compiles with - ***** Base versions - 9.0 ***** ARCH list - amd64 ***** Compilers - clang ***** Ports to build - devel/p5-Log-Dispatch ********** ********** Adding port/s to datastore... ********** Compiling devel/p5-Log-Dispatch in 9.0-amd64-clang ********** tinderbuild: creating makefile... tinderbuild: Creating build directory for 9.0-amd64-clang 9.0-amd64-clang: cleaning out /usr/local/tinderbox/9.0-amd64-clang makeBuild: extracting jail tarball tinderbuild: Finalizing chroot environment ================================================ building packages (phase 0) ================================================ started at Tue Oct 16 19:51:03 CST 2012 ended at Tue Oct 16 20:14:51 CST 2012 phase 0 took 00:23:48 26 packages built 15M of packages ================================================ building packages (phase 1) ================================================ started at Tue Oct 16 20:14:51 CST 2012 ended at Tue Oct 16 20:14:51 CST 2012 phase 1 took 00:00:00 26 packages built 15M of packages tinderbuild: Cleaning up after tinderbuild. Please be patient.

Well that doesn't tell me much of anything. In fact during the wait between line 26 and 27 it gives no clue as to what it is doing. It turns out if you look inside the right build dir you will get some more info. With BUILDNAME=9.0-amd64-clang

[local/tinderbox] # ls -l /usr/local/tinderbox/builds/$BUILDNAME total 142 -rw-r--r-- 1 root wheel 14862 16 Oct 19:50 Makefile -rw-r--r-- 1 root wheel 0 16 Oct 19:50 duds -rw-r--r-- 1 root wheel 0 16 Oct 19:50 lock -rw-r--r-- 1 root wheel 37211 16 Oct 20:08 make.0

That lock file tells tinderbox that this build is busy working. In case of severe breakage you will need to delete this to get started again. The duds file contains a list of ports that it won't be compiling (back to that in a sec). The Makefile has a list of dependancies for the port that is being compiled and the make.0 (and make.1 if it is there) is a log file giving a general overview of what is happening, you will see the environment settings and the current port being made (at least the distname of the source package which often matches the portname). tail -f make.0 will let you watch as things progress. make.0 logs stage0 progress while make.1 logs stage1.

If wou want to see more detail then you will find the working system installed inside /usr/local/tinderbox/$BUILDNAME Of most interest will be the tmp dir where you will find pieces of log files that will be joined into the final log that you can access later. Each step of the build is in a separate piece so you get one for extract, one for patch, one for configure...

[local/tinderbox] # ls -l /usr/local/tinderbox/$BUILDNAME/tmp total 2149 drwxr-xr-x 2 root wheel 2 16 Oct 19:51 depends drwxr-xr-x 3 root wheel 3 16 Oct 19:51 distfiles lrwxr-xr-x 1 root wheel 18 16 Oct 19:51 make.log -> perl-5.14.2_2.log2 -rw------- 1 root wheel 577 16 Oct 19:51 make.log1 -rw------- 1 root wheel 190 16 Oct 19:51 make.log2 -rw------- 1 root wheel 1433 16 Oct 19:51 make.log3 -rw------- 1 root wheel 291603 16 Oct 19:53 make.log4 -rw------- 1 root wheel 208061 16 Oct 20:04 make.log5 -rw-r--r-- 1 root wheel 217 16 Oct 19:51 mtree.buildexclude -rw-r--r-- 1 root wheel 412258 16 Oct 19:51 mtree.prebuild -rw-r--r-- 1 root wheel 258 16 Oct 19:51 mtree.preexclude -rw-r--r-- 1 root wheel 409514 16 Oct 19:51 mtree.pristine drwxr-xr-x 2 root wheel 2 16 Oct 19:51 packages -rw-r--r-- 1 root wheel 3117 16 Oct 19:51 perl-5.14.2_2.log -rw-r--r-- 1 root wheel 293831 16 Oct 19:53 perl-5.14.2_2.log2 -rw-r--r-- 1 root wheel 0 16 Oct 19:53 pkgs_post_test -rw-r--r-- 1 root wheel 0 16 Oct 19:53 pkgs_pre_test -rw-r--r-- 1 root wheel 2 16 Oct 19:51 status

Now why would tinderbox list ports in the duds file and how do you build a port that gets listed there? Well the duds file contains ports that are marked BROKEN or IGNORE. For the reason and a way to find a solution you probably need to look inside the Makefile for that port (within the ports tree). There are several reasons for a port to be marked as broken, sometimes it is broken for a specific ARCH, sometimes it is because it is incompatible with another installed port or that two options are incompatible with each other. This would be more likely if you are configuring options for your ports rather than just the defaults. A port may also be marked as ignore if an option is turned on but the supporting port is not installed. While normally that is handled by the ports dependencies I have found at least one port that breaks with that inside tinderbox. It appears that the Makefile is parsed before the dependencies are in place. Also if you set options and create a dependancy loop the make.0 in the builds dir will quickly grow to several gigabytes in size. Killing the make process will then start stage 1 repeating the same thing. The quick growing log size is the only way I found to spot this - well you probably notice the constant disk access slowing things down if you are using the machine at the time. If you use zfs setting a quota on the filesystem for tinderbox can be very helpful.

Inside /usr/local/tinderbox/logs/$BUILDNAME you will find log files of every build that has finished. If there was any errors you will also get a link inside /usr/local/tinderbox/errors/$BUILDNAME

find /usr/local/tinderbox/errors -name "*.log" will list all error logs.

With the default config of tinderbox the webui is turned on. If you turned it off because you don't want apache installed then choose one of the smaller web servers as the webui is helpful. The webui is accessed from http://localhost/tb - if setup on your current machine. If you setup and use tinderd then you can also get access to that through the webui. That includes adding ports to the queue.

The homepage gives a nice table listing each build name with a range of counts for number of ports, failed ports etc and a link to the packages directory. If your building to create your own packages site then you can use this link. While most descriptions for the counts are pretty obvious, unknown status is a count of ports you have added to the datastore but there is no data available for it - the data is only added to the database after the first compile runs. The remake count is how many ports are currently queued to be compiled. Using the example above - when starting to compile devel/p5-Log-Dispatch there is a total of 25 dependancies that need to be installed for that port. When you start the compile on a clean build remake will start at 25 and count down as each dependant port is completed. Ports that need to be updated will also be included in this number. While remake is only a displayed number, the others are links to a list of details.

Most of the other pages are lists that vary only in the search criteria and are pretty straight forward. The latest builds page is good to keep open while building - while a port is compiling it will refresh every minute so you can watch the progress - more helpful when you have a lot of dependancies. A green filled box for reason is no errors, red means failed build and orange means a dependancy failed. The link to show the log file with markup is also helpful - it is pretty good at locating errors in the log files and gives you a list of links at the top to each error line as well as highlighting them in red.


silkroad's picture

Sometimes, if you are suffering from any king of erectile dysfunction, the cause may be of anything,
you will obviously be a little bit shy for visiting a sexologist.
The reason why Canadian drugs are cheaper than the US drugs is an effective price control policy put
in place by the Canadian government. Where a prescription is required,
we will require the prescription to be faxed to us.

vita youth skin's picture

Greetings! Very useful advice in this particular post!
It is the little changes which will make the biggest changes.
Thanks a lot for sharing!

pro lean cleans trial's picture

For hottest information you have to visit world-wide-web and on the web I found
this site as a finest website for most up-to-date updates.

Slimgenix Pro Garcinia's picture

Howdy fantastic website! Does running a blog like this require a large amount of work?
I have virtually no expertise in programming but I had been hoping to start my own blog in the near future.
Anyways, should you have any recommendations or techniques for new blog owners please share.
I understand this is off subject however I just had to ask.
Thank you!

renuvaderm eye's picture

Pretty portion of content. I just stumbled upon your blog
and in accession capital to say that I get in fact
enjoyed account your weblog posts. Anyway
I will be subscribing on your feeds or even I fulfillment
you get entry to persistently fast.

Muscle force max ultra Review's picture

Magnificent beat ! I would like to apprentice even as you amend your
site, how could i subscribe for a weblog web site?

The account aided me a applicable deal. I have been tiny bit familiar of this your broadcast provided vivid clear concept

3 Click Loan's picture

This is a good tip particularly to those new to the blogosphere.
Simple but very accurate information... Thank you for sharing
this one. A must read article!

design a t-shirt's picture

This is my first time go to see at here and i am genuinely impressed to read all at one place.

ht rush muscle's picture

I read this paragraph fully concerning the comparison of latest and
preceding technologies, it's remarkable article.

Title Loans in Las Vegas's picture

I've been browsing online greater than three hours today,
yet I never found any fascinating article like yours.

It's lovely worth sufficient for me. In my view, if all website owners
and bloggers made excellent content material as you probably did, the
net will be a lot more helpful than ever before.

flat front pants's picture

Hmm is anyone else having problems with the images 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.

pura bella reviews's picture

Do you have any video of that? I'd want to find
out some additional information.

natural green cleanse review's picture

Thanks to my father who told me concerning this webpage, this blog is really awesome.

garcinia pure's picture

Hi! Do you know if they make any plugins to assist with Search Engine Optimization? 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. Thank you!

Sharyl's picture

WOW just what I was searching for. Came here by searching for vampire hunting

internet career review's picture

Hi there, I found your website by means of Google while searching for
a similar topic, your site got here up, it seems to be great.
I've bookmarked it in my google bookmarks.
Hello there, just changed into alert to your weblog thru Google,
and found that it is truly informative. I
am going to watch out for brussels. I will appreciate should
you continue this in future. Many people will
likely be benefited from your writing. Cheers!

SDFGREGF's picture

Sickler feedback, No you can visually see which you have hair exts. You'll find no images of men's hairstyles, ethnic as well as african-american women hairstyles.

finepix digital ezopower lithium's picture

Hmm it seems like your blog ate my first comment (it was extremely long) so I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying
your blog. I too am an aspiring blog blogger but I'm still
new to the whole thing. Do you have any helpful hints for first-time blog writers?
I'd certainly appreciate it.

quick loans's picture

Hello everyone, it's my first pay a visit at this web site, and post is actually fruitful designed
for me, keep up posting these articles.

Lievito infezione's picture

WOW just what I was looking for. Came here by searching for ride

slim extreme reviews's picture

Appreciate the recommendation. Let me try it out.

mousepads comfortable retriever customized's picture

Greetings from Ohio! I'm bored to death at work so I decided
to browse your website on my iphone during lunch break.
I love the knowledge you present here and can't
wait to take a look when I get home. I'm surprised at how fast your blog loaded
on my cell phone .. I'm not even using WIFI, just 3G ..
Anyhow, excellent site!

Meta boost's picture

Hi, constantly i used to check blog posts here early in the break of day,
since i enjoy to learn more and more.

enduros Testo Booster's picture

Saved as a favorite, I really like your site!

Garcinia cambogia forte's picture

I really like it whenever people get together and share opinions.
Great blog, continue the good work!

Bellavita Skin's picture

Hi this is somewhat of off topic but I was wondering if
blogs use WYSIWYG editors or if you have to manually code with HTML.

I'm starting a blog soon but have no coding experience so I wanted to get guidance from someone with experience.

Any help would be enormously appreciated!

Trim 250 Forskolin's picture

I am really loving the theme/design of your blog. Do you ever run into any browser compatibility problems?
A handful of my blog audience have complained about my
site not operating correctly in Explorer but looks great in Safari.
Do you have any tips to help fix this issue?

garcinia cambogia diet reviews's picture

I every time spent my half an hour to read this blog's content everyday
along with a cup of coffee.'s picture

The escorts have a good and immaculate nature so you will
not have a problem in mixing up with them. If you intend to employ any escorts or escort agencies, you could take support of the escort directory site.
Married men may think they can get away with posting ads on dating sites but they can and will get caught by the savvy wife that knows what action to take.

Slim Trim Weight Loss's picture

Hi there! This article could not be written any better! Looking at this article reminds me of my previous roommate!
He always kept preaching about this. I am going to forward this post to him.
Fairly certain he'll have a great read. Thanks
for sharing!'s picture

I'm curious to find outt what blog system you aree working with?
I'm havihg some minor security issues with my latest website and I'd like to fin something more risk-free.
Do you have any solutions?

Zonecore Super cleanse's picture

Touche. Great arguments. Keep up the great effort.

free roblox codes's picture

I read this piece of writing fully regarding the resemblance of most up-to-date and previous technologies, it's awesome article.

bolkin defender hybrid's picture

whoah this weblog is fantastic i really like reading your posts.
Keep up the great work! You recognize, lots of individuals are hunting around for this information, you can help them greatly.

Anabol X1 Muscle's picture

Actually when someone doesn't be aware of afterward
its up to other people that they will help, so here it takes place.

one click loan credit's picture

Nice post. I used to be checking continuously this blog and I am inspired!
Extremely helpful information particularly the final part :) I care for such information much.
I was seeking this particular info for a long time.
Thank you and good luck.

website's picture

To be sure, it is still wise to get escort hiring services
from escort girl agencies. And to quench any physical thirst, you are going to need a woman. These women are not prostitutes -- and should never be mistaken as such.

Project Slimdown's picture

Paragraph writing is also a excitement, if you be acquainted with
after that you can write or else it is complicated to write.

Fat Burn X scam's picture

Valuable information. Lucky me I found your web site accidentally, and I'm surprised why this
twist of fate did not happened earlier! I bookmarked it.

power pro reviews's picture

When someone writes an post he/she keeps the image of a user in his/her brain that how a user can understand it.
Thus that's why this post is amazing. Thanks!

Driving Lessons's picture

Ad Google Ad - Sense to Your Site: Earn extra cash by adding Google Ad - Sense to.

Your instructor will complete a training report form that you'll
sign and date when you reach the required standard in each module.

Both of these cars would be very good choices in helping you get gold in the GT World Championship.

garcinia basic review's picture

Your means of explaining all in this post is really nice, every one be capable
of easily understand it, Thanks a lot.

watch unfriended online primewire's picture

Higher qualith film, higher high quality sound.

T Advance's picture

magnificent points altogether, you just gained a logo new reader.
What would you suggest in regards to your post that you
just made a few days in the past? Any sure?

Website here's picture

Useful info. Lucky me I found your web site by chance, and I'm stunned why this coincidence didn't came about earlier!

I bookmarked it.

best gig you can buy on seoclerk's picture

You need not worry about being ban by the forum with
suspicious posts. The fee charged by the sites is generally 20
percent of the amount. Of course, the site acquires additional power if
you can customize article page Meta keywords, blog category Meta keywords, Meta descriptions.

magicfiber microfiber cleaning orange's picture

I am really loving the theme/design of your site. Do you ever
run into any web browser compatibility problems? A couple of my blog visitors have complained about my blog not working correctly in Explorer but looks great in Opera.

Do you have any solutions to help fix this problem?

best android phone 2014 philippines's picture

No doubt Flipkart is most beneficial for Indian buyers.'s picture

I desired to make an effort to express my appreciation in your direction and this wonderful blog!
Loving it!

Cleanse Body Pro Review's picture

It's not my first time to visit this web site, i am browsing this website dailly and
take nice data from here everyday.


Add new comment