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.


415 comments

garcinia slim 500's picture

of course like your web site but you have to test the spelling on quite a
few of your posts. A number of them are rife with spelling issues and I
in finding it very bothersome to tell the truth nevertheless I'll definitely come back again.

endure beauty system's picture

I'm really impressed together with your writing abilities as neatly as with the format to your blog.
Is that this a paid theme or did you modify it your self?

Either way stay up the nice high quality writing, it's rare
to peer a nice blog like this one these days..

watch spy's picture

Hey I know this is off topic but I was wondering if you knew
of any widgets I could add to my blog that automatically tweet my newest twitter updates.
I've been looking for a plug-in like this for quite some time
and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

find locksmith's picture

' Car locksmith companies: automobile lockout,
re-key, ignition, make tips. You can take help of a mobile locksmith to assess and resolve the issue of lock.
He believes in the RMLA's code of ethics…”It is
the duty of each member to perpetuate and advance the dignity of locksmiths and locksmith trade through
the fairest possible dealings with all persons, be they fellow locksmiths, clients or other persons.

Custom T-Shirts - Create Your Own T-Shirt Designs Online's picture

If you are going for best contents like me, simply visit this web site all the time because
it gives feature contents, thanks

Joe Olujic's picture

Thanks for your personal marvelous posting! I really
enjoyed reading it, you happen to be a great author.

I will be sure to bookmark your blog and definitely will
come back in the foreseeable future. I want to encourage
you to ultimately continue your great posts, have
a nice morning!

custom design t shirts's picture

Thanks for a marvelous posting! I really enjoyed reading it, you will be
a great author.I will make certain to bookmark your blog and definitely will come back in the foreseeable future.
I want to encourage you to continue your great posts, have a nice holiday weekend!

pro garcinia cambogia's picture

Awesome article.

Pura Bella Review's picture

Why people still use to read news papers when in this technological globe all is
presented on web?

cooking fever gems hack's picture

Yes! Finally something about cooking fever hack.

http://www.akpp-lipetsk.ru/index.php/component/k2/item/6-'s picture

One of my favorites, for instance, enables you to make use of the
iPhone as a video camera. It allows you to install 3rd party software application. By doing
so your telephone becomes a mini computer.

Dermanova Cream's picture

bookmarked!!, I really like your web site!

Belstaff Man Collecting Veste's picture

However most of women don't have a large wedding budget.

Online Dog fashion stores understand this fact and present a whole line of clothing and accessories.
But the outlets selling them will have to also pay for their flamboyant looking outlets.

Garcinia cambogia veda's picture

I was recommended this blog by my cousin. I'm
not sure whether this post is written by him as nobody else know such detailed about
my difficulty. You're incredible! Thanks!

billigt mobilt bredbånd uden binding's picture

As there are millions of websites listed on the World wide web, you will want a internet site that stands out
of the crowd.

President Mark Dubowitz's picture

I am really enjoying the theme/design of youur website.
Do you ever run into any browser compatibility issues? A couple of my blog readers have complained
about my website not working correctly in Explorer but looks great in Opera.
Do you have anny suggestions to help fix this problem?

wsj.com's picture

I am sure this paragraph has touched all the
internet users, its really really fastidious paragraph on building up new web site.

Foundation for Defense of Democracies Dubowitz's picture

I have been exploring for a bit for any high-quality articles or weblog posts in this sort of space .
Exploring in Yahoo I eventually stumbled upon this website.
Studying this information So i am glad to show that I've a very
good uncanny feeling I came upon exactly what I needed.
I most surely will make sure to do not omit this web site and give it a glance
regularly.

how to text girls you like's picture

Don't be overly sexual because you'll position yourself as a booty call.
Poor Emily has obviously been driven to hysteria, so
I had to be the voice of reason. For girls especially,
camp was a welcoming environment where looks and clothing don.

voice and data cabling jobs's picture

Hi, Neat post. There's a problem together with your website in web
explorer, may check this? IE nonetheless is the marketplace
leader and a large component of other folks will pass over your excellent writing because of this problem.

android game's picture

We're a group of volunteers and starting a brand new scheme in our community.
Your website offered us with useful info to work on. You have done a formidable process and our entire neighborhood
will likely be thankful to you.

Seilzug's picture

They are longer, made from heavy-duty materials, and more expensive
than the regular ones. The remaining pins all have different functions
which include providing power for each HDMI cable, ensuring
the smoothest transmission possible from one device to the next, and
much more. Others are more fitted and highly styled, to wear with business office attire or evening wear.

Joe Olujic's picture

Hi! I know this is kinda off topic but I was
wondering if you knew where I could get a captcha plugin for
my comment form? I'm using the same blog platform as yours and I'm having trouble finding one?

Thanks a lot!

ultra thin complete diet's picture

Thanks for a marvelous posting! I certainly enjoyed reading it, you can be a great author.I will make sure to bookmark your blog and
will eventually come back someday. I want to encourage you
to continue your great writing, have a nice holiday weekend!

http://stress4.chtc.wisc.edu's picture

Phen375 hasn't just helped me to lose fat.

