pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc: !defined(__ANDROID__) doens't mean this is a linux host.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1a0e7e7ae8c5
branches:  trunk
changeset: 306194:1a0e7e7ae8c5
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Thu Apr 12 10:37:11 2018 +0000
description:
!defined(__ANDROID__) doens't mean this is a linux host.
Check defined(__linux__) instead.

XXX do other systems have <sys/auxv.h> ?

diffstat:

 devel/nss/distinfo                              |   3 +-
 devel/nss/patches/patch-nss_lib_freebl_blinit.c |  55 +++++++++++++++++++++++++
 2 files changed, 57 insertions(+), 1 deletions(-)

diffs (76 lines):

diff -r 1ca31355bc90 -r 1a0e7e7ae8c5 devel/nss/distinfo
--- a/devel/nss/distinfo        Thu Apr 12 10:26:39 2018 +0000
+++ b/devel/nss/distinfo        Thu Apr 12 10:37:11 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.84 2018/04/10 15:21:29 maya Exp $
+$NetBSD: distinfo,v 1.85 2018/04/12 10:37:11 bouyer Exp $
 
 SHA1 (nss-3.36.1.tar.gz) = d8b73f808054c7cc50f5e67bb94e5dd853ccc09f
 RMD160 (nss-3.36.1.tar.gz) = bdb7f2627cb42a871f5f046893699f9c01fc4cf2
@@ -16,6 +16,7 @@
 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_blinit.c) = 14d250c1aaa84c74cc300e490540ecda551731b9
 SHA1 (patch-nss_lib_util_utilpars.c) = 5d3000515b01037929730a752b7d7a0f46f06deb
 SHA1 (patch-nss_tests_all.sh) = f8d0fcfcd67dca757c9ce016660210b20b1e6e8f
 SHA1 (patch-nss_tests_merge_merge.sh) = 42a4866d226b1076740ba9a5e42c7604f2cb15a7
diff -r 1ca31355bc90 -r 1a0e7e7ae8c5 devel/nss/patches/patch-nss_lib_freebl_blinit.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nss/patches/patch-nss_lib_freebl_blinit.c   Thu Apr 12 10:37:11 2018 +0000
@@ -0,0 +1,55 @@
+$NetBSD: patch-nss_lib_freebl_blinit.c,v 1.1 2018/04/12 10:37:11 bouyer Exp $
+
+--- ./nss/lib/freebl/blinit.c.orig     2018-04-10 17:16:55.885129976 +0200
++++ ./nss/lib/freebl/blinit.c  2018-04-10 17:20:26.723480086 +0200
+@@ -91,7 +91,7 @@
+ }
+ #endif /* NSS_X86_OR_X64 */
+ 
+-#if (defined(__aarch64__) || defined(__arm__)) && !defined(__ANDROID__)
++#if (defined(__aarch64__) || defined(__arm__)) && defined(__linux__)
+ #if defined(__GNUC__) && __GNUC__ >= 2 && defined(__ELF__)
+ #include <sys/auxv.h>
+ extern unsigned long getauxval(unsigned long type) __attribute__((weak));
+@@ -100,9 +100,9 @@
+ #define AT_HWCAP2
+ #define AT_HWCAP
+ #endif /* defined(__GNUC__) && __GNUC__ >= 2 && defined(__ELF__)*/
+-#endif /* (defined(__aarch64__) || defined(__arm__)) && !defined(__ANDROID__) */
++#endif /* (defined(__aarch64__) || defined(__arm__)) && defined(__linux__) */
+ 
+-#if defined(__aarch64__) && !defined(__ANDROID__)
++#if defined(__aarch64__) && defined(__linux__)
+ // Defines from hwcap.h in Linux kernel - ARM64
+ #define HWCAP_AES (1 << 3)
+ #define HWCAP_PMULL (1 << 4)
+@@ -124,9 +124,9 @@
+     /* aarch64 must support NEON. */
+     arm_neon_support_ = disable_arm_neon == NULL;
+ }
+-#endif /* defined(__aarch64__) && !defined(__ANDROID__) */
++#endif /* defined(__aarch64__) && defined(__linux__) */
+ 
+-#if defined(__arm__) && !defined(__ANDROID__)
++#if defined(__arm__) && defined(__linux__)
+ // Defines from hwcap.h in Linux kernel - ARM
+ /*
+  * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP
+@@ -155,7 +155,7 @@
+         arm_neon_support_ = hwcaps & HWCAP_NEON && disable_arm_neon == NULL;
+     }
+ }
+-#endif /* defined(__arm__) && !defined(__ANDROID__) */
++#endif /* defined(__arm__) && defined(__linux__) */
+ 
+ // Enable when Firefox can use it.
+ // #if defined(__ANDROID__) && (defined(__arm__) || defined(__aarch64__))
+@@ -238,7 +238,7 @@
+ {
+ #ifdef NSS_X86_OR_X64
+     CheckX86CPUSupport();
+-#elif (defined(__aarch64__) || defined(__arm__)) && !defined(__ANDROID__)
++#elif (defined(__aarch64__) || defined(__arm__)) && defined(__linux__)
+     CheckARMSupport();
+ #endif
+     return PR_SUCCESS;



Home | Main Index | Thread Index | Old Index