Universal tinderbox

Tinderbox's main purpose would be as a developer tool to assist in FreeBSD port maintainers in getting various software packages available to FreeBSD users, but can it be used for more than that - yes. It is based on the scripts used by pointyhat to constantly compile ports to test for errors as well as create packages that are available to download through the various mirror sites. Which means it also gives you the ability to compile your own packages repository. If you want to make it do other things you would need to get into the scripts and adjust it to suit. Basically it is a set of scripts that sets up a clean system environment then compiles ports within it. That is a series of preset commands with some runtime options. There is no reason it can't be adjusted to run any automated task that you want to test within multiple clean systems.

So why would you want to build your own packages repository? Maybe you want your packages built with extra options turned on. Maybe you want to compile your ports with -O3 or CPUTYPE=corei7 to get a bit more performance. Or you support a range of servers and desktops that are not all the same OS versions and company policy prevents binary downloads from external sources being installed on your systems. Or you just want to build your own ports but want to know everything builds successfully before changing anything on your base system.

That last one comes in handy if you want to compile everything with clang. While effort is being made to move away from gcc and have everything built with clang, we aren't there yet. When you build your own ports in your base system various dependencies are built and installed before the port that needs them. This leads to newer libraries installed that may not work well with older versions of packages that use them and this mixed bag gets left that way when one port breaks. So it can be useful to know that everything compiles that is needed before anything in the base system gets changed. If you are using zfs then you could also use snapshots to rollback after a bad upgrade, but that's another story.

If you make changes to your ports tree to fix build issues then share the fixes with others by submitting a problem report. Chances are others would like to use the same fixes you made.

But tinderbox also lets you build against system versions that you don't have installed. How does that help you? Maybe you have an old 7.4 machine that you want to upgrade, you can build all the ports you want for that machine against FreeBSD 9.0 so they are all ready before you upgrade. It is often recommended that you recompile your ports after major system version updates. But then what if your upgrade goes bad and you want to go back to your old system? With tinderbox you could also build your ports against an older version and downgrade with confidence. While no-one would recommend you do that, it can give you peace of mind knowing that you have a way to fall back when changes don't work the way you want. If you want the option to fallback you may want to build both package versions before you upgrade.

In previous posts I have talked about setting up builds with a variety of system versions and configuring the environment options for each so I won't repeat that here. If you are wanting to build your own ports then you may want to expand the environment settings a bit. While you don't get the flexibility that you have with the /etc/make.conf you can add most of the options you would normally use there. The main limitation is you don't get conditional sections so anything you setup will be applied to every port you build. I previously showed you how to set the cputype used and you should be able to figure out how to add your own CFLAGS to the environment settings.

The recent options changes within the ports infrastructure (referred to as optionsng) does provide a way to set options for every port - tinderbox limitations prevent you using that within the environment settings for every port, but you can set some global options or turn on a few important options if that is all you want to do. Options set in the environment file will be applied to each port build, whether you choose to build with non-default options or not. If you want to configure options for a lot of ports then use the standard option config dialogs to set them up. My compileport script from the previous post allows you to use the -O option to use non-default options for each port.

So what are some options that you may want to add to your environment?


Well PAPERSIZE seems obvious. QT4_OPTIONS shows that any values with a space needs to be quoted, without the quotes only the first item is recognized. Within the environment file you can't use variable+=addvalue to set your variables gradually - you only get variable=value. The OPTIONS_SET and OPTIONS_UNSET provide a way to globally turn on or off common options. While a lot of options are unique to each port there is some consistency with naming that may also be expanded over time, with optionsng already adding some common ones like THREADS and DOCS to replace the NOPORTDOCS option that was previously available. To set an option only for a specific port use <uniquename>_SET. To get the ports uniquename use make -V UNIQUENAME eg -

cd /usr/ports/devel/py-gdata make -V UNIQUENAME py27-gdata cd /usr/ports/x11-toolkits/py-gtk2 make -V UNIQUENAME py-gtk2

While there is some consistency you can't always guess the ports uniquename from the portname. You may also want to look in /var/db/ports/<portname>/options for installed ports to see what values you have already used and what is available.

By default tinderbox isn't setup to store the port options you configure. You need to do that manually. To make it work you need to create a directory called options at the top of the tinderbox directory and inside that create a directory for each buildname you want options saved. As standard in unix the directory can be a link to another so you can use your existing options. To compile the ports with non-default options you need to build the ports with the -O option (or -o option to clear existing options and then set options)

