summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-10-19 15:28:45 +0000
committerjperkin <jperkin@pkgsrc.org>2017-10-19 15:28:45 +0000
commit64958f2647f9b04bad2db2756f06bae5ab772382 (patch)
tree92a3835c74e43b415e25e16f7e27bbc169b2b1fa /devel
parent10cc1d03dcd311550f56af78cf53ba835f4d3646 (diff)
downloadpkgsrc-64958f2647f9b04bad2db2756f06bae5ab772382.tar.gz
nss: Support SunOS byteswap macros.
Diffstat (limited to 'devel')
-rw-r--r--devel/nss/distinfo3
-rw-r--r--devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h30
2 files changed, 32 insertions, 1 deletions
diff --git a/devel/nss/distinfo b/devel/nss/distinfo
index 7991b66de20..e346e51654f 100644
--- a/devel/nss/distinfo
+++ b/devel/nss/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.76 2017/09/26 10:59:39 ryoon Exp $
+$NetBSD: distinfo,v 1.77 2017/10/19 15:28:45 jperkin Exp $
SHA1 (nss-3.33.tar.gz) = 85d25795b01be3f4459707ce04e9bbed9e549865
RMD160 (nss-3.33.tar.gz) = fe4d2fb56f15db3531e0efbdff8eda4aced41a03
@@ -17,4 +17,5 @@ SHA1 (patch-nss_cmd_platlibs.mk) = 7dadcb72acf15714c61ae74b21c5baf45bc51d4c
SHA1 (patch-nss_coreconf_OpenBSD.mk) = fccc17845c28f5b1268c96eb4e952e32dd530d1d
SHA1 (patch-nss_coreconf_command.mk) = 008f7670f164bf19555a7691f5a59fc8bf687078
SHA1 (patch-nss_lib_freebl_config.mk) = 5d374317b75c7db968a126f616bb396a012f675d
+SHA1 (patch-nss_lib_freebl_verified_kremlib.h) = a50ba4e027635b4342cf67d168c3a75ecefeb7b9
SHA1 (patch-security_nss_cmd_shlibsign_sign.sh) = 7948b7b502a4c148ee185836dde8a84d3aa388af
diff --git a/devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h b/devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h
new file mode 100644
index 00000000000..feeedbf5b75
--- /dev/null
+++ b/devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h
@@ -0,0 +1,30 @@
+$NetBSD: patch-nss_lib_freebl_verified_kremlib.h,v 1.1 2017/10/19 15:28:45 jperkin Exp $
+
+Support SunOS byteswap macros.
+
+--- nss/lib/freebl/verified/kremlib.h.orig 2017-09-20 06:47:27.000000000 +0000
++++ nss/lib/freebl/verified/kremlib.h
+@@ -100,6 +100,23 @@ typedef void *Prims_pos, *Prims_nat, *Pr
+ #define htobe32(x) OSSwapHostToBigInt32(x)
+ #define be32toh(x) OSSwapBigToHostInt32(x)
+
++#elif defined(__sun__)
++#include <sys/byteorder.h>
++#define htole64(x) LE_64(x)
++#define le64toh(x) LE_IN64(x)
++#define htobe64(x) BE_64(x)
++#define be64toh(x) BE_IN64(x)
++
++#define htole16(x) LE_16(x)
++#define le16toh(x) LE_IN16(x)
++#define htobe16(x) BE_16(x)
++#define be16toh(x) BE_IN16(x)
++
++#define htole32(x) LE_32(x)
++#define le32toh(x) LE_IN32(x)
++#define htobe32(x) BE_32(x)
++#define be32toh(x) BE_IN32(x)
++
+ // ... for Windows
+ #elif (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && \
+ !defined(__WINDOWS__)