anchor.diff:      echo 'set (CMAKE_CXX_FLAGS "-fPIC -DJSON_UTF8")' >> ../json_spirit/CMakeLists.txt && \
       sed -e '/BOOST_SPIRIT_THREADSAFE/ s/^#//' -i ../json_spirit/json_spirit_reader_template.h && \
       cmake .. && \
  -    make -j4 && make install && \
  +    make  && make install && \
       if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/json_spirit_v4.08; fi && \
  -    if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/json_spirit_v4.08.zip; fi
  -
  -RUN cd /usr/local/src/smartmet && \
  +    if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/json_spirit_v4.08.zip; fi && \
  +# sparsehash
  +    cd /usr/local/src/smartmet && \
       git clone https://github.com/sparsehash/sparsehash.git && \
       cd sparsehash && \
       ./configure && \
  -    make -j4 && make install && \
  -    if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/sparsehash; fi
  -
  -RUN wget -O /usr/include/prettyprint.hpp https://raw.github.com/louisdx/cxx-prettyprint/master/prettyprint.hpp
  -
  -RUN mkdir -p /usr/local/include/jssatomic && wget -O /usr/local/include/jssatomic/atomic_shared_ptr.hpp https://bitbucket.org/anthonyw/atomic_shared_ptr/raw/7bdef03f6536f4b9118d267b68da211297cc0143/atomic_shared_ptr
  -
  -RUN echo "/usr/local/lib/" > /etc/ld.so.conf.d/local.conf && ldconfig -v
  -
  +    make && make install && \
  +    if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/sparsehash; fi && \
  +# prettyprint
  +    wget -O /usr/include/prettyprint.hpp https://raw.github.com/louisdx/cxx-prettyprint/master/prettyprint.hpp && \
  +# atomic_shared_ptr
  +    mkdir -p /usr/local/include/jssatomic && wget -O /usr/local/include/jssatomic/atomic_shared_ptr.hpp https://bitbucket.org/anthonyw/atomic_shared_ptr/raw/7bdef03f6536f4b9118d267b68da211297cc0143/atomic_shared_ptr && \
  +# ldconfig
  +echo "/usr/local/lib/" > /etc/ld.so.conf.d/local.conf && ldconfig -v && \
   #
   # SmartMet Libraries
   #
  -RUN for LIBRARY in ${SMARTMET_LIBRARIES}; \
  +   for LIBRARY in ${SMARTMET_LIBRARIES}; \
         do \
         	 cd /usr/local/src/smartmet && \
       	 git clone https://github.com/fmidev/smartmet-library-${LIBRARY}.git && \
       	 cd smartmet-library-${LIBRARY} && \
  -    	 make -j4 && make install && \
  +    	 make  && make install && \
       	 if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/smartmet-library-${LIBRARY}; fi \
         done && \
   #
  
positive.code: 	 cd /usr/local/src/smartmet && \    
           git clone https://github.com/fmidev/smartmet-engine-${ENGINE}.git && \
  	 cd smartmet-engine-${ENGINE} && \
  	 make -j4 && make install  && \
  	 if [ $SMARTMET_DEVEL -ne 1 ]; then strip /usr/share/smartmet/engines/${ENGINE}.so; rm -rf /usr/local/src/smartmet/smartmet-engine-${ENGINE}; fi \
        done && \
  #
  
negative.code: 	     https://meteo.fi/docker/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm \
  	     https://meteo.fi/docker/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
  
  # ctpp2
  RUN cd /usr/local/src/smartmet && \
      wget http://ctpp.havoc.ru/download/ctpp2-2.8.3.tar.gz && \
      tar zxvf ctpp2-2.8.3.tar.gz && \
      cd ctpp2-2.8.3 && \
      cmake . && \
      sed -i '/#include <stdlib.h>/a #include <unistd.h>' src/CTPP2FileSourceLoader.cpp && \
      make && \
      make install && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/ctpp2-2.8.3; fi && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/ctpp2-2.8.3.tar.gz; fi && \
  # boost
      cd /usr/local/src/smartmet && \
      wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz && \
      tar zxf boost_1_55_0.tar.gz && \
      cd boost_1_55_0 && \
      ./bootstrap.sh --without-libraries=mpi,graph_parallel && \
      ./b2 $MAKEFLAGS && \
      ./b2 install && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/boost_1_55_0; fi && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/boost_1_55_0.tar.gz; fi && \
  # librsvg
      cd /usr/local/src/smartmet && \
      wget http://ftp.gnome.org/pub/gnome/sources/librsvg/2.40/librsvg-2.40.6.tar.xz && \
      tar xvf librsvg-2.40.6.tar.xz && \
      cd librsvg-2.40.6 && \
      export CPPFLAGS="-I/usr/include/glib-2.0/" && \
      ./configure --disable-static --disable-gtk-doc --disable-gtk-theme --enable-introspection && \
      make  && make install && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/librsvg-2.40.6; fi && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/librsvg-2.40.6.tar.xz; fi && \
  # json_spirit
      cd /usr/local/src/smartmet && \
      wget http://il.ma/json_spirit_v4.08.zip && \
      unzip json_spirit_v4.08.zip && \
      cd json_spirit_v4.08 && \
  