commit 29c063bf70ecb8af1139040eb8afdccb7e3ef470
parent 44614fee5f456bf9fe4b75d43b96f84b5bb3e7df
Author: serge-sans-paille <sguelton@mozilla.com>
Date: Wed, 17 Dec 2025 09:30:33 +0000
Bug 2001103 - Remove obsolete dependencies to AWK in js/src/make-source-package.py r=glandium
As a side effect, this remove the last AWK reference in moz.build subsystem \o/
Differential Revision: https://phabricator.services.mozilla.com/D273204
Diffstat:
3 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/js/src/Makefile.in b/js/src/Makefile.in
@@ -18,7 +18,6 @@ ifneq (,$(TAR))
source-package:
DIST=$(DIST) \
TAR=$(TAR) \
- AWK=$(AWK) \
MOZJS_MAJOR_VERSION=$(MOZJS_MAJOR_VERSION) \
MOZJS_MINOR_VERSION=$(MOZJS_MINOR_VERSION) \
MOZJS_PATCH_VERSION=$(MOZJS_PATCH_VERSION) \
diff --git a/js/src/make-source-package.py b/js/src/make-source-package.py
@@ -63,9 +63,6 @@ assert_command("TAR", tar)
rsync = os.environ.get("RSYNC", find_command(["rsync"]))
assert_command("RSYNC", rsync)
-awk = os.environ.get("AWK", find_command(["awk"]))
-assert_command("AWK", awk)
-
src_dir = Path(os.environ.get("SRC_DIR", Path(__file__).parent.absolute()))
mozjs_name = os.environ.get("MOZJS_NAME", "mozjs")
staging_dir = Path(os.environ.get("STAGING", tmp_dir / "mozjs-src-pkg"))
@@ -94,7 +91,6 @@ tar_opts = ["-Jcf"]
print("Environment:")
print(f" TAR = {tar}")
print(f" RSYNC = {rsync}")
-print(f" AWK = {awk}")
print(f" STAGING = {staging_dir}")
print(f" DIST = {dist_dir}")
print(f" SRC_DIR = {src_dir}")
diff --git a/moz.configure b/moz.configure
@@ -605,18 +605,6 @@ include(
)
-# Awk detection
-# ==============================================================
-awk = check_prog("AWK", ("gawk", "mawk", "nawk", "awk"), paths=prefer_mozillabuild_path)
-
-# Until the AWK variable is not necessary in old-configure
-
-
-@depends(awk)
-def awk_for_old_configure(value):
- return value
-
-
# GNU make detection
# ==============================================================
option(env="MAKE", nargs=1, help="Path to GNU make")