summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Rothe <corsair@gentoo.org>2004-12-17 21:25:15 +0000
committerMarkus Rothe <corsair@gentoo.org>2004-12-17 21:25:15 +0000
commit08f40bb955b25a81d6fb14d0a5e2cedd1f244758 (patch)
tree86005ffee24ebe4993f8d17022ab8da3fa1486ef /dev-libs/nspr
parentstable on ppc64 (diff)
downloadgentoo-2-08f40bb955b25a81d6fb14d0a5e2cedd1f244758.tar.gz
gentoo-2-08f40bb955b25a81d6fb14d0a5e2cedd1f244758.tar.bz2
gentoo-2-08f40bb955b25a81d6fb14d0a5e2cedd1f244758.zip
added patch for ppc64
Diffstat (limited to 'dev-libs/nspr')
-rw-r--r--dev-libs/nspr/ChangeLog5
-rw-r--r--dev-libs/nspr/Manifest3
-rw-r--r--dev-libs/nspr/files/nspr-4.4.1-ppc64.patch71
-rw-r--r--dev-libs/nspr/nspr-4.4.1-r2.ebuild3
4 files changed, 79 insertions, 3 deletions
diff --git a/dev-libs/nspr/ChangeLog b/dev-libs/nspr/ChangeLog
index d89d63eeff5d..73c8176f9286 100644
--- a/dev-libs/nspr/ChangeLog
+++ b/dev-libs/nspr/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-libs/nspr
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.31 2004/12/17 20:58:36 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.32 2004/12/17 21:25:15 corsair Exp $
+
+ 17 Dec 2004; Markus Rothe <corsair@gentoo.org> nspr-4.4.1-r2.ebuild:
+ Added patch to let nss compile on ppc64
17 Dec 2004; Markus Rothe <corsair@gentoo.org> nspr-4.4.1-r2.ebuild:
Stable on ppc64
diff --git a/dev-libs/nspr/Manifest b/dev-libs/nspr/Manifest
index 91d18db33e9e..6b0289b5579c 100644
--- a/dev-libs/nspr/Manifest
+++ b/dev-libs/nspr/Manifest
@@ -2,10 +2,11 @@ MD5 69af549fb0db99363b6a3c0f69c44ed1 ChangeLog 3598
MD5 cee0bd3a864ab0f7c990d3d51b5d45db nspr-4.1.2.ebuild 1160
MD5 0598e8cd704060328f76cf8744c302ef nspr-4.3.ebuild 1011
MD5 0d6964f5c129a3c22f8dabc6c7088a68 nspr-4.4.1.ebuild 1142
-MD5 fca0d2a0e4de516583ad80f530fe48dd nspr-4.4.1-r2.ebuild 1809
+MD5 9688c47f3ce879568c533eda512c5e80 nspr-4.4.1-r2.ebuild 1853
MD5 10437559f8044e78299742d18180760e files/digest-nspr-4.1.2 63
MD5 6cbbac8e2a77405ce2ab861405896548 files/digest-nspr-4.3 61
MD5 0a10b7414a160ead09dbd743e3128364 files/digest-nspr-4.4.1 63
MD5 b12990968c289b9e7f8fbb2174ec827c files/nspr-4.3-amd64.patch 7713
MD5 1a031c0f4c5de0e38a0df0b5308c3453 files/nspr-4.4.1-hppa.patch 4046
MD5 0a10b7414a160ead09dbd743e3128364 files/digest-nspr-4.4.1-r2 63
+MD5 8febddba94492208369d1934210180f9 files/nspr-4.4.1-ppc64.patch 2077
diff --git a/dev-libs/nspr/files/nspr-4.4.1-ppc64.patch b/dev-libs/nspr/files/nspr-4.4.1-ppc64.patch
new file mode 100644
index 000000000000..a98848d2ebc8
--- /dev/null
+++ b/dev-libs/nspr/files/nspr-4.4.1-ppc64.patch
@@ -0,0 +1,71 @@
+--- nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg.orig 2003-01-23 18:03:19.000000000 +0100
++++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg 2004-10-28 17:23:36.137131376 +0200
+@@ -45,7 +45,53 @@
+
+ #define PR_AF_INET6 10 /* same as AF_INET6 */
+
+-#ifdef __powerpc__
++#ifdef __powerpc64__
++
++#undef IS_LITTLE_ENDIAN
++#define IS_BIG_ENDIAN 1
++#define IS_64
++
++#define PR_BYTES_PER_BYTE 1
++#define PR_BYTES_PER_SHORT 2
++#define PR_BYTES_PER_INT 4
++#define PR_BYTES_PER_INT64 8
++#define PR_BYTES_PER_LONG 8
++#define PR_BYTES_PER_FLOAT 4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD 8
++#define PR_BYTES_PER_DWORD 8
++
++#define PR_BITS_PER_BYTE 8
++#define PR_BITS_PER_SHORT 16
++#define PR_BITS_PER_INT 32
++#define PR_BITS_PER_INT64 64
++#define PR_BITS_PER_LONG 64
++#define PR_BITS_PER_FLOAT 32
++#define PR_BITS_PER_DOUBLE 64
++#define PR_BITS_PER_WORD 64
++
++#define PR_BITS_PER_BYTE_LOG2 3
++#define PR_BITS_PER_SHORT_LOG2 4
++#define PR_BITS_PER_INT_LOG2 5
++#define PR_BITS_PER_INT64_LOG2 6
++#define PR_BITS_PER_LONG_LOG2 6
++#define PR_BITS_PER_FLOAT_LOG2 5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2 6
++
++#define PR_ALIGN_OF_SHORT 2
++#define PR_ALIGN_OF_INT 4
++#define PR_ALIGN_OF_LONG 8
++#define PR_ALIGN_OF_INT64 8
++#define PR_ALIGN_OF_FLOAT 4
++#define PR_ALIGN_OF_DOUBLE 8
++#define PR_ALIGN_OF_POINTER 8
++#define PR_ALIGN_OF_WORD 8
++
++#define PR_BYTES_PER_WORD_LOG2 3
++#define PR_BYTES_PER_DWORD_LOG2 3
++
++#elif defined(__powerpc__)
+
+ #undef IS_LITTLE_ENDIAN
+ #define IS_BIG_ENDIAN 1
+
+--- nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h.orig 2004-10-28 17:28:02.931175520 +0200
++++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h 2004-10-28 17:28:52.716195584 +0200
+@@ -43,7 +43,9 @@
+
+ #define PR_LINKER_ARCH "linux"
+ #define _PR_SI_SYSNAME "LINUX"
+-#ifdef __powerpc__
++#ifdef __powerpc64__
++#define _PR_SI_ARCHITECTURE "ppc64"
++#elif defined(__powerpc__)
+ #define _PR_SI_ARCHITECTURE "ppc"
+ #elif defined(__alpha)
+ #define _PR_SI_ARCHITECTURE "alpha"
diff --git a/dev-libs/nspr/nspr-4.4.1-r2.ebuild b/dev-libs/nspr/nspr-4.4.1-r2.ebuild
index 1bb8d0a8444a..70d8f8058517 100644
--- a/dev-libs/nspr/nspr-4.4.1-r2.ebuild
+++ b/dev-libs/nspr/nspr-4.4.1-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.4.1-r2.ebuild,v 1.5 2004/12/17 20:58:36 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.4.1-r2.ebuild,v 1.6 2004/12/17 21:25:15 corsair Exp $
inherit eutils
@@ -27,6 +27,7 @@ src_unpack() {
cd ${S}
epatch ${FILESDIR}/${PN}-${PV}-hppa.patch
fi
+ epatch ${FILESDIR}/${PN}-${PV}-ppc64.patch
}
src_compile() {
cd ${S}/build