Bug#606224: oggvideotools: oggJoin fails on powerpc

Petter Reinholdtsen pere at hungry.com
Thu Sep 24 08:13:54 UTC 2015

[Petter Reinholdtsen]
> Next step is uploading, asking ftpmasters to drop all archs where
> the build fail, and try to fix the bug in the code to get the build
> working again.

The new package is uploaded, and ftpmasters dropped the binaries on
the failing architectures (mips, powerpc, s390, hppa, ppc64).

I've had a look at the code, and concluded that I do not have capasity
to fix the endian problems there.  There is no check in the code to
detect the endianness, and for example src/definition.h include code
that swap bytes around when reading files, assuming the platform is
little endian.  It was not enough to make these functions into no-ops,
so the assumtion about endianness is located elsewhere too.

I suspect it would be better to rewrite the code to use the htonl()
family of functions instead of having home made convert32() functions,
perhaps adding a similar set of functions for converting little endian
values to host endianness.

I leave the porting to upstream, platform porters, or others
interested in getting the programs working on big endian platforms..

Happy hacking
Petter Reinholdtsen

More information about the pkg-xiph-maint mailing list