On Sat, Oct 27, 2018 at 08:35:45AM -0400, Jeff wrote:
> After upgrading to 6.4 casperjs seems to be broken.
>
>    % casperjs sample.js
>    Trace/BPT trap
>
> This used to work fine with 6.3.  Am I missing something obvious?

This looks an incompatibility between the older webkit engine used in
phantomjs and the retguard security feature introduced in clang in 6.4.
We disabled retguard in the x11/qt5/qtwebkit port for the same reason,
but it looks like nobody noticed that phantomjs was also affected. I am
a bit surprised - retguard was in 6.4-current since last June.

Building the www/phantomjs port with the diff below (generated against
the 6.4-stable ports branch) yields a working phanotmjs (and therefore a
working casper). I imagine the maintainer will have a nicer way to do
it, but this worked for me to get a working phantomjs.


Index: Makefile
===================================================================
RCS file: /cvs/ports/www/phantomjs/Makefile,v
retrieving revision 1.22
diff -u -p -u -r1.22 Makefile
--- Makefile    15 Jul 2018 08:36:39 -0000      1.22
+++ Makefile    27 Oct 2018 23:09:25 -0000
@@ -101,7 +101,7 @@ post-patch:
                ${WRKSRC}/src/qt/qtbase/mkspecs/openbsd-g++/qmake.conf

 MAKE_ENV += OSTYPE=openbsd \
-       CC=cc CXX=c++ LINK_C=cc LINK=c++ \
+       CC=cc CXX=c++ LINK_C=cc LINK=c++ CXXFLAGS="${CXXFLAGS} 
-fno-ret-protector" \
        PYTHON=${MODPY_BIN} RUBY=${RUBY} \
        MAKE=make \
        MAKEFLAGS="-j ${MAKE_JOBS} PYTHON=${MODPY_BIN} RUBY=${RUBY}" \

Reply via email to