Bug 1084258 - Language pack compatibility should be bound to Gecko branch, else undefined entity errors possible. r=glandium, a=sledru
authorRobert Kaiser <kairo@kairo.at>
Sun, 05 Apr 2015 16:26:34 +0200
changeset 266883 4bdab5a3e2d88736e4868fd0d75c8f856b2d2728
parent 266882 9becaa8aee1834758a4a527e0d11020225e7c264
child 266884 d299f9b813699ef9d70d4a28936a277beb623a88
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, sledru
bugs1084258
milestone39.0a2
Bug 1084258 - Language pack compatibility should be bound to Gecko branch, else undefined entity errors possible. r=glandium, a=sledru
configure.in
--- a/configure.in
+++ b/configure.in
@@ -8624,17 +8624,21 @@ fi
 # For extensions and langpacks, we require a max version that is compatible
 # across security releases. MOZ_APP_MAXVERSION is our method for doing that.
 # 24.0a1 and 24.0a2 aren't affected
 # 24.0 becomes 24.*
 # 24.1.1 becomes 24.*
 IS_ALPHA=`echo $MOZ_APP_VERSION | grep a`
 if test -z "$IS_ALPHA"; then
   changequote(,)
-  MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*\).*|\1|"`.*
+  if test "$(basename $MOZ_BUILD_APP)" = "suite"; then
+    MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*\.[0-9]*\).*|\1|"`.*
+  else
+    MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*\).*|\1|"`.*
+  fi
   changequote([,])
 else
   MOZ_APP_MAXVERSION=$MOZ_APP_VERSION
 fi
 
 MOZ_B2G_VERSION=${MOZ_B2G_VERSION:-"1.0.0"}
 AC_DEFINE_UNQUOTED(MOZ_B2G_VERSION,"$MOZ_B2G_VERSION")
 AC_DEFINE_UNQUOTED(MOZ_B2G_OS_NAME,"$MOZ_B2G_OS_NAME")