Browse Source

Permit building with MozillaBuild 3.4

Bill Gianopoulos 4 months ago
parent
commit
18a61603b6

+ 22 - 0
mozilla-central/patches/PPPPPPP-MozillaBuild-34.patch

@@ -0,0 +1,22 @@
+# HG changeset patch
+# User Bill Gianopoulos <wgianopoulos@gmail.com>
+# Date 1717163163 0
+No bug - permit building with MozillaBuild 3.4.
+
+diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure
+--- a/build/moz.configure/init.configure
++++ b/build/moz.configure/init.configure
+@@ -1332,12 +1332,12 @@ def mozillabuild_version(mozillabuild_di
+         with open(os.path.join(mozillabuild_dir, "VERSION"), "r") as fh:
+             return Version(fh.readline().strip())
+     except Exception as e:
+         die(e)
+ 
+ 
+ @depends_if(mozillabuild_version)
+ def valid_mozillabuild_version(mozillabuild_version):
+-    if mozillabuild_version < Version("4.0"):
++    if mozillabuild_version < Version("3.4"):
+         die(
+             f"Please upgrade MozillaBuild. You can find a recent version at: https://wiki.mozilla.org/MozillaBuild"
+         )

+ 1 - 0
mozilla-central/patches/series

@@ -1,3 +1,4 @@
 9999999-NSSgetentropy.patch
 1807834-respect-dmg-hfs-env.patch
+PPPPPPP-MozillaBuild-34.patch
 TOP-PLASTER-revert-poll-interval.patch