opkg: fix md5 hashing on big-endian machines
authorJeremy Laine <jeremy.laine@m4x.org>
Tue, 25 Mar 2008 08:47:12 +0000 (08:47 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Tue, 25 Mar 2008 08:47:12 +0000 (08:47 +0000)
packages/opkg/files/.mtn2git_empty [new file with mode: 0644]
packages/opkg/files/fix_endianness.patch [new file with mode: 0644]
packages/opkg/opkg.inc
packages/opkg/opkg_svn.bb

diff --git a/packages/opkg/files/.mtn2git_empty b/packages/opkg/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/opkg/files/fix_endianness.patch b/packages/opkg/files/fix_endianness.patch
new file mode 100644 (file)
index 0000000..8632ce5
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN opkg.orig/configure.ac opkg/configure.ac
+--- opkg.orig/configure.ac     2008-03-20 13:29:09.000000000 +0100
++++ opkg/configure.ac  2008-03-25 09:39:52.000000000 +0100
+@@ -94,7 +94,7 @@
+ AC_CHECK_MEMBERS([struct stat.st_rdev])
+ # Checks endianness
+-AC_C_BIGENDIAN(ENDIAN_CFLAGS="-DWORDS_BIGENDIAN=1",)
++AC_C_BIGENDIAN(BIGENDIAN_CFLAGS="-DWORDS_BIGENDIAN=1",)
+ AC_SUBST(BIGENDIAN_CFLAGS)
+ # Don't do annoying tests that don't work when cross-compiling, just trust them.
index 2179f55..6459ca7 100644 (file)
@@ -5,7 +5,8 @@ LICENSE = "GPL"
 DEPENDS = "curl gpgme"
 PV = "0.0+svnr${SRCREV}"
 
-SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http"
+SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http \
+           file://fix_endianness.patch;patch=1"
 S = "${WORKDIR}/opkg"
 
 inherit autotools pkgconfig
index 30461ea..81401dd 100644 (file)
@@ -1,6 +1,6 @@
 require opkg.inc
 
-PR = "r2"
+PR = "r3"
 
 PACKAGES =+ "libopkg-dev libopkg"