Tinderbox extra scripts

Submitted by Shane on Wed, 04/07/2012 - 9:52pm

Continuing on from my previous two ramblings let's have a look at two scripts I use with my tinderbox setup. It may not be the best place but I decided to keep these within the tinderbox/scripts folder.

The first script is gencompilerenvfiles which I have expanded a little since my previous post.

So the changes since my previous post are fairly small and obvious - first I added NO_WERROR and WERROR which allows some ports to finish building that only generate warnings. Some ports are setup to treat warnings as errors causing the build to stop. While it can make sense with some ports, others it isn't of concern and only gets annoying that the builds stop and you take 10 minutes to figure out that it's all because of a simple warning.

The next change is the addition of ARCH - when building for the same arch as the base system this is of no concern but some ports have a problem building on an amd64 system when the compiler is generating x86 code. The ARCH definition overcomes that issue.

The other change is the conditional addition of CPUTYPE. This is added by calling the script with an argument of cpu. I found a couple of ports that have trouble compiling when targeting the minimum cpu features. While the cpu types used can be adjusted I chose pentium2 as the minimum 32bit as i686 is a common base but sometimes the lack of mmx causes problems, pentium2 is the next one up that has mmx support, pentium4 or prescott are other good choices if you know the minimum cpu your builds need to run on or if you need sse. For amd64 I chose nocona as the first Intel 64bit cpu, not sure that core2 would be any advantage but this can be changed to corei7 to include sse4.2 support. Other options for amd cpu's can be used if you want to test against amd specific features.

The other script I showed previously I called testbuilds.sh. I have expanded this script quite a bit and now call it compileport - while it is now a lot longer than the previous example it's not really more complex. The extra length is from many case and if statements than any real complexity. You can download it below if you want to use it or just read through it.

For the most part you should be able to figure it out based on the comments and help (-h) included within the script. To compile a port we want to know 4 things - sysversion arch compiler and port, sysversion arch and compiler default to current i386/amd64 and gcc/clang and can be left out if you wish to use that combination. That leaves us with specifying the port, giving a minimum of compileport -P <category/portname> to compile against 10-CURRENT.

A few bonus options for sysversion are for preset searches - all current stable and release should be obvious, with releng being a moving target based on system releases. Currently this is set to 9.0 8.3 and 7.4 - being the highest minor release of each major version. Over time this should be updated to include newer releases and drop the less than current releases. So when 9.1 goes beta or RC1 it would be added to the list and after release we can remove 9.0.

If you want to setup default values you can do that through environment variables, which can also be setup in your shell rc files like any other variable. So if you always compile for 9-STABLE you can set OPTBASEVERS to 9-STABLE and it will be used without you having to specify -B 9-STABLE every time. This is where the upper/lower case options come into play. If you have the OPTBASEVERS set to 9-STABLE then compileport -b 8-STABLE will build the port for both 9-STABLE and 8-STABLE but if you use compileport -B 8-STABLE then it will ignore the environment settings and just compile for 8-STABLE. The real advantage to environment settings comes when you want to compile a list of ports. This may be a preset list of all the ports you maintain or you can do something like -

setenv OPTPORTLIST `pkg_info -aoq`
compileport -B all

will compile every port you have installed on your system with every tinderbox build you have setup - or -

1480 comments

Good day I am so happy I found your website, I really found you by accident, while I was searching on Bing for something else,
Nonetheless I am here now and would just like to say many thanks for a tremendous post and a all round thrilling blog (I also love the
theme/design), I don't have time to browse
it all at the minute but I have bookmarked it
and also added in your RSS feeds, so when I have time I will be
back to read much more, Please do keep up the awesome job.

Hey! I just wanted to ask if you ever have any issues with hackers?
My last blog (wordpress) was hacked and I ended
up losing several weeks of hard work due to
no backup. Do you have any solutions to stop hackers?

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

First off I would like to say awesome blog! I had a quick question in which I'd like to ask if you don't mind.

I was interested to know how you center yourself and clear your
thoughts before writing. I have had a tough time clearing my thoughts
in getting my thoughts out there. I truly do take pleasure
in writing but it just seems like the first 10 to 15 minutes are generally
wasted simply just trying to figure out how to begin. Any ideas or tips?
Appreciate it!

You'll take the same information and set up it, and cut it
down, or repurpose it for each totally differenmt social media primarily based on that social media alone in addition to the message you're attempting to impart.

Herpes is a skin infection that is caused by the particular herpes
virus. Herpes illness commonly seen in men and women.
You will discover a couple forms of hsv simplex virus that can cause herpes simplex virus contamination for instance herpes virus 1 and herpes
virus 2. Each sorts of malware tend to be smoothly contagious
in addition to all people have reached the risk of getting this disease.

