[oe] [RFC] move to opkg / md5 error on big-endian machine

Jeremy Lainé jeremy.laine at bolloretelecom.eu
Wed Mar 19 17:52:27 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

opkg systematically fails to check the MD5 checksums on big-endian
targets. The reason for this is that md5.c was taken from glibc, and
it only sets the endianness correctly if _LIBC is defined:

#ifdef _LIBC
# include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN
#  define WORDS_BIGENDIAN 1
# endif
[snip]
#endif

Attached is a patch thats sets WORDS_BIGENDIAN on big-endian machines
without touching the code, and fixes the MD5 errors I was getting.

Rather than putting this patch into OE, maybe we should push this
upstream?

Cheers,

- --
Jeremy LAINE
Bolloré telecom | 11bis, rue Scribe | F-75009 Paris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH4VLbCL1n3lVB9EYRArVFAJ9M22nqlh2jqV+OKg7HqNsgIC/hBgCfa2R8
VdUuk6OIo5W72sXs/8tQ8G8=
=DyiG
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_endianness.patch
Type: text/x-diff
Size: 1022 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080319/a1510ee6/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_endianness.patch.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080319/a1510ee6/attachment-0002.obj>


More information about the Openembedded-devel mailing list