It's basically modified living. My pals say they have never ever viewed me happier...and they're appropriate .
I am also in a very new partnership and he's SO HOT!
" Alice Dark-colored, California

How Much Pounds Can I Drop?

Phen375 has helped thousands of people have the system they've
often wanted.

Once daily loses 3-5 kilos within a week the standard
guy using Phen375. That is over a lb every single 48 hrs!

Phen375 is really effective that following using only 2 pills
it is possible to virtually see the pounds vanishing.

columbiaHow Successful Is Phen375?

A person would be required to move 40 hours weekly to shed the same amount of excess weight as getting 7 dosage amounts of Phen375,
according to research at Columbia College.

In the event you combined exercising with the effectiveness of Phen375, take into consideration that which you could achieve!
In addition, using the further power Phen375 provides you with, you'll
really would like to physical exercise.

biofinite Skin's picture

An impressive share! I've just forwarded this onto a friend who was conducting a little research on this.
And he in fact bought me lunch because I found it for him...
lol. So allow me to reword this.... Thank YOU for the meal!!
But yeah, thanx for spending the time to discuss this topic here on your site.

Dora's picture

Wow, wonderful blog layout! How long have you been blogging for?
you made blogging look easy. The overall
look of yohr website is magnificent, let alone the content!

my site ... webpage (Dora)

home internet career scam's picture

Thanks for one's marvelous posting! I quite enjoyed reading it, you will be a great author.I will be sure to bookmark your blog and will eventually come back sometime soon. I want
to encourage continue your great job, have a nice weekend!

garcinia slim 500 trial's picture

Great article! That is the kind of information that should be shared across the
internet. Disgrace on Google for now not positioning this post higher!
Come on over and consult with my web site . Thanks =)

resilient beauty's picture

I was recommended this blog by way of my cousin.
I am now not sure whether this put up is written via him as nobody else realize
such distinctive approximately my problem. You are amazing!
Thank you!

aimee cream review's picture

Terrific work! This is the kind of information that are
supposed to be shared across the web. Shame
on Google for no longer positioning this post higher!
Come on over and consult with my website . Thank
you =)

Morris's picture

What's up every one, here every one is sharing these know-how,
thus it's pleasant to read this blog, and I used to visit this website everyday.

www.foreign.senate.gov's picture

Great delivery. Solid arguments. Keep up the great work.

Cheri's picture

Somos una agencia de servicio 360o que ofrece soluciones de Marketing on-line.

nox factor review's picture

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

minnesota web design's picture

This website was... how do you say it? Relevant!!
Finally I have found something which helped me.

Cheers!

Mark Dubowitz's picture

With havin so much written content do you ever run into any issues of plagorism
or copyright infringement? My site has a lot of completely unique content I've either created myself or outsourced but it looks like a lot of it is popping it up all over the web
without my permission. Do you know any solhtions to
help prevent content from being ripped off? I'd genuinely appreciate
it.

Jam Tangan Fossil's picture

Its not my first time to pay a visit this website, i am browsing this site dailly and take nice facts from
here every day.

Digital Shift Marketing's picture

I really like what you guys are up too. This kind of clever work and
coverage! Keep up the very good works guys I've added you guys to
our blogroll.

pure detox's picture

I have been exploring for a little for any high quality articles or weblog posts
on this kind of area . Exploring in Yahoo I at last stumbled upon this web site.
Reading this information So i'm glad to exhibit that I have a very good uncanny feeling I discovered
just what I needed. I so much no doubt will make certain to don?t forget this web site and provides it a look on a relentless basis.

Insta Cut Complex's picture

It is appropriate time to make some plans for
the future and it is time to be happy. I've read this post and if I
could I wish to suggest you few interesting things or
suggestions. Perhaps you could write next articles referring to
this article. I desire to read even more things about it!

Slim Trim's picture

Hey there! I know this is kinda off topic but I'd figured I'd ask.

Would you be interested in trading links or maybe guest
writing a blog article or vice-versa? My site goes
over a lot of the same subjects as yours and I believe
we could greatly benefit from each other. If you're interested feel free to send me an email.

I look forward to hearing from you! Terrific blog by the way!

www.pimpblog.nl's picture

excellent issues altogether, you just won a new reader.

What may you suggest in regards to your post that you just made some days ago?

Any sure?

revival beauty's picture

It's in reality a nice and useful piece of information. I am satisfied that you simply shared
this useful info with us. Please stay us up to date like this.
Thank you for sharing.

rencontres sportives's picture

I really like what you guys are up too. This type of clever work and
coverage! Keep up the wonderful works guys I've included
you guys to our blogroll.

custom tee shirts's picture

Thanks to my father who stated to me about this webpage, this web site
is actually awesome.

Nuplenish Skincare's picture

Article writing is also a fun, if you know after that you can write if not it is difficult to write.

Trimcldenase's picture

What's up everyone, it's my first pay a visit at
this website, and article is actually fruitful in support of me,
keep up posting these types of posts.

FDD founder Mark Dubowitz's picture

Great article, just what I was looking for.

testo xl review's picture

I visit every day a few sites and information sites to read content, however this webpage gives feature based content.

Pages

Add new comment