1 |
commit: 6cdfec22408db7f818d559bae8d53e656e5ec364 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 25 15:38:46 2015 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 15:39:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cdfec22 |
7 |
|
8 |
dev-libs/nss: Fix some definitions for HPPA. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-libs/nss/files/nss-3.21-hppa-byte_order.patch | 16 ++++++++++++++++ |
13 |
dev-libs/nss/nss-3.21-r1.ebuild | 2 ++ |
14 |
2 files changed, 18 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/nss/files/nss-3.21-hppa-byte_order.patch b/dev-libs/nss/files/nss-3.21-hppa-byte_order.patch |
17 |
new file mode 100644 |
18 |
index 0000000..703df99 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/nss/files/nss-3.21-hppa-byte_order.patch |
21 |
@@ -0,0 +1,16 @@ |
22 |
+--- a/nss/lib/dbm/include/mcom_db.h |
23 |
++++ b/nss/lib/dbm/include/mcom_db.h |
24 |
+@@ -110,11 +110,13 @@ |
25 |
+ #endif /* !BYTE_ORDER */ |
26 |
+ #endif /* __sun */ |
27 |
+ |
28 |
++#ifndef BYTE_ORDER |
29 |
+ #if defined(__hpux) || defined(__hppa) |
30 |
+ #define BYTE_ORDER BIG_ENDIAN |
31 |
+ #define BIG_ENDIAN 4321 |
32 |
+ #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */ |
33 |
+ #endif |
34 |
++#endif /* !BYTE_ORDER */ |
35 |
+ |
36 |
+ #if defined(AIXV3) || defined(AIX) |
37 |
+ /* BYTE_ORDER, LITTLE_ENDIAN, BIG_ENDIAN are all defined here */ |
38 |
|
39 |
diff --git a/dev-libs/nss/nss-3.21-r1.ebuild b/dev-libs/nss/nss-3.21-r1.ebuild |
40 |
index 06f3df4..fe74af8 100644 |
41 |
--- a/dev-libs/nss/nss-3.21-r1.ebuild |
42 |
+++ b/dev-libs/nss/nss-3.21-r1.ebuild |
43 |
@@ -52,6 +52,8 @@ src_prepare() { |
44 |
# Custom changes for gentoo |
45 |
epatch "${FILESDIR}/${PN}-3.21-gentoo-fixups.patch" |
46 |
epatch "${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch" |
47 |
+ epatch "${FILESDIR}/${PN}-3.21-hppa-byte_order.patch" |
48 |
+ |
49 |
if use cacert ; then |
50 |
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch" |
51 |
epatch "${FILESDIR}/${PN}-3.21-cacert-class3.patch" #521462 |