summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2004-04-06 19:51:49 +0000
committerGuy Martin <gmsoft@gentoo.org>2004-04-06 19:51:49 +0000
commit6d3f355f978a95c6ef3c963918dbe482a41e13cc (patch)
tree69499e9b4bea98aa127e982269b9ad6b7687573e /dev-libs/nspr
parentStable in x86 (Manifest recommit) (diff)
downloadgentoo-2-6d3f355f978a95c6ef3c963918dbe482a41e13cc.tar.gz
gentoo-2-6d3f355f978a95c6ef3c963918dbe482a41e13cc.tar.bz2
gentoo-2-6d3f355f978a95c6ef3c963918dbe482a41e13cc.zip
Added a build-fix patch for hppa.
Diffstat (limited to 'dev-libs/nspr')
-rw-r--r--dev-libs/nspr/ChangeLog5
-rw-r--r--dev-libs/nspr/files/nspr-4.4.1-hppa.patch133
-rw-r--r--dev-libs/nspr/nspr-4.4.1.ebuild6
3 files changed, 142 insertions, 2 deletions
diff --git a/dev-libs/nspr/ChangeLog b/dev-libs/nspr/ChangeLog
index 2162aa029fd2..dc358c8a1673 100644
--- a/dev-libs/nspr/ChangeLog
+++ b/dev-libs/nspr/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-libs/nspr
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.18 2004/03/14 12:23:57 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.19 2004/04/06 19:51:49 gmsoft Exp $
+
+ 06 Apr 2004; Guy Martin <gmsoft@gentoo.org> :
+ Added a build-fix patch for hppa.
14 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> nspr-4.1.2.ebuild,
nspr-4.3.ebuild, nspr-4.4.1.ebuild:
diff --git a/dev-libs/nspr/files/nspr-4.4.1-hppa.patch b/dev-libs/nspr/files/nspr-4.4.1-hppa.patch
new file mode 100644
index 000000000000..33b1c5494eba
--- /dev/null
+++ b/dev-libs/nspr/files/nspr-4.4.1-hppa.patch
@@ -0,0 +1,133 @@
+diff -uNr nspr-4.4.1.orig/mozilla/nsprpub/config/Linux.mk nspr-4.4.1/mozilla/nsprpub/config/Linux.mk
+--- nspr-4.4.1.orig/mozilla/nsprpub/config/Linux.mk 2004-04-05 15:09:53.000000000 +0000
++++ nspr-4.4.1/mozilla/nsprpub/config/Linux.mk 2004-04-05 15:10:21.000000000 +0000
+@@ -66,12 +66,17 @@
+ ifeq (86,$(findstring 86,$(OS_TEST)))
+ CPU_ARCH := x86
+ else
++ifeq ($(OS_TEST),parisc)
++OS_REL_CFLAGS = -DLINUX1_2 -D_XOPEN_SOURCE
++CPU_ARCH = hppa
++else
+ ifeq (,$(filter-out arm% sa110,$(OS_TEST)))
+ CPU_ARCH := arm
+ else
+ CPU_ARCH := $(OS_TEST)
+ endif
+ endif
++endif
+ CPU_ARCH_TAG = _$(CPU_ARCH)
+
+ CC = gcc
+diff -uNr nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.cfg nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg
+--- nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.cfg 2004-04-05 15:09:54.000000000 +0000
++++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.cfg 2004-04-05 15:10:21.000000000 +0000
+@@ -414,6 +414,96 @@
+ #define PR_BYTES_PER_WORD_LOG2 2
+ #define PR_BYTES_PER_DWORD_LOG2 3
+
++#elif defined(__hppa__)
++
++#undef IS_LITTLE_ENDIAN
++#define IS_BIG_ENDIAN 1
++
++#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 4
++#define PR_BYTES_PER_FLOAT 4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD 4
++#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 32
++#define PR_BITS_PER_FLOAT 32
++#define PR_BITS_PER_DOUBLE 64
++#define PR_BITS_PER_WORD 32
++
++#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 5
++#define PR_BITS_PER_FLOAT_LOG2 5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2 5
++
++#define PR_ALIGN_OF_SHORT 2
++#define PR_ALIGN_OF_INT 4
++#define PR_ALIGN_OF_LONG 4
++#define PR_ALIGN_OF_INT64 8
++#define PR_ALIGN_OF_FLOAT 4
++#define PR_ALIGN_OF_DOUBLE 8
++#define PR_ALIGN_OF_POINTER 4
++#define PR_ALIGN_OF_WORD 4
++
++#define PR_BYTES_PER_WORD_LOG2 2
++#define PR_BYTES_PER_DWORD_LOG2 3
++
++#elif defined(__hppa__)
++
++#undef IS_LITTLE_ENDIAN
++#define IS_BIG_ENDIAN 1
++
++#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 4
++#define PR_BYTES_PER_FLOAT 4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD 4
++#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 32
++#define PR_BITS_PER_FLOAT 32
++#define PR_BITS_PER_DOUBLE 64
++#define PR_BITS_PER_WORD 32
++
++#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 5
++#define PR_BITS_PER_FLOAT_LOG2 5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2 5
++
++#define PR_ALIGN_OF_SHORT 2
++#define PR_ALIGN_OF_INT 4
++#define PR_ALIGN_OF_LONG 4
++#define PR_ALIGN_OF_INT64 8
++#define PR_ALIGN_OF_FLOAT 4
++#define PR_ALIGN_OF_DOUBLE 8
++#define PR_ALIGN_OF_POINTER 4
++#define PR_ALIGN_OF_WORD 4
++
++#define PR_BYTES_PER_WORD_LOG2 2
++#define PR_BYTES_PER_DWORD_LOG2 3
++
+ #elif defined(__s390__)
+
+ #define IS_BIG_ENDIAN 1
+diff -uNr nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.h nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h
+--- nspr-4.4.1.orig/mozilla/nsprpub/pr/include/md/_linux.h 2004-04-05 15:09:54.000000000 +0000
++++ nspr-4.4.1/mozilla/nsprpub/pr/include/md/_linux.h 2004-04-05 15:12:45.000000000 +0000
+@@ -63,6 +63,8 @@
+ #define _PR_SI_ARCHITECTURE "s390"
+ #elif defined(__s390x__)
+ #define _PR_SI_ARCHITECTURE "s390x"
++#elif defined(__hppa__)
++#define _PR_SI_ARCHITECTURE "hppa"
+ #else
+ #error "Unknown CPU architecture"
+ #endif
diff --git a/dev-libs/nspr/nspr-4.4.1.ebuild b/dev-libs/nspr/nspr-4.4.1.ebuild
index 8d102d403106..f25e3e232129 100644
--- a/dev-libs/nspr/nspr-4.4.1.ebuild
+++ b/dev-libs/nspr/nspr-4.4.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.4.1.ebuild,v 1.5 2004/03/14 12:23:57 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.4.1.ebuild,v 1.6 2004/04/06 19:51:49 gmsoft Exp $
DESCRIPTION="Netscape Portable Runtime"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
@@ -19,6 +19,10 @@ src_unpack() {
if [ "${ARCH}" = "amd64" ]
then
cd ${S}; epatch ${FILESDIR}/${PN}-4.3-amd64.patch
+ elif [ "${ARCH}" = "hppa" ]
+ then
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-${PV}-hppa.patch
fi
}
src_compile() {