-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spidermonkey 89.0 #78997
spidermonkey 89.0 #78997
Conversation
23f6998
to
f8ad41f
Compare
2b20e3d
to
5482334
Compare
5482334
to
dae5265
Compare
dae5265
to
e640ed1
Compare
{ | ||
"-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 -std=c++14 -Wno-invalid-offsetof", | ||
- "-L/usr/local/lib -std=c++14 -lmozjs-60 -lm" | ||
+ "-L/usr/local/lib -std=c++14 -lmozjs-60 -lm -lstdc++" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might explain why using llvm
didn't work, btw. If we want to use llvm
this should probably be -lc++
. In fact, it might work with Xcode Clang on Catalina/Big Sur if we just made this -lc++ -stdlib=libc++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a template related issue, here we use spidermonky 78, the standard library is not specified in this case, btw, gcc support c++20 better than clang currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC @Bo98 in case you have thoughts on this.
e640ed1
to
773ebed
Compare
I think I should create versioned formulae for |
773ebed
to
5ba43f2
Compare
b07475c
to
88d7619
Compare
c1902db
to
7e6a1a1
Compare
ab425be
to
2a12fbe
Compare
Firefox support apple silicon since 84 https://support.mozilla.org/en-US/kb/upgrading-new-version-firefox-84-apple-silicon |
2a12fbe
to
7748e06
Compare
@@ -92,3 +117,90 @@ def plist | |||
assert_equal "Welcome", output["couchdb"] | |||
end | |||
end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
conflicts_with "narwhal", because: "both install a js binary" | ||
uses_from_macos "libedit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use readline
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a libreadline in sdk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm aware of that, but I'm not sure that explains why we should change it...
@@ -0,0 +1,60 @@ | |||
class SpidermonkeyAT78 < Formula |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't understand why we need this. Didn't couchdb
build with spidermonkey 89?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supported version is hard-coded here
7748e06
to
9ad1e86
Compare
@@ -20,49 +21,52 @@ class Spidermonkey < Formula | |||
sha256 cellar: :any, mojave: "8c0b46bc04a7e95f99262969b22cc311ee1f7d83413af05865318743ccd96944" | |||
end | |||
|
|||
depends_on :macos # Due to Python 2 | |||
depends_on "autoconf@2.13" => :build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't this work with autoconf
or autoconf@2.69
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mozilla project requires autoconf 2.13 https://bugzilla.mozilla.org/show_bug.cgi?id=297544
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes. gjs
also depends on autoconf 2.13.
inreplace "config/rules.mk", | ||
"-install_name $(_LOADER_PATH)/$(SHARED_LIBRARY) ", | ||
"-install_name #{lib}/$(SHARED_LIBRARY) " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure we still need this? If it's using @loader_path
it might work for us now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copied from formular gjs
. I'm not sure whether this formula needs this
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?From https://archive.mozilla.org/pub/spidermonkey/README.txt
The version number here follows firefox.
remove
libjs_static.ajs
because https://www.linuxfromscratch.org/blfs/view/svn/general/js78.html