[gjs/wip/ptomato/mozjs38: 20/20] CI: upgrade to Mozilla SpiderMonkey 38



commit 2198f538b3c30e2041751899eeec685e90309207
Author: Claudio André <claudioandre br gmail com>
Date:   Sun Feb 12 09:07:13 2017 -0200

    CI: upgrade to Mozilla SpiderMonkey 38
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776549

 test/travis-ci.sh |   37 +++++++++++++++++++++++++++++++------
 1 files changed, 31 insertions(+), 6 deletions(-)
---
diff --git a/test/travis-ci.sh b/test/travis-ci.sh
index c71da93..602dea9 100755
--- a/test/travis-ci.sh
+++ b/test/travis-ci.sh
@@ -8,7 +8,7 @@ function do_Install_Base_Dependencies(){
         apt-get update -qq
 
         # Base dependencies
-        apt-get -y -qq install build-essential git clang patch \
+        apt-get -y -qq install build-essential git clang patch python-dev \
                                autotools-dev autoconf gettext pkgconf autopoint yelp-tools \
                                docbook docbook-xsl libtext-csv-perl \
                                zlib1g-dev \
@@ -21,7 +21,7 @@ function do_Install_Base_Dependencies(){
         dnf -y -q upgrade
 
         # Base dependencies
-        dnf -y -q install @c-development @development-tools redhat-rpm-config gnome-common \
+        dnf -y -q install @c-development @development-tools redhat-rpm-config gnome-common python-devel \
                           pygobject2 dbus-python perl-Text-CSV perl-XML-Parser gettext-devel gtk-doc 
ninja-build \
                           zlib-devel libffi-devel \
                           libtool libicu-devel nspr-devel
@@ -99,6 +99,22 @@ index 75b0849..08965fa 100644
          subprocess.check_call(args)
 ENDPATCH
 
+    patch -p1 <<ENDPATCH
+diff --git a/modulesets/gnome-suites-core-deps-3.24.modules b/modulesets/gnome-suites-core-deps-3.24.modules
+index df911dc..617d516 100644
+--- a/modulesets/gnome-suites-core-deps-3.24.modules
++++ b/modulesets/gnome-suites-core-deps-3.24.modules
+@@ -562,7 +562,7 @@
+       <dep package="m4-common"/>
+       <dep package="dbus-glib"/>
+       <dep package="gobject-introspection"/>
+-      <dep package="mozjs31"/>
++      <dep package="mozjs38"/>
+       <if condition-set="coverage">
+         <dep package="lcov"/>
+       </if>
+ENDPATCH
+
     echo '-- Done --'
     cd -
 }
@@ -114,6 +130,7 @@ function do_Configure_JHBuild(){
 module_autogenargs['gjs'] = "$autogenargs"
 module_makeargs['gjs'] = '-s'
 skip = ['gettext', 'yelp-xsl', 'yelp-tools', 'gtk-doc']
+use_local_modulesets = True
 EOFILE
 
     echo '-- Done --'
@@ -131,18 +148,26 @@ function do_Build_JHBuild(){
     make -sj2
     make install
     PATH=$PATH:~/.local/bin
-    git reset --hard HEAD
+
+    if [[ $1 == "RESET" ]]; then
+        git reset --hard HEAD
+    fi
 }
 
 function do_Build_Mozilla(){
     echo
-    echo '-- Building Mozilla 31 --'
+    echo '-- Building Mozilla SpiderMonkey --'
 
     # Build Mozilla Stuff
     if [[ -n "$SHELL" ]]; then
         export SHELL=/bin/bash
     fi
-    jhbuild build mozjs31
+
+    #TODO Fix this upstream
+    #STOP!  /root/jhbuild/checkout/mozjs-38.0.0/js/src/configure.in has changed, and your configure is out 
of date.
+    jhbuild update mozjs38
+    touch ~/jhbuild/checkout/mozjs-38.0.0/js/src/configure
+    jhbuild build mozjs38
 }
 
 function do_Build_Package_Dependencies(){
@@ -199,7 +224,7 @@ if [[ $1 == "BUILD_MOZ" ]]; then
 
     do_Show_Compiler
     do_Patch_JHBuild
-    do_Build_JHBuild
+    do_Build_JHBuild RESET
     do_Build_Mozilla
     do_Save_Files
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]