Package: iceweasel
Version: 24.2.0esr-1
Severity: important
Tags: patch

iceweasel fails to build on the hppa (parisc) architecture.
Fail-Log is here:
http://buildd.debian-ports.org/status/fetch.php?pkg=iceweasel&arch=hppa&ver=24.2.0esr-1&stamp=1390773842

The attached patch fixes it.
It *only* touches code inside of
 #if JS_STACK_GROWTH_DIRECTION > 0
 ...
 #endif
sections and since hppa/parisc is the only platform where the stack grows 
upwards, this patch will not break any other platform.

Please apply.

Thanks,
Helge
--- iceweasel-24.2.0esr.orig/js/src/gc/RootMarking.cpp
+++ iceweasel-24.2.0esr/js/src/gc/RootMarking.cpp
@@ -320,7 +320,7 @@ MarkConservativeStackRoots(JSTracer *trc
 
     uintptr_t *stackMin, *stackEnd;
 #if JS_STACK_GROWTH_DIRECTION > 0
-    stackMin = rt->nativeStackBase;
+    stackMin = reinterpret_cast<uintptr_t *>(rt->nativeStackBase);
     stackEnd = cgcd->nativeStackTop;
 #else
     stackMin = cgcd->nativeStackTop + 1;
diff -up iceweasel-24.2.0esr/js/src/jsapi.cpp.org iceweasel-24.2.0esr/js/src/jsapi.cpp
--- iceweasel-24.2.0esr/js/src/jsapi.cpp.org	2014-02-01 19:22:54.488625002 +0000
+++ iceweasel-24.2.0esr/js/src/jsapi.cpp	2014-01-31 13:28:30.309882024 +0000
@@ -865,7 +865,7 @@ JSRuntime::JSRuntime(JSUseHelperThreads
     PodZero(&atomState);
 
 #if JS_STACK_GROWTH_DIRECTION > 0
-    nativeStackLimit = UINTPTR_MAX;
+    // nativeStackLimit = UINTPTR_MAX;
 #endif
 }
 

Reply via email to