From 30e96aac8789f51f238c5b8bd0dd893a83a8f3dd8f0c12610b88f2699e8685c2 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Fri, 13 Dec 2013 14:50:24 +0000 Subject: [PATCH] Accepting request 210800 from openSUSE:Factory:PowerLE - Add ppc64le-support.patch: * add support for powerpc64le-linux OBS-URL: https://build.opensuse.org/request/show/210800 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nspr?expand=0&rev=60 --- mozilla-nspr.changes | 6 ++++++ mozilla-nspr.spec | 2 ++ ppc64le-support.patch | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 ppc64le-support.patch diff --git a/mozilla-nspr.changes b/mozilla-nspr.changes index ec752f3..8251331 100644 --- a/mozilla-nspr.changes +++ b/mozilla-nspr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 12 03:58:23 UTC 2013 - uweigand@de.ibm.com + +- Add ppc64le-support.patch: + * add support for powerpc64le-linux + ------------------------------------------------------------------- Mon Nov 11 21:59:52 UTC 2013 - wr@rosenauer.org diff --git a/mozilla-nspr.spec b/mozilla-nspr.spec index ac637ef..5364551 100644 --- a/mozilla-nspr.spec +++ b/mozilla-nspr.spec @@ -35,6 +35,7 @@ Obsoletes: mozilla-nspr-64bit Source: nspr-%{version}.tar.bz2 Source1: baselibs.conf Patch0: config-guess-sub-update.diff +Patch1: ppc64le-support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -64,6 +65,7 @@ memory management (malloc and free), and shared library linking. %prep %setup -n nspr-%{version} -q %patch0 -p0 +%patch1 -p1 %build # set buildtime to "last-modification-time" diff --git a/ppc64le-support.patch b/ppc64le-support.patch new file mode 100644 index 0000000..21b5591 --- /dev/null +++ b/ppc64le-support.patch @@ -0,0 +1,32 @@ +Index: nspr-4.10.2/pr/include/md/_linux.cfg +=================================================================== +--- nspr-4.10.2.orig/pr/include/md/_linux.cfg ++++ nspr-4.10.2/pr/include/md/_linux.cfg +@@ -29,8 +29,13 @@ + + #ifdef __powerpc64__ + ++#ifdef __LITTLE_ENDIAN__ ++#define IS_LITTLE_ENDIAN 1 ++#undef IS_BIG_ENDIAN ++#else + #undef IS_LITTLE_ENDIAN + #define IS_BIG_ENDIAN 1 ++#endif + #define IS_64 + + #define PR_BYTES_PER_BYTE 1 +@@ -75,8 +80,13 @@ + + #elif defined(__powerpc__) + ++#ifdef __LITTLE_ENDIAN__ ++#define IS_LITTLE_ENDIAN 1 ++#undef IS_BIG_ENDIAN ++#else + #undef IS_LITTLE_ENDIAN + #define IS_BIG_ENDIAN 1 ++#endif + + #define PR_BYTES_PER_BYTE 1 + #define PR_BYTES_PER_SHORT 2