So now all there is to do is create a build environment for your ports and start building. If you've been following along and have the base jails setup then -

cd /usr/local/tinderbox mkdir options cd options ln -s /var/db/ports 9-mypackages cd ../scripts ./tc createBuild -b 9-mypackages-amd64-clang -j 9.0-amd64 -p FreeBSD setenv OPTPORTLIST `pkg_info -aoq` ./compileport -O -B 9-mypackages -A amd64 -C clang

And if you are setting up your own packages to distribute through your network of FreeBSD machines you have a couple of options. To use them with the standard pkg_add you can either set PKG_PATH or PACKAGESITE to point to your packages. See man pkg_add for more details. If you use portmaster then you can set LOCAL_PACKAGEDIR to point to /usr/local/tinderbox/packages/9-mypackages-amd64-clang (or a common network mount) as well as PM_PACKAGES=first and PM_PACKAGES_LOCAL=pmp_local. Other package management tools should offer similar config options.


Watch Series's picture

Hello! I've been reading your site for a long time now and finally got the bravery to go ahead and give you a shout out from
Atascocita Tx! Just wanted to tell you keep up the good job!

Lyle's picture

Greetings Mike, Although you mention the tree is being watered well, it still sounds like leaf blister, which
can be corrected by deep watering throughout durations of completely dry weather condition and high winds.

best make up products's picture

I blog frequently and I really thank you for your content.
Your article has truly peaked my interest. I'm going to book mark your
site and keep checking for new information about once per week.
I subscribed to your Feed too.

Texas Cocaine Rehab Centers 1-888-3211-718's picture

Excellent post. I was checking constantly this blog and I'm impressed!

Very helpful information particularly the
last part :) I care for such information much. I was looking for this particular information for a
very long time. Thank you and good luck.

premium landing page's picture

I was wondering if you ever thought of changing the layout of your blog?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could connect
with it better. Youve got an awful lot of text for only having 1 or two pictures.
Maybe you could space it out better?

Luigi Wewege's picture

An outstanding share! I have just forwarded this onto a
co-worker who was conducting a little research on this.
And he actually ordered me breakfast simply because I stumbled upon it for him...
lol. So let me reword this.... Thanks for the meal!!
But yeah, thanks for spending the time to discuss this issue here on your site.

throwback jerseys's picture

Have you ever considered about including a little bit more than just your articles?
I mean, what you say is fundamental and all.
However think about if you added some great photos
or video clips to give your posts more, "pop"! Your content is excellent but with pics and
video clips, this website could definitely be one of the very
best in its niche. Great blog!

kinder surprise's picture

Greetings I am so excited I found your web site, I really found you
by accident, while I was searching on Askjeeve for something else, Anyways I am
here now and would just like to say thank you for a tremendous post and a all round thrilling blog (I also love the theme/design), I
don't have time to go through it all at the moment but I
have book-marked it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent work.

www.youtube.com's picture

I was curious if you ever thought of changing the
layout of your blog? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people
could connect with it better. Youve got an awful lot of text for
only having 1 or two pictures. Maybe you could space it out better?

youtube.com's picture

Fantastic website you have here but I was curious if you knew of any community forums that cover the same topics talked about here?
I'd really like to be a part of online community where I can get
responses from other experienced people that share the same interest.

If you have any suggestions, please let me know. Thanks!

pink music artist's picture

I like the valuable information you provide in your articles.
I will bookmark your weblog and check again here frequently.
I am quite sure I will learn many new stuff right here!
Good luck for the next!

auto transport's picture

My brother recommended I might like this blog. He was once entirely right.
This submit truly made my day. You can not imagine just how a
lot time I had spent for this info! Thank you!

https://www.youtube.com/'s picture

What's up to every one, it's genuinely a pleasant for me to
visit this web page, it includes helpful Information.

landing page builder's picture

Good day! Would you mind if I share your blog with my zynga group?
There's a lot of people that I think would really appreciate your content.
Please let me know. Cheers

Joel Robbins's picture

What you said made a bunch of sense. But, what about this?
suppose you were to write a killer headline?
I ain't suggesting your information isn't solid, however
suppose you added a post title that grabbed people's attention? I mean Add new comment | Shaneware.biz is kinda vanilla.

You ought to peek at Yahoo's home page and watch how
they create news headlines to get people to click.
You might add a video or a related picture or two to grab people excited
about everything've written. Just my opinion, it might bring your posts a little livelier.

Joe leno's picture

I got this web page from my buddy who shared with me on the topic of this web
page and now this time I am browsing this web site and reading very informative content here.

