Skip to content

Commit

Permalink
fix v8js for [email protected] build
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Dec 1, 2020
1 parent 7ea14b7 commit 6e2cb1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,21 @@ RUN /usr/bin/switch-php.sh "8.0" \
&& mkdir -p /mytmp/20200930 && rsync -ahp /usr/lib/php/20200930/ /mytmp/20200930/ \
&& rm -rf /tmp/*
RUN /usr/bin/switch-php.sh "7.4" \
&& pecl -d php_suffix=7.4 install -f --alldeps igbinary couchbase imagick \
&& pecl -d php_suffix=7.4 install -f --alldeps pcs igbinary couchbase imagick \
&& git clone https://github.com/phpv8/v8js.git /tmp/v8js \
&& cd /tmp/v8js \
&& git checkout php7 && phpize7.4 \
&& ./configure --with-v8js=/opt/libv8-$V8VER/ CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" CPPFLAGS="$([ $( echo "$V8VER" | cut -c 1-1 ) -ge 8 ] && echo "-DV8_COMPRESS_POINTERS" || echo "")" \
&& make all install \
&& sed -i -e '132s/retval/object/g' v8js_v8object_class.cc \
&& ./configure --with-v8js=/opt/libv8-$V8VER/ LDFLAGS="-lstdc++" \
&& make all test install \
&& mkdir -p /mytmp/20190902 && rsync -ahp /usr/lib/php/20190902/ /mytmp/20190902/ \
&& rm -rf /tmp/*
RUN /usr/bin/switch-php.sh "7.3" \
&& pecl -d php_suffix=7.3 install -f --alldeps pcs igbinary couchbase imagick \
&& git clone https://github.com/phpv8/v8js.git /tmp/v8js \
&& cd /tmp/v8js \
&& git checkout php7 && phpize7.3 \
&& ./configure LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-$V8VER \
&& ./configure --with-v8js=/opt/libv8-$V8VER/ LDFLAGS="-lstdc++" \
&& make all test install \
&& rsync -ahp /mytmp/20200930/ /usr/lib/php/20200930/ \
&& rsync -ahp /mytmp/20190902/ /usr/lib/php/20190902/ \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For convienience, sshd is enabled by default; just don't expose docker port 22 i
4. couchbase and couchdb

## Note
1.6.0 - remove php 7.2 and add php 8.0, remove `make test` for phpv8js for php7.4 until it is fixed. - note that couchbase and v8js are not yet compatible for php8.0
1.6.1 - remove php 7.2 and add php8.0 - note that couchbase and v8js are not yet compatible for php8.0

1.5.1 - This container will go into EOL on April 2021 following Ubuntu 16.04 LTS lifecycle policy. At best, I may start a new branch/repo for Ubuntu 20.04 LTS.

Expand Down

0 comments on commit 6e2cb1c

Please sign in to comment.