Ticket #2282: zoo-patch-test4.2.patch
File zoo-patch-test4.2.patch, 9.0 KB (added by , 4 years ago) |
---|
-
Dockerfile
1 1 # 2 2 # Base: Ubuntu 18.04 with updates and external packages 3 3 # 4 FROM ubuntu:bionic-20201119 AS base 4 #FROM ubuntu:bionic-20201119 AS base 5 FROM ubuntu:focal-20210119 AS base 5 6 ARG DEBIAN_FRONTEND=noninteractive 6 7 ARG BUILD_DEPS=" \ 7 8 dirmngr \ … … 14 15 libmapserver-dev \ 15 16 libmozjs185-dev \ 16 17 libpq5 \ 17 libpython3. 6\18 libpython3.8 \ 18 19 libxslt1.1 \ 19 20 gdal-bin \ 20 21 python3 \ … … 24 25 RUN set -ex \ 25 26 && apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \ 26 27 \ 27 && add-apt-repository ppa:osgeolive/nightly \ 28 && add-apt-repository ppa:ubuntugis/ppa \ 28 #&& add-apt-repository ppa:osgeolive/nightly \ 29 && add-apt-repository ppa:ubuntugis/ubuntugis-unstable \ 30 #&& add-apt-repository ppa:ubuntugis/ppa \ 29 31 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 \ 30 32 && add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' \ 31 33 \ … … 54 56 libssl-dev \ 55 57 libxml2-dev \ 56 58 libxslt1-dev \ 57 python3 -dev \59 python3.8-dev \ 58 60 uuid-dev \ 59 61 r-base-dev \ 60 62 " … … 68 70 \ 69 71 && cd ./zoo-project/zoo-kernel \ 70 72 && autoconf \ 71 && ./configure --with-python=/usr --with-pyvers=3.6 --with-js=/usr --with-mapserver=/usr --with-ms-version=7 --with-json=/usr --with-db-backend --prefix=/usr \ 73 && echo $(find /usr/lib/ -name "libpython*.so") \ 74 && nm -D $(find /usr/lib/ -name "libpython*.so") | grep PyObject_ \ 75 && ./configure --with-python=/usr --with-pyvers=3.8 --with-js=/usr --with-mapserver=/usr --with-ms-version=7 --with-json=/usr --with-db-backend --prefix=/usr \ 72 76 && make \ 73 77 && make install \ 74 78 \ -
thirds/otb2zcfg/otb2zcfg.cxx
221 221 222 222 if(type == ParameterType_StringList || type == ParameterType_String || type == ParameterType_Float 223 223 || type == ParameterType_Int || type == ParameterType_Choice || type == ParameterType_ListView 224 || type == ParameterType_RAM || type == ParameterType_Empty|| type == ParameterType_Directory){224 || type == ParameterType_RAM /*|| type == ParameterType_Empty*/ || type == ParameterType_Directory){ 225 225 std::cout << " <LiteralData>" << std::endl; 226 226 std::string lt; 227 227 if(type == ParameterType_Int || type == ParameterType_RAM) … … 232 232 || type == ParameterType_Choice || type == ParameterType_Directory 233 233 || type == ParameterType_ListView) 234 234 lt="string"; 235 if(type == ParameterType_Empty)236 lt="boolean"; 235 /*if(type == ParameterType_Empty) 236 lt="boolean";*/ 237 237 std::cout << " dataType = " << lt << std::endl; 238 238 if(type == ParameterType_Choice || type == ParameterType_ListView){ 239 239 const std::vector<std::string> nList = m_Application->GetChoiceNames(paramKey); … … 280 280 printOutputImage(m_Application->GetParameterOutputImagePixelType(paramKey)); 281 281 } 282 282 else{ 283 if(type == ParameterType_ComplexOutputImage){283 /*if(type == ParameterType_ComplexOutputImage){ 284 284 printOutputComplexImage(m_Application->GetParameterComplexOutputImagePixelType(paramKey)); 285 }else {285 }else*/{ 286 286 std::cout << " <ComplexData>" << std::endl; 287 if(type == ParameterType_InputImage || type == ParameterType_InputImageList || type == ParameterType_ComplexInputImage){287 if(type == ParameterType_InputImage || type == ParameterType_InputImageList){ 288 288 printImages(); 289 289 } 290 290 else … … 337 337 338 338 if(paramKey!="inxml" && paramKey!="outxml" && 339 339 ((type == ParameterType_OutputVectorData || type == ParameterType_OutputImage 340 || type == ParameterType_OutputImage || type == ParameterType_ComplexOutputImage340 || type == ParameterType_OutputImage //|| type == ParameterType_ComplexOutputImage 341 341 || type == ParameterType_OutputFilename) || role==1) && type != ParameterType_Group){ 342 342 hasOutput=1; 343 343 std::vector<std::string> values; … … 355 355 std::cout << " Abstract = " << paramKey << std::endl; 356 356 } 357 357 358 if(type == ParameterType_OutputImage || type == ParameterType_ComplexOutputImage){358 if(type == ParameterType_OutputImage){// || type == ParameterType_ComplexOutputImage){ 359 359 std::cout << " <ComplexData>" << std::endl; 360 360 printImages(); 361 361 std::cout << " </ComplexData>" << std::endl; -
zoo-project/zoo-kernel/ZOOMakefile.opts.in
120 120 MONO_ENABLED=@MONO_ENABLED@ 121 121 MONO_FILE=@MONO_FILE@ 122 122 123 CFLAGS=@CALLBACK_USE@ @SSH2_CPPFLAGS@ @PROJ_CPPFLAGS@ @RELY_ON_DB@ @DEB_DEF@ -fpic @OPENSSL_CFLAGS@ @UUID_CFLAGS@ ${FCGI_CFLAGS} ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF123 CFLAGS=@CALLBACK_USE@ @SSH2_CPPFLAGS@ @PROJ_CPPFLAGS@ @RELY_ON_DB@ @DEB_DEF@ -fpic @OPENSSL_CFLAGS@ @UUID_CFLAGS@ ${FCGI_CFLAGS} ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF 124 124 LDFLAGS=-lzoo_service @SSH2_LDFLAGS@ @PROJ_LDFLAGS@ @DEFAULT_LIBS@ -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} ${FCGI_LDFLAGS} @OPENSSL_LDFLAGS@ @UUID_LDFLAGS@ ${MS_LDFLAGS} ${MACOS_LD_FLAGS} ${MACOS_LD_NET_FLAGS} ${YAML_LDFLAGS} ${OTBLDFLAGS} ${SAGA_LDFLAGS} ${MONO_LDFLAGS} ${RLDFLAGS} @JSON_LDFLAGS@ @XSLT_LDFLAGS@ 125 125 126 126 DATAROOTDIR=@datarootdir@/zoo-project -
zoo-project/zoo-kernel/configure.ac
414 414 # Check headers file 415 415 CPPFLAGS_SAVE="$CPPFLAGS" 416 416 CPPFLAGS="$PROJ_CPPFLAGS" 417 AC_CHECK_HEADERS([proj_api.h],418 [], [AC_MSG_ERROR([could not find headers include related to PROJ4])])417 #AC_CHECK_HEADERS([proj_api.h], 418 # [], [AC_MSG_ERROR([could not find headers include related to PROJ4])]) 419 419 420 420 AC_SUBST([PROJ_CPPFLAGS]) 421 421 AC_SUBST([PROJ_LDFLAGS]) … … 606 606 607 607 echo $PYTHONCONFIG 608 608 # Extract the linker and include flags 609 PYTHON_LDFLAGS=`$PYTHONCONFIG --ldflags` 609 PYTHON_LDFLAGS=$($PYTHONCONFIG --ldflags | sed "s:python${PYTHON_VERS}/config-${PYTHON_VERS}-::g") 610 echo $PYTHON_LDFLAGS 610 611 PYTHON_CPPFLAGS=`$PYTHONCONFIG --includes` 611 612 612 613 # Check headers file … … 617 618 618 619 # Ensure we can link against libphp 619 620 LIBS_SAVE="$LIBS" 620 LIBS="$PYTHON_LDFLAGS" 621 PY_LIB=`$PYTHONCONFIG --libs | sed \ 622 -e 's/.*\(python[[0-9]]\.[[0-9]]\).*/\1/'` 623 AC_CHECK_LIB([$PY_LIB], [PyObject_CallObject], [], [AC_MSG_ERROR([could not find libpython])], []) 621 LIBS="m $PYTHON_LDFLAGS -lpython${PYTHON_VERS}" 622 PYTHON_LDFLAGS="-l$LIBS" 623 PY_LIB=`$PYTHONCONFIG --libs` 624 LDFLAGS=$PYTHON_LDFLAGS 625 AC_CHECK_LIB([], [PyObject_CallObject], [], [AC_MSG_ERROR([could not find libpython])], []) 624 626 LIBS="$LIBS_SAVE" 625 627 fi 626 628 -
zoo-project/zoo-kernel/service_internal_otb.c
361 361 } 362 362 else 363 363 if(type == ParameterType_InputImage 364 || type == ParameterType_ ComplexInputImage || type == ParameterType_InputVectorData364 || type == ParameterType_InputVectorData 365 365 || type == ParameterType_InputFilename){ 366 366 m_Application->SetParameterString(paramKey, test->value); 367 367 } -
zoo-project/zoo-kernel/ulinet.h
33 33 #endif 34 34 #include "jsapi.h" 35 35 #endif 36 #include "fcgi_stdio.h"36 //#include "fcgi_stdio.h" 37 37 #include <stdlib.h> 38 38 #include <fcntl.h> 39 39 #include <curl/curl.h> -
zoo-project/zoo-services/ogr/base-vect-ops/service.c
37 37 #include "service.h" 38 38 #include "service_internal.h" 39 39 40 extern "C" {41 40 #include <libxml/tree.h> 42 41 #include <libxml/parser.h> 43 42 #include <libxml/xpath.h> 44 43 #include <libxml/xpathInternals.h> 45 44 46 /*#include <openssl/sha.h> 47 #include <openssl/hmac.h> 48 #include <openssl/evp.h> 49 #include <openssl/bio.h> 50 #include <openssl/buffer.h> 51 */ 45 extern "C" { 52 46 47 53 48 void printExceptionReportResponse(maps*,map*); 54 49 char *base64(const char *input, int length); 55 50