View | Details | Raw Unified | Return to bug 269241
Collapse All | Expand All

(-)b/lang/spidermonkey102/Makefile (-2 lines)
Lines 13-20 WWW= https://spidermonkey.dev/ Link Here
13
LICENSE=	MPL20
13
LICENSE=	MPL20
14
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
BROKEN_FreeBSD_12=	ERROR: Cannot find readelf
17
18
BUILD_DEPENDS=	${LOCALBASE}/bin/python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//g} \
16
BUILD_DEPENDS=	${LOCALBASE}/bin/python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//g} \
19
		${RUST_DEFAULT}>=1.35:lang/${RUST_DEFAULT} \
17
		${RUST_DEFAULT}>=1.35:lang/${RUST_DEFAULT} \
20
		autoconf2.13:devel/autoconf2.13 \
18
		autoconf2.13:devel/autoconf2.13 \
(-)b/lang/spidermonkey102/files/patch-moz.configure (-1 / +13 lines)
Lines 1-7 Link Here
1
- Fix awk detection
1
- Fix awk detection
2
2
3
- also look in stderr for readelf --help output (elftoolchain bsd readelf)
4
3
Index: moz.configure
5
Index: moz.configure
4
--- moz.configure.orig	2022-03-30 19:25:49 UTC
6
--- moz.configure.orig	2022-10-10 09:55:56 UTC
5
+++ moz.configure
7
+++ moz.configure
6
@@ -708,7 +708,7 @@ add_old_configure_assignment("CLANG_PLUGIN", clang_plu
8
@@ -708,7 +708,7 @@ add_old_configure_assignment("CLANG_PLUGIN", clang_plu
7
 
9
 
Lines 12-14 Index: moz.configure Link Here
12
 
14
 
13
 # Until the AWK variable is not necessary in old-configure
15
 # Until the AWK variable is not necessary in old-configure
14
 
16
 
17
@@ -812,7 +812,8 @@ def validate_readelf(path):
18
     # option in the `--help` output, which fortunately, s compatible between
19
     # llvm-readelf and readelf.
20
     retcode, stdout, stderr = get_cmd_output(path, "--help")
21
-    return retcode == 0 and any(l.startswith("  -d ") for l in stdout.splitlines())
22
+    return retcode == 0 and (any(l.startswith("  -d ") for l in stdout.splitlines()) \
23
+        or any(l.startswith("  -d ") for l in stderr.splitlines()))
24
25
26
 @depends("--enable-compile-environment", target, host)

Return to bug 269241