Skip to content

Commit

Permalink
dev-libs/nss: Fix some definitions for HPPA.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
Jeroen Roovers committed Dec 25, 2015
1 parent 95f0ac8 commit 6cdfec2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dev-libs/nss/files/nss-3.21-hppa-byte_order.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- a/nss/lib/dbm/include/mcom_db.h
+++ b/nss/lib/dbm/include/mcom_db.h
@@ -110,11 +110,13 @@
#endif /* !BYTE_ORDER */
#endif /* __sun */

+#ifndef BYTE_ORDER
#if defined(__hpux) || defined(__hppa)
#define BYTE_ORDER BIG_ENDIAN
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */
#endif
+#endif /* !BYTE_ORDER */

#if defined(AIXV3) || defined(AIX)
/* BYTE_ORDER, LITTLE_ENDIAN, BIG_ENDIAN are all defined here */
2 changes: 2 additions & 0 deletions dev-libs/nss/nss-3.21-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ src_prepare() {
# Custom changes for gentoo
epatch "${FILESDIR}/${PN}-3.21-gentoo-fixups.patch"
epatch "${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch"
epatch "${FILESDIR}/${PN}-3.21-hppa-byte_order.patch"

if use cacert ; then
epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
epatch "${FILESDIR}/${PN}-3.21-cacert-class3.patch" #521462
Expand Down

0 comments on commit 6cdfec2

Please sign in to comment.