I did some debugging and it turns out that the .ipk packages built
during the bitbake process do not exactly comply with the specification
published in  while arfile.py relies on this.
The version of ar shipped with my version of binutils extracts even
these non-compliant packages without a problem which makes me want to
blame the implementation in arfile.py.
The attached diff fixed the problem for me.