mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
nss: Fix build on mips/clang
This issue is also reported here https://trac.macports.org/ticket/51709 Patch is also from same ticket (From OE-Core rev: 119ff60101ed6fd542f1280d37a24411d8b14264) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
nss does not build on mips with clang because wrong types are used?
|
||||
|
||||
pqg.c:339:16: error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
|
||||
if (addend < MP_DIGIT_MAX) {
|
||||
~~~~~~ ^ ~~~~~~~~~~~~
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Pending
|
||||
Index: nss-3.24/nss/lib/freebl/pqg.c
|
||||
===================================================================
|
||||
--- nss-3.24.orig/nss/lib/freebl/pqg.c
|
||||
+++ nss-3.24/nss/lib/freebl/pqg.c
|
||||
@@ -322,8 +322,8 @@ generate_h_candidate(SECItem *hit, mp_in
|
||||
|
||||
static SECStatus
|
||||
addToSeed(const SECItem * seed,
|
||||
- unsigned long addend,
|
||||
- int seedlen, /* g in 186-1 */
|
||||
+ unsigned long long addend,
|
||||
+ int seedlen, /* g in 186-1 */
|
||||
SECItem * seedout)
|
||||
{
|
||||
mp_int s, sum, modulus, tmp;
|
||||
@@ -21,6 +21,7 @@ SRC_URI = "\
|
||||
file://nss-fix-incorrect-shebang-of-perl.patch \
|
||||
file://nss-fix-nsinstall-build.patch \
|
||||
file://disable-Wvarargs-with-clang.patch \
|
||||
file://pqg.c-ULL_addend.patch \
|
||||
file://nss.pc.in \
|
||||
file://signlibs.sh \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user