Herpes virus illness could possibly be very distressing of computer worsen. It's true in which normally herpes virus
disease doesn't generate symptoms or maybe in the event that signs or symptoms
arise might be incredibly moderate since that remain unseen. Yet as soon as this kind of worsen it
will induced an individual pain. A current study expressed that will over
fifty percent on the world population enduring herpes simplex virus illness along with the count growing day
by day.
There are many signs and symptoms of genital herpes virus virus infection realised for you to identify herpes virus an infection.
These kind of signs and symptoms are hurtful tender spot, watering lesion,
frosty aching and also signs and symptoms like flu.

To be able to find hsv simplex virus illness there are
various checks offered which in turn identify herpes virus illness
for example pcr checks, herpes simplex virus antigen recognition make sure virus-like traditions test
out.
The best way to treatment virtually any forms of herpes
simplex virus disease is by using hsv simplex virus do-it-yourself solution. You'll find nothing a
lot better than applying do-it-yourself solution with regard to
herpes simplex virus heal. Do-it-yourself solution or
maybe hsv simplex virus healthy cure will surely treatment
herpes simplex virus illness once and for all with virtually no negative effects.

Do an individual ever heard connected with HSV Eraser?
Certainly not but. Very well herpes eraser is really a program which in turn helps
herpes virus affected individual to remove the idea for a long time.
That is completely based on normal genital herpes virus virus treatment.
You should utilize this kind of treat seeing that
home cure. This system provides you with the many essential information about how to
cure genital herpes virus virus infection by utilizing do-it-yourself solution products.
This program's major purpose is to increase the immunity process and so that you'll
be able to struggle far better via hsv simplex virus illness.
Since the deal is completely depending on normal
treatments thus there is no prospects for getting virtually any kinds of genital
herpes virus virus cue side effects. Although if you have recently been using medicines like acyclovir,
valacyclovir, famcyclovir as well as Valtrex to be able to cure herpes disease i quickly must say you might
be producing miscalculation. People can't treat herpes virus disease by making use of these treatments.
Most of these treatments can certainly just give you uncomfortable side effects practically nothing different.
Do-it-yourself solution is the greatest substitute for remedy herpes simplex virus
disease.

The Hollywood celebrity couple poses for photos on the red carpet
in matching black outfits. The book by Max Brooks talks about a war between folks and zombies.
One that will help get us from point A to B and possibly to Z.

I blog frequently and I seriously appreciate your information. This
article has truly peaked my interest. I will take a note of your website and keep checking
for new details about once a week. I opted in for your RSS feed too.

Hiya! I know this is kinda off topic but I'd figured
I'dask. Would you be interested in exchanging links or maybe guest
writing a blog article or vice-versa? My blog covers a lot of the
same subjects as yours and I believe we could greatly benefit from each other.
If you might be interested feel free to shoot me an e-mail.
I look forward to hearing from you! Awesome blog by the
way!

Do you mind if I quote a couple of your articles as long as
I provide credit and sources back to your site? My blog site is in the
very same niche as yours and my visitors would really benefit from some of the information you present
here. Please let me know if this okay with you. Many thanks!

We are a group of volunteers and starting a new scheme in our community.
Your website provided us with useful info to work on.
You have done an impressive process and our whole neighborhood will probably be grateful to
you.

Hello there, I found your blog by means of Google
at the same time as looking for a similar matter, your website came up,it seems
great. I have bookmarked it in my google bookmarks.

Hello there, just changed into aware of your weblog through
Google, and found that it is truly informative.
I am gonna be careful for brussels. I'll be grateful for those who continue
this in future. Numerous folks shall be benefited from your writing.

You are so awesome! I do not suppose I've truly read through a single
thing like this before. So great to find somebody with a
few genuine thoughts on this topic. Really.. thanks for starting this up.
This website is one thing that is needed on the internet,
someone with a little originality!

Excellent goods from you, man. I've understand
your stuff previous to and you're just extremely magnificent.
I really like what you've acquired here, really like what you are saying and the way in which you say it.
You make it enjoyable and you still take care of to keep it smart.
I can't wait to read much more from you. This is actually a terrific web site.

I know this if off topic but I'm looking into starting my own weblog and was curious what
all is required 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% certain. Any recommendations or advice would
be greatly appreciated. Thank you

My partner and I stumbled over here by a different
web address and thought I might check things out. I like what I see so now i'm following you.
Look forward to exploring your web page for
a second time.