Date: Sat, 30 Nov 2024 19:57:04 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 2a6b6cf4bdc7 - main - lang/spidermonkey78: Fix build with libc++ 19 Message-ID: <202411301957.4AUJv4o2089388@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a6b6cf4bdc755c69c1142dc8266f35f7327dccc commit 2a6b6cf4bdc755c69c1142dc8266f35f7327dccc Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2024-11-30 15:15:51 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2024-11-30 17:16:28 +0000 lang/spidermonkey78: Fix build with libc++ 19 Clang 19 now diagnoses incorrect member accesses, which causes lang/spidermonkey78 to fail with an error similar to: /wrkdirs/usr/ports/lang/spidermonkey78/work/firefox-78.15.0/js/src/threading/ExclusiveData.h:113:29: error: reference to non-static member function must be called 113 | : lock_(std::move(rhs.lock)), value_(std::move(rhs.value_)) { | ~~~~^~~~ Upstream fixed this for https://bugzilla.mozilla.org/1894423 in changeset 223087fdc29f18678f6174e9807b8780e439acf6 [2], so pull this in as a patch and apply it. Also, as noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail. With lang/spidermonkey78 and clang/libc++ 19 this results in errors similar to: /wrkdirs/usr/ports/lang/spidermonkey78/work/fireox-78.15.0/js/src/builtin/intl/Locale.cpp:208:20: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>' 208 | iter_ = std::char_traits<CharT>::find( | ^ /wrkdirs/usr/ports/lang/spidermonkey78/work/fireox-78.15.0/js/src/builtin/intl/Locale.cpp:769:21: note: in instantiation of member function 'SepKeywordIterator<unsigned char>::next' requested here 769 | beginKey = iter.next(); | ^ /wrkdirs/usr/ports/lang/spidermonkey78/work/fireox-78.15.0/js/src/builtin/intl/Locale.cpp:808:16: note: in instantiation of function template specialization 'FindUnicodeExtensionType<unsigned char>' requested here 808 | ? FindUnicodeExtensionType(unicodeExtension->latin1Chars(nogc), | ^ Upstream fixed this for https://bugzilla.mozilla.org/1849070 in changeset 68ff4d3f7338248b4d67cf03aade5a73f8d396b2 [3], so pull this in as a patch and apply it. See also bug 280730, for lang/spidermonkey102. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals [2] https://hg.mozilla.org/mozilla-central/rev/223087fdc29f18678f6174e9807b8780e439acf6 [3] https://hg.mozilla.org/mozilla-central/rev/68ff4d3f7338248b4d67cf03aade5a73f8d396b2 PR: 283050 Reported by: dim MFH: 2024Q4 --- lang/spidermonkey78/Makefile | 4 ++++ lang/spidermonkey78/distinfo | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lang/spidermonkey78/Makefile b/lang/spidermonkey78/Makefile index ed1565c19223..2fedfd5797e8 100644 --- a/lang/spidermonkey78/Makefile +++ b/lang/spidermonkey78/Makefile @@ -6,6 +6,10 @@ MASTER_SITES= MOZILLA/firefox/releases/${DISTVERSION}esr/source PKGNAMESUFFIX= ${SP_VER} DISTNAME= firefox-${DISTVERSION}esr.source +PATCH_SITES= https://hg.mozilla.org/mozilla-central/raw-rev/ +PATCHFILES+= 223087fdc29f18678f6174e9807b8780e439acf6:-p1 # https://bugzilla.mozilla.org/1894423 +PATCHFILES+= 68ff4d3f7338248b4d67cf03aade5a73f8d396b2:-p1 # https://bugzilla.mozilla.org/1849070 + MAINTAINER= bofh@FreeBSD.org COMMENT= Standalone JavaScript based from Mozilla 78-esr WWW= https://spidermonkey.dev/ diff --git a/lang/spidermonkey78/distinfo b/lang/spidermonkey78/distinfo index 3520a72f3018..a54d8d3ed35f 100644 --- a/lang/spidermonkey78/distinfo +++ b/lang/spidermonkey78/distinfo @@ -1,3 +1,7 @@ -TIMESTAMP = 1651603084 +TIMESTAMP = 1732978996 SHA256 (firefox-78.15.0esr.source.tar.xz) = a4438d84d95171a6d4fea9c9f02c2edbf0475a9c614d968ebe2eedc25a672151 SIZE (firefox-78.15.0esr.source.tar.xz) = 330819568 +SHA256 (223087fdc29f18678f6174e9807b8780e439acf6) = f234371584e2b2bc9953ae4fd145da19c99a6f04087f53d59616aecf29df039c +SIZE (223087fdc29f18678f6174e9807b8780e439acf6) = 1597 +SHA256 (68ff4d3f7338248b4d67cf03aade5a73f8d396b2) = 8d556dcb0d3a76a6cb8870b6eff45fafe0a78760ea24d34ea0b5e7ceb4489a71 +SIZE (68ff4d3f7338248b4d67cf03aade5a73f8d396b2) = 2546
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411301957.4AUJv4o2089388>