Learn More Here's picture

It is not my first time to pay a visit this site, i am browsing this web page dailly and
obtain pleasant information from here all the time.

Big Booty Videos's picture

Beautiful! That you do not come by data similar to this
easily and that I am not so ungrateful! Maintain it-up men!

bathing caps's picture

My coder is trying to persuade me to move to .net from PHP.
I have always disliked the idea because of the expenses.

But he's tryiong none the less. I've been using
WordPress on various websites for about a year and am worried about
switching to another platform. I have heard excellent things about blogengine.net.
Is there a way I can import all my wordpress posts into it?
Any help would be greatly appreciated!

Fresno plumbing's picture

So you, as the restorer, have to set realistic goals as to exactly what parts of the car you
are going to restore to their original states and what parts
of the car you are willing to restore "as close as possible"
to their original states. Strict standards and excellence
in service is what made Cullitons the premiere limo service
of choice for thousands of Torontonians as well as visiting guests from all over
the world. The damage varies from vehicle to vehicle but can be as small as light hail damage which is barely visible through to damage caused by falling trees.

Orville's picture

What's up to all, the contents present at this site are really amazing for people experience, well, keep up the good work fellows.

Ian Leaf's picture

I think that what you published was very reasonable.
However, what about this? suppose you wrote a catchier title?
I ain't saying your information is not solid, however what if you added a post title to maybe grab people's attention? I mean Add
new comment | Shaneware.biz is kinda plain. You might glance at Yahoo's home
page and note how they create article headlines to get people interested.
You might try adding a video or a related pic or two to
get people interested about everything've written. In my
opinion, it could bring your blog a little livelier.

comprar setas's picture

Sin embargo, cientificos del Centro de salud Universitario de Tampere (Finlandia)
demostraron en dos mil ocho que los hombres que tienen relaciones
mas a menudo son menos propensos a padecer este inconveniente.

Test snurr's picture

As Google Apps resellers, Cloud Future Systems is the best offering the
most effective services in Google apps. The two love affairs of our partners took place at an International Peace
Conference in Gothenburg, Sweden. It is a great opportunity to take advantage of sports betting and place some bets.

Replennage's picture

I was able to find good info from your content.

How To Cure Herpes In 2016's picture

We're residing in your global through which many illnesses include come forth with all the
moment. Many of those diseases are generally sexually
transported contamination which can propagate through sex.
Perhaps shielded sexual intercourse are certainly not
completely secure. Performed a person actually actually been aware of herpes
simplex virus contamination or maybe did you know everything relating to this?

Nevertheless, that is an exceptionally widespread contamination worldwide
nevertheless millions of people world wide don't perhaps are aware that just what herpes virus
specifically will be?
Based on most up-to-date analyze half the globe
inhabitants going through herpes simplex virus an infection and also the
numbers of herpes simplex virus individual is escalating with the period.
This fact indicates in which down the road this specific an infection could come up among the very best medical concerns while watching planet.

Do you consider that will herpes simplex virus disease is
usually treatable disease by way of pure herpes virus cure?
In the event you don't believe hsv simplex virus is usually a treatable sickness then you definitely
do not know the nature's energy. My partner and i admit that we now
have several treatment plans obtainable which could take care of genital
herpes virus virus infection yet you'll find nothing a lot better than the
normal herpes simplex virus heal. When you have recently been determined via herpes infection subsequently you have to know in which herpes virus just isn't a new treatable sickness using
medications including Acyclovir, Valacyclovir, Valtrex
along with Zovirax. Most of these remedies can easily simply
supress the particular signs regarding herpes virus
contamination but as well you could really feel serious unwanted side effects most of these medications.

There are numerous strong herbal treatments, dietary supplement, Extremely ingredients as well as uncooked diet accessible
which could quickly heal herpes virus illness.
Lysine, Vitamin and mineral G, Zinc, Oregano gas, Herbal tea tree acrylic in addition to uncooked honey may cure genital herpes virus
virus illness. Every one of these strong organic stuffs helps to improve ones body's defence mechanism.
Echinacea is made up of anti-viral houses which eliminates the herpes simplex virus plus
allows you boost the body's defence mechanism involving herpes
virus affected person. Glaciers packages aids you to obtain alleviate associated with extreme herpes indicators.
Yet don't reveal herpes simplex virus lesion for a long time towards
ice packs. Extra virgin olive oil works extremely
well because the moisturiser for your herpes simplex virus disease
Would people ever also heard of HSV ERASER? Certainly not but?
Effectively should you really want to reduce herpes virus permanently, after that you have to know concerning
this special plan. This is the natural herpes simplex virus remedy plan which usually allows each
hsv simplex virus affected person in order to remedy herpes
simplex virus eternally. This system is dependant on organic hsv simplex virus
remedy thus there isn't a chances of receiving the unwanted effects.
We've viewed a lot of sufferer professing they've already been healed coming from genital
herpes virus virus infection through HSV eraser.
Right now, this HSV ERASER will probably bring in the subsequent amount of HSV SIMPLEX
VIRUS fantastic software. This course will probably introduce ion beginning 2016.
This can be the greatest expect each and every herpes simplex virus individual
who desire to lose genital herpes virus virus an infection.

