How to test a library

This article should be useful for every arch tester that ask how properly test a library.

Today we see a case like boost. The firsts steps will be:

  1. Emerge the new boost version
  2. Do a multiple compile test changing the USE
  3. Make sure the new boost is set as default: eselect boost list

Now, to make sure to don’t break the tree, you will compile all stable packages that have boost as DEPEND. To do this task we will use the reverse-dependencies.py script from the arch-tools repository ( thanks to Paweł Hajdan to make it ).

How reverse-dependencies works? Is very simple, follow this example:

touch boost_in;touch boost_out
echo "=dev-libs/boost-1.49.0-r1" >> boost_in
echo "=dev-util/boost-build-1.49.0" >> boost_in
python reverse-dependecies.py -i boost_in -o boost_out

Let me explain a bit.

First we have created 2 files;

  • in the first will go the package that needs to check.
  • in the last will go the package found by the script.

Yes in this case boost-build is not useful, but this example should tell you that you can put more than one package in the input file(boost_in). With the last command we have now a boost_out structured in this manner:

# One of the following USE flag combinations is required:
# boost
sci-mathematics/singular

That obviously means that you need to enable boost USE to make sure that sci-mathematics/singular will use boost.

 

Now you need to compile all of packages in boost_out list and if you see failure related to boost you need to create a new bug on our bugzilla and make it as a blocker for boost stabilization.

Posted in arch testing, gentoo | 3 Comments

New category: arch testing

I added recently a new category for this blog: arch testing.

 

Since in the years I’ve ‘gained’ a long experience with arch testing I think would be great collect a series of tip for the current and future arch testers.

Obviously the posts in this category will be related primarily for amd64, but x86 guys could take many suggestions from non-amd64 specific posts

Posted in arch testing, gentoo | Leave a comment

Repoman-check before file stable request

I already recommended, time ago, in gentoo-dev mailing list to check with repoman before file stable request. Why?

The reason is very simply; is only a waste of time try to keyword and receive a bad response from repoman because missing some other packages with stable keyword.

So, as reminder, you need to do:

ekeyword all ${your_ebuild}
repoman full

You need to have REPOMAN_DEFAULT_OPTS=”–digest y” in your make.conf or you need to run repoman manifest before repoman full.

This sample of code can be automated with a little script.

If anything goes bad, you will see the list of package needed for this stabilization.

NOTE: be careful with ekeyword because will happen bug 399061.

Posted in gentoo | 3 Comments

First post

Hello folks!

I would like to thank infra guys, tampakrap particularly, to give me this place.

In this blog I will post everything related to gentoo development and what will be in mind in the future.

Posted in gentoo | 1 Comment