diff -Nru lz4-0.0~r114/debian/changelog lz4-0.0~r114/debian/changelog --- lz4-0.0~r114/debian/changelog 2014-03-22 05:24:13.000000000 +0000 +++ lz4-0.0~r114/debian/changelog 2014-04-14 15:45:26.000000000 +0000 @@ -1,3 +1,12 @@ +lz4 (0.0~r114-2ubuntu1) trusty; urgency=medium + + * debian/patches/fix-endianness-check.patch: Include before using + __GLIBC__. Checking for __GLIBC__ without including a header that defines + it doesn't work very well, so the endianness falls back to the hardcoded + arch list, which incorrectly identifies ppc64el as big endian. + + -- William Grant Mon, 14 Apr 2014 16:25:20 +0100 + lz4 (0.0~r114-2) unstable; urgency=low * Update patches/add-support-kfreebsd.patch. diff -Nru lz4-0.0~r114/debian/control lz4-0.0~r114/debian/control --- lz4-0.0~r114/debian/control 2014-03-10 00:03:45.000000000 +0000 +++ lz4-0.0~r114/debian/control 2014-04-14 15:36:05.000000000 +0000 @@ -1,6 +1,7 @@ Source: lz4 Priority: extra -Maintainer: Nobuhiro Iwamatsu +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Nobuhiro Iwamatsu Build-Depends: debhelper (>= 9.0.0) Standards-Version: 3.9.5 Section: utils diff -Nru lz4-0.0~r114/debian/patches/fix-endianness-check.patch lz4-0.0~r114/debian/patches/fix-endianness-check.patch --- lz4-0.0~r114/debian/patches/fix-endianness-check.patch 1970-01-01 00:00:00.000000000 +0000 +++ lz4-0.0~r114/debian/patches/fix-endianness-check.patch 2014-04-14 15:45:11.000000000 +0000 @@ -0,0 +1,30 @@ +Description: Fix __GLIBC__ endianness check to include stdlib.h + Checking for __GLIBC__ without including a header that defines it + doesn't work very well, so the endianness falls back to the hardcoded + arch list, which incorrectly identifies ppc64el as big endian. +Author: William Grant + +Index: lz4-0.0~r114/lz4.c +=================================================================== +--- lz4-0.0~r114.orig/lz4.c 2014-04-14 16:25:19.569151223 +0100 ++++ lz4-0.0~r114/lz4.c 2014-04-14 16:44:40.081195450 +0100 +@@ -68,6 +68,7 @@ + * Little Endian or Big Endian ? + * Overwrite the #define below if you know your architecture endianess + */ ++#include + #if defined (__GLIBC__) + # include + # if (__BYTE_ORDER == __BIG_ENDIAN) +Index: lz4-0.0~r114/lz4hc.c +=================================================================== +--- lz4-0.0~r114.orig/lz4hc.c 2014-04-14 16:25:19.569151223 +0100 ++++ lz4-0.0~r114/lz4hc.c 2014-04-14 16:44:50.917195863 +0100 +@@ -66,6 +66,7 @@ + * Little Endian or Big Endian ? + * Overwrite the #define below if you know your architecture endianess + */ ++#include + #if defined (__GLIBC__) + # include + # if (__BYTE_ORDER == __BIG_ENDIAN) diff -Nru lz4-0.0~r114/debian/patches/series lz4-0.0~r114/debian/patches/series --- lz4-0.0~r114/debian/patches/series 2014-03-22 00:24:44.000000000 +0000 +++ lz4-0.0~r114/debian/patches/series 2014-04-14 15:23:09.000000000 +0000 @@ -1,3 +1,4 @@ add-ldflags.patch fix-install.patch add-support-kfreebsd.patch +fix-endianness-check.patch