Testamatol's picture

It's actually a nice and helpful piece of info.
I'm happy that you simply shared this helpful info with us.
Please keep us up to date like this. Thanks
for sharing.

hack's picture

Great article.

clash of clans hack tool's picture

As the admin of this site is working, no doubt very
quickly it will be well-known, due to its quality contents.

invitation kits hobby lobby's picture

Has loads of them.

Chana's picture

Somewhat, the modern telepathic prefers merely to observe" details that could certainly not be actually quickly refuted by disbelieving doubters.

My blog post: Chana

www.youtube.com's picture

Today, 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 iPad is now destroyed and she has 83 views.
I know this is completely off topic but I
had to share it with someone!

motivational video's picture

always i used to read smaller content which also clear
their motive, and that is also happening with this paragraph which I am reading at this place.

Fibo Machine Pro Review's picture

I loved as much as you'll receive carried out right
here. The sketch is tasteful, your authored subject matter
stylish. nonetheless, you command get got
an shakiness over that you wish be delivering the following.
unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you shield this hike.

legami d&#039;amore's picture

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

skiing's picture

Hey very cool blog!! Man .. Beautiful .. Superb
.. I'll bookmark your web site and take the feeds also?
I'm happy to find numerous useful information right here in the post, we
want work out more techniques on this regard, thank you for sharing.

. . . . .

visionaryartshow.com's picture

?Que esta Teniendo lugar soy nuevo en esto, me encontre con este Tengo
encontraron absolutamente util y ha ayudado
a ayudado sacarme cargas. Espero a dar una contribucion y ASSIST otras diferentes usuarios

Domingo's picture

Charlie Hebdo, sus dibujantes y periodistas, han sido, desde que tenemos uso de razon, el referente
para los que ejercemos este trabajo.

heroes charge hack's picture

The personalities demand crack can work online
and it'll help you to obtain the methods without downloading or
spending anything.

agen bola tangkas online's picture

The lack of this publicity contributes directly to the amount of the population that watches other sports instead of soccer.

Then he added a ton of third-and-mediums and third-and-longs.
Look inside the records for more information before placing your soccer bets.

Dewey's picture

I am truly thankful to the owner of this website who has
shared this great paragraph at at this time.

cm4's picture

Undoubtedly, the internet is among the most preferred market places where sellers and buyers meet.
Producing a very light car will drop its fuel consumption, and oil companies will not appreciate this.
Go to the search tool and search for keyword like used cars in Bangalore, pre owned cars and second hand cars in Bangalore.

Skinception's picture

You need to be a part of a contest for one of the finest websites on the internet.
I will recommend this web site!

look at this web-site's picture

I like the helpful information you provide in your articles.
I'll bookmark your blog and check again here regularly.
I'm quite sure I'll learn many new stuff right here! Good
luck for the next!

bola tangkas's picture

Can the knowledge of mathematics help a gambler to win. This
is a competitive advantage for sports betting businesses because the options that it gives are more than what anybody expects.
A team with 2 losses might have lost both games right before the upcoming
game, and be on a losing streak.

Social Kickstart The Best Tool's picture

Awesome post.

Sexed Up's picture

I believe this is among the most significant information for me.
And i am glad reading your article. However want to
commentary on some common things, The website style is ideal, the articles is in reality great : D.
Good process, cheers

Gianluigi Buffon Jersey's picture

I will right away seize your rss as I can't in finding your email subscription link or e-newsletter service.
Do you've any? Please allow me recognize in order that I may just subscribe.

hay day mod apk's picture

With a whole lot of gems you can have all items, the best heroes, towers, army!

how to grow taller naturally's picture

No matter if some one searches for his required thing, so he/she wants to be available that in detail,
thus that thing is maintained over here.


Add new comment