Closed skycaptain closed 8 years ago
Upstream report: https://github.com/laurentj/slimerjs/issues/242
xulrunner 34.0.5 is out, anyone want to take a crack at this?
I will have a look at it. thanks for the reminder.
Update A: Just changing the url and sha-1 also results in an error.
==> make -f client.mk build
*** Fix above errors and then restart with "/Applications/Xcode.app/Contents/Developer/usr/bin/make -f client.mk build"
make[2]: *** [configure] Error 1
make[1]: *** [/private/tmp/xulrunner-Q2OGHl/mozilla-release/objdir/Makefile] Error 2
make: *** [build] Error 2
Update B: As before building from source works.
Update C: Using the verbose mode:
updating cache /private/tmp/xulrunner-krbLmf/mozilla-release/objdir/config.cache
creating ./config.status
Reticulating splines...
Traceback (most recent call last):
File "./config.status", line 935, in <module>
config_status(**args)
File "/private/tmp/xulrunner-krbLmf/mozilla-release/python/mozbuild/mozbuild/config_status.py", line 148, in config_status
summary = the_backend.consume(definitions)
File "/private/tmp/xulrunner-krbLmf/mozilla-release/python/mozbuild/mozbuild/backend/base.py", line 181, in consume
for obj in objs:
File "/private/tmp/xulrunner-krbLmf/mozilla-release/python/mozbuild/mozbuild/frontend/emitter.py", line 135, in emit
objs = list(self.emit_from_context(out))
File "/private/tmp/xulrunner-krbLmf/mozilla-release/python/mozbuild/mozbuild/frontend/emitter.py", line 523, in emit_from_context
self._binaries[program].relativedir), context)
mozbuild.frontend.reader.SandboxValidationError:
==============================
ERROR PROCESSING MOZBUILD FILE
==============================
The error occurred while processing the following file or one of the files it includes:
/private/tmp/xulrunner-krbLmf/mozilla-release/xulrunner/stub/moz.build
The error occurred when validating the result of the execution. The reported error is:
Cannot use "xulrunner" as PROGRAM name, because it is already used in xulrunner/app
*** Fix above errors and then restart with "/Applications/Xcode.app/Contents/Developer/usr/bin/make -f client.mk build"
make[2]: *** [configure] Error 1
make[1]: *** [/private/tmp/xulrunner-krbLmf/mozilla-release/objdir/Makefile] Error 2
make: *** [build] Error 2
@skycaptain any updates on this? Anything I could try testing?
Oh man, I totally forgot about this ...was very busy that time around. Anyway there are some good and some bad news.
I don't know if this is a xulrunner bug or formula bug, but appently the xulrunner-stub-name was somehow overwritten to use "xulrunner" instead of "xulrunner-stub", which is the default. By adding ac_add_options --with-xulrunner-stub-name="xulrunner-stub"
to the build options around line 89 we are forcing the default value. Maybe s.o. with more knowledge about xul can verify that?!
And now to the bad news. By setting the xulrunner-stub-name I could successfully pass the configuration process. But now I'm getting compilation errors < 34.0, which may relate to my nss and nspr versions. >34.0 compiles fine but xulrunner won't run. See #36348.
For what it's worth, I tried updating this to use XULRunner 39.0 and was able to compile it just fine; however, when it runs it quits with a message "Couldn't load XPCOM." Apparently this is a manifestation of this upstream bug, which is reported fixed upstream, but as far as I can tell has not made it into a stable release yet. My diff is available here if anyone else is interested in giving it a go.
If you brew install --HEAD slimerjs
, does that run? If so, we can try to apply the fix to the current stable version.
No dice with brew install xulrunner --HEAD
, I get a build error:
==> ./configure --program-suffix=213 --prefix=/private/tmp/xulrunner20150718-6023-w91uth/mozilla-central/ac213
==> make install
==> make -f client.mk build
Please run `mach mercurial-setup` now.
python2.7 /private/tmp/xulrunner20150718-6023-w91uth/mozilla-central/config/pythonpath.py -I /private/tmp/xulrunner20150718-6023-w91uth/mozilla-central/testing/mozbase/mozfile \
/private/tmp/xulrunner20150718-6023-w91uth/mozilla-central/python/mozbuild/mozbuild/controller/clobber.py /private/tmp/xulrunner20150718-6023-w91uth/mozilla-central
Usage: clobber.py topsrcdir topobjdir
make: *** [/CLOBBER] Error 1
Possibly this is fixable with some recipe trickery.
I also tried xulrunner releases 39.0b7 and 40.0b4, which built successfully but gave me the same XPCOM error message.
FYI, maybe it's time to retire this formula, see XULRunner future and ownership and Remove xulrunner from mozilla-central.
@l-hedgehog thanks! Probably what we'll have to do.
Trying to build slimerjs on yosemite fails with:
Building xulrunner directly fails with
brew, xcode and xcode clt are up to date.