Skip to content

Commit

Permalink
mozjs78: build fix: SunOS doesn't have open_memstream()
Browse files Browse the repository at this point in the history
  • Loading branch information
dhgutteridge committed Dec 29, 2020
1 parent ac6a4ea commit 7c0c153
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/mozjs78/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.7 2020/12/14 22:45:10 gutteridge Exp $
$NetBSD: distinfo,v 1.8 2020/12/29 02:04:47 gutteridge Exp $

SHA1 (mozjs78_78.4.0.orig.tar.xz) = b2c1c241f70310d545f8a3c05b9c8c11676e56a8
RMD160 (mozjs78_78.4.0.orig.tar.xz) = cef93b6116eff9f04beeaf3dda0a42cd811d0b18
Expand All @@ -9,6 +9,7 @@ SHA1 (patch-build_moz.configure_toolchain.configure) = 930ed1aec1da8c10c80d8f31d
SHA1 (patch-js_moz.configure) = f3d762b293761e359ac7c389059aa228949a6f0b
SHA1 (patch-js_src_jit_AtomicOperations.h) = 19eba50673f8138bbb09c0eaca63923cadbadd26
SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 84d629df0e7963755aa38ff9a1e29d60ed3adb4c
SHA1 (patch-js_src_jsapi-tests_moz.build) = 337c94d88bf5986136deeba1d45ccb933663a1a2
SHA1 (patch-js_src_jsfriendapi.h) = f342a88182c1be0d3c0027c91ae94e1d4eac2542
SHA1 (patch-js_src_tests_jstests.py) = f5387b5ee5f8f898e678494befbc00e21fbb7ebb
SHA1 (patch-js_src_threading_posix_PosixThread.cpp) = f734abbd005d0353d4adfe865c215c2b86389bf6
Expand Down
17 changes: 17 additions & 0 deletions lang/mozjs78/patches/patch-js_src_jsapi-tests_moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$NetBSD: patch-js_src_jsapi-tests_moz.build,v 1.1 2020/12/29 02:04:47 gutteridge Exp $

Fix SunOS build.

--- js/src/jsapi-tests/moz.build.orig 2020-11-04 10:51:58.000000000 +0000
+++ js/src/jsapi-tests/moz.build
@@ -164,8 +164,8 @@ if CONFIG['JS_BUILD_BINAST'] and CONFIG[
'testBinASTReader.cpp',
]

-if CONFIG['OS_ARCH'] not in ('WINNT', 'Darwin') and CONFIG['OS_TARGET'] != 'Android':
- # open_memstream() not available on Windows, macOS, or Android
+if CONFIG['OS_ARCH'] not in ('WINNT', 'Darwin', 'SunOS') and CONFIG['OS_TARGET'] != 'Android':
+ # open_memstream() not available on Windows, macOS, SunOS, or Android
UNIFIED_SOURCES += [
'testPrintError.cpp',
]

0 comments on commit 7c0c153

Please sign in to comment.