nss: Fix build on mips/clang
PATCH 1/1 nss: Fix build on mips/clang
This issue is also reported here
https://trac.macports.org/ticket/51709
Patch is also from same ticket
Signed-off-by Khem Raj <[email protected]>
--- .../recipes-support/nss/nss/pqg.c-ULL_addend.patch | 23 ++++++++++++++++++++++ meta/recipes-support/nss/nss_3.24.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-support/nss/nss/pqg.c-ULL_addend.patch
meta/recipes-support/nss/nss/pqg.c-ULL_addend.patch new file +23 -0
@@ -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 <[email protected]> +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;
meta/recipes-support/nss/nss_3.24.bb +1 -0
@@ -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 \ "
Signature · 1 line
2.9.0
Does this affect Krogoth?
- armin
Quoted 53 lines · Khem Raj
This issue is also reported here
https://trac.macports.org/ticket/51709
Patch is also from same ticketSigned-off-by Khem Raj <[email protected]>--- .../recipes-support/nss/nss/pqg.c-ULL_addend.patch | 23 ++++++++++++++++++++++ meta/recipes-support/nss/nss_3.24.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-support/nss/nss/pqg.c-ULL_addend.patchmeta/recipes-support/nss/nss/pqg.c-ULL_addend.patch new file +23
-0@@ -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 <[email protected]> +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;meta/recipes-support/nss/nss_3.24.bb +1
-0@@ -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 \ "
Quoted 1 line · On Fri, Jul 15, 2016 at 7:34 AM, akuster808 <[email protected]> wrote:
Does this affect Krogoth?
yes
Quoted 61 lines
- armin
Quoted 46 lines · Khem Raj
This issue is also reported here
https://trac.macports.org/ticket/51709
Patch is also from same ticketSigned-off-by Khem Raj <[email protected]>--- .../recipes-support/nss/nss/pqg.c-ULL_addend.patch | 23 ++++++++++++++++++++++ meta/recipes-support/nss/nss_3.24.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-support/nss/nss/pqg.c-ULL_addend.patchmeta/recipes-support/nss/nss/pqg.c-ULL_addend.patch new file +23
-0@@ -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 <[email protected]> +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;meta/recipes-support/nss/nss_3.24.bb +0
-0meta/recipes-support/nss/nss_3.24.bb SRC_URI = "\ · line 27
Quoted 7 lines
meta/recipes-support/nss/nss_3.24.bb +1
-0@@ -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 \ "--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core