mirror of
https://git.yoctoproject.org/poky
synced 2026-03-01 21:09:39 +01:00
Some versions of patch (e.g. 2.6.1.136-31a7 on OpenSUSE 12.2) will refuse to patch a file via a symlink (probably a fairly sensible security precaution). The "base/" subdirectory specified within the ghostscript-9.05-NOT-check-endian.patch file was being lost by the default application with -p1, but this was not caught on most systems due to the symlink. Fix the path so that we always patch the file directly. Fixes [YOCTO #4773]. (From OE-Core rev: 96a009da2456a03c65c198d8dca7d2af8b228f4f) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
45 lines
1.2 KiB
Diff
45 lines
1.2 KiB
Diff
configure will check endianness of build machine. When cross compile it fails.
|
|
So remove the check for Yocto.
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Kang Kai <kai.kang@windriver.com>
|
|
Signed-off-by: Sen Zhang <sen.zhang@windriver.com>
|
|
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
|
|
|
|
--- ghostscript/base/configure.ac.orig 2013-06-24 03:58:26.224723002 -0400
|
|
+++ ghostscript/base/configure.ac 2013-06-24 04:03:29.730807957 -0400
|
|
@@ -255,13 +255,13 @@
|
|
|
|
AC_MSG_CHECKING([for big endian])
|
|
|
|
-AC_RUN_IFELSE(
|
|
- [AC_LANG_PROGRAM([#include <stdio.h>], [
|
|
- static const int one = 1;
|
|
- return (*(char*)&one == 0 ? 0 : 1);
|
|
- ])],
|
|
- [BIGENDIAN=1;AC_MSG_RESULT(big)],
|
|
- [BIGENDIAN=0;AC_MSG_RESULT(little)])
|
|
+#AC_RUN_IFELSE(
|
|
+# [AC_LANG_PROGRAM([#include <stdio.h>], [
|
|
+# static const int one = 1;
|
|
+# return (*(char*)&one == 0 ? 0 : 1);
|
|
+# ])],
|
|
+# [BIGENDIAN=1;AC_MSG_RESULT(big)],
|
|
+# [BIGENDIAN=0;AC_MSG_RESULT(little)])
|
|
|
|
|
|
|
|
@@ -1922,9 +1922,11 @@
|
|
if test "x$BIGENDIAN" != "x0"; then
|
|
LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$BIGENDIAN"
|
|
LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$BIGENDIAN"
|
|
+ AC_MSG_RESULT(big)
|
|
else
|
|
LCMS_ENDIAN=
|
|
LCMS2_ENDIAN=
|
|
+ AC_MSG_RESULT(little)
|
|
fi
|
|
|
|
AC_SUBST(LCMS_ENDIAN)
|