Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdal: Add support for spatialite and rasterlite2, update to 3.6.2 #16461

Closed
wants to merge 4 commits into from

Conversation

jpilet
Copy link
Contributor

@jpilet jpilet commented Mar 8, 2023

gdal/3.6.2

  • Update to version 3.6.2
  • Add optional support for spatialite
  • Add optional support for rasterlite2

Note: this recipe does not work with conan 2.0.


Comment on lines 123 to 124
"with_spatialite": True,
"with_rasterlite2": False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not enable by default please. These libs are quite confidentials.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done. I also disabled sqlite3, because spatialite is tightly linked with it. Most likely, a user needing sqlite3 will also need spatialite.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Hooks produced the following warnings for commit 5570a37
gdal/3.5.2
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libgdal.31.dylib, libgdal.31.0.2.dylib, libgdal.dylib
gdal/3.5.1
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libgdal.31.dylib, libgdal.dylib, libgdal.31.0.1.dylib
gdal/3.6.2
post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libgdal.dylib, libgdal.32.dylib, libgdal.32.3.6.2.dylib

@conan-center-bot

This comment has been minimized.

@ghost
Copy link

ghost commented Mar 14, 2023

I detected other pull requests that are modifying gdal/post_3.5.0 recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@jpilet jpilet closed this Mar 16, 2023
@jpilet jpilet reopened this Mar 16, 2023
@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Apr 25, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 25, 2023
@stale stale bot removed the stale label Apr 26, 2023
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@stale
Copy link

stale bot commented Jun 18, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 18, 2023
@ghost ghost mentioned this pull request Jun 22, 2023
3 tasks
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 8 (e39be0e8fbcea41846452a41c0d8a790d9fb1364):

  • gdal/3.6.2@:
    CI failed to create some packages (All logs)

    Logs for packageID 1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    gdal:shared=False
    
    [...]
    dependency MSSQL_ODBC has no conan package
    dependency MySQL has no conan package
    dependency CURL has no conan package
    Using conan package libiconv for dependency Iconv
    dependency LibXml2 has no conan package
    dependency EXPAT has no conan package
    dependency XercesC has no conan package
    Using conan package zlib for dependency ZLIB
    Using conan package libdeflate for dependency Deflate
    dependency OpenSSL has no conan package
    dependency CryptoPP has no conan package
    Using conan package proj for dependency PROJ
    Using conan package libtiff for dependency TIFF
    dependency ZSTD has no conan package
    dependency SFCGAL has no conan package
    Using conan package libgeotiff for dependency GeoTIFF
    Using conan package libpng for dependency PNG
    Using conan package libjpeg for dependency JPEG
    Using conan package giflib for dependency GIF
    Using conan package json-c for dependency JSONC
    Setting include for json-c: /home/conan/w/prod/BuildSingleReference/.conan/data/json-c/0.16/_/_/package/76f87539fc90ff313e0b3182641a9bb558a717d2/include;/home/conan/w/prod/BuildSingleReference/.conan/data/json-c/0.16/_/_/package/76f87539fc90ff313e0b3182641a9bb558a717d2/include/json-c
    dependency OpenCAD has no conan package
    Using conan package qhull for dependency QHULL
    dependency LERC has no conan package
    dependency BRUNSLI has no conan package
    dependency libQB3 has no conan package
    dependency Shapelib has no conan package
    dependency PCRE2 has no conan package
    dependency PCRE has no conan package
    dependency SQLite3 has no conan package
    CMake Error at source_subfolder/cmake/helpers/CheckDependentLibraries.cmake:460 (message):
      missing SQLite3_HAS_MUTEX_ALLOC
    Call Stack (most recent call first):
      source_subfolder/gdal.cmake:264 (include)
      source_subfolder/CMakeLists.txt:224 (include)
    
    
    WARN: libgeotiff/1.7.1: requirement proj/9.1.1 overridden by gdal/3.6.2 to proj/9.0.1 
    WARN: libtiff/4.4.0: requirement zlib/1.2.13 overridden by libgeotiff/1.7.1 to zlib/1.2.12 
    WARN: libtiff/4.4.0: requirement libdeflate/1.18 overridden by libgeotiff/1.7.1 to libdeflate/1.12 
    WARN: libcurl/7.88.1: requirement zlib/1.2.13 overridden by proj/9.0.1 to zlib/1.2.12 
    WARN: openssl/3.1.1: requirement zlib/1.2.13 overridden by libcurl/7.88.1 to zlib/1.2.12 
    WARN: libpng/1.6.38: requirement zlib/1.2.13 overridden by gdal/3.6.2 to zlib/1.2.12 
    gdal/3.6.2: ERROR: Package '1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7' build failed
    gdal/3.6.2: WARN: Build folder /home/conan/w/prod/BuildSingleReference/.conan/data/gdal/3.6.2/_/_/build/1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7
    ERROR: gdal/3.6.2: Error in build() method, line 749
    	cmake = self._configure_cmake()
    while calling '_configure_cmake', line 744
    	cmake.configure(build_folder=self._build_subfolder)
    	ConanException: Error 1 while executing cd '/home/conan/w/prod/BuildSingleReference/.conan/data/gdal/3.6.2/_/_/build/1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7/build' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="5" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/home/conan/w/prod/BuildSingleReference/.conan/data/gdal/3.6.2/_/_/package/1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_MODULE_PATH="/home/conan/w/prod/BuildSingleReference/.conan/data/gdal/3.6.2/_/_/build/1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7" -DCMAKE_PREFIX_PATH="/home/conan/w/prod/BuildSingleReference/.conan/data/gdal/3.6.2/_/_/build/1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DGDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE="True" -DBUILD_JAVA_BINDINGS="False" -DBUILD_CSHARP_BINDINGS="False" -DBUILD_PYTHON_BINDINGS="False" -DBUILD_TESTING="False" -DGDAL_USE_ZLIB_INTERNAL="False" -DGDAL_USE_JSONC_INTERNAL="False" -DGDAL_USE_JPEG_INTERNAL="False" -DGDAL_USE_JPEG12_INTERNAL="False" -DGDAL_USE_TIFF_INTERNAL="False" -DGDAL_USE_GEOTIFF_INTERNAL="False" -DGDAL_USE_GIF_INTERNAL="False" -DGDAL_USE_PNG_INTERNAL="False" -DGDAL_USE_LERC_INTERNAL="True" -DGDAL_USE_SHAPELIB_INTERNAL="True" -DBUILD_APPS="False" -DSQLite3_HAS_COLUMN_METADATA="True" -DSQLite3_HAS_RTREE="True" -DGDAL_USE_JSONC="True" -DGDAL_CONAN_PACKAGE_FOR_JSONC="json-c" -DGDAL_USE_GEOTIFF="True" -DGDAL_CONAN_PACKAGE_FOR_GEOTIFF="libgeotiff" -DTARGET_FOR_GEOTIFF="GeoTIFF::GeoTIFF" -DGDAL_USE_ARMADILLO="False" -DArmadillo_FOUND="False" -DGDAL_USE_ARROW="False" -DArrow_FOUND="False" -DGDAL_USE_BLOSC="False" -DBlosc_FOUND="False" -DGDAL_USE_CFITSIO="False" -DCFITSIO_FOUND="False" -DGDAL_USE_CRYPTOPP="False" -DCryptoPP_FOUND="False" -DGDAL_USE_CURL="False" -DCURL_FOUND="False" -DGDAL_USE_CRNLIB="False" -DCrnlib_FOUND="False" -DGDAL_USE_EXPAT="False" -DEXPAT_FOUND="False" -DGDAL_USE_OPENEXR="False" -DOpenEXR_FOUND="False" -DGDAL_USE_FREEXL="False" -DFreeXL_FOUND="False" -DGDAL_USE_GEOS="True" -DGDAL_CONAN_PACKAGE_FOR_GEOS="geos" -DTARGET_FOR_GEOS="GEOS::geos_c" -DGDAL_USE_GIF="True" -DGDAL_CONAN_PACKAGE_FOR_GIF="giflib" -DTARGET_FOR_GIF="GIF::GIF" -DGDAL_USE_GTA="False" -DGTA_FOUND="False" -DGDAL_USE_HDF4="False" -DHDF4_FOUND="False" -DGDAL_USE_HDF5="False" -DHDF5_FOUND="False" -DGDAL_USE_HEIF="False" -DHEIF_FOUND="False" -DGDAL_USE_KEA="False" -DKEA_FOUND="False" -DGDAL_USE_DEFLATE="True" -DGDAL_CONAN_PACKAGE_FOR_DEFLATE="libdeflate" -DTARGET_FOR_DEFLATE="None" -DGDAL_USE_ICONV="True" -DGDAL_CONAN_PACKAGE_FOR_ICONV="libiconv" -DTARGET_FOR_ICONV="Iconv::Iconv" -DGDAL_USE_JPEG="True" -DGDAL_CONAN_PACKAGE_FOR_JPEG="libjpeg" -DTARGET_FOR_JPEG="JPEG::JPEG" -DGDAL_USE_LIBKML="False" -DLibKML_FOUND="False" -DGDAL_USE_TIFF="True" -DGDAL_CONAN_PACKAGE_FOR_TIFF="libtiff" -DTARGET_FOR_TIFF="TIFF::TIFF" -DGDAL_USE_LZ4="False" -DLZ4_FOUND="False" -DGDAL_USE_MONGOCXX="False" -DMONGOCXX_FOUND="False" -DMYSQL_FOUND="False" -DGDAL_USE_NETCDF="False" -DNetCDF_FOUND="False" -DGDAL_USE_ODBC="False" -DODBC_FOUND="False" -DGDAL_USE_OPENJPEG="False" -DOPENJPEG_FOUND="False" -DGDAL_USE_OPENSSL="False" -DOpenSSL_FOUND="False" -DGDAL_USE_PCRE="False" -DPCRE_FOUND="False" -DGDAL_USE_PCRE2="False" -DPCRE2_FOUND="False" -DGDAL_USE_PDFIUM="False" -DPDFIUM_FOUND="False" -DGDAL_USE_POSTGRESQL="False" -DPostgreSQL_FOUND="False" -DGDAL_USE_PNG="True" -DGDAL_CONAN_PACKAGE_FOR_PNG="libpng" -DTARGET_FOR_PNG="PNG::PNG" -DGDAL_USE_PODOFO="False" -DPodofo_FOUND="False" -DGDAL_USE_POPPLER="False" -DPoppler_FOUND="False" -DGDAL_USE_PROJ="True" -DGDAL_CONAN_PACKAGE_FOR_PROJ="proj" -DTARGET_FOR_PROJ="PROJ::proj" -DGDAL_USE_QHULL="True" -DGDAL_CONAN_PACKAGE_FOR_QHULL="qhull" -DTARGET_FOR_QHULL="Qhull::qhullstatic_r" -DGDAL_USE_SQLITE3="False" -DSQLite3_FOUND="False" -DGDAL_USE_WEBP="False" -DWebP_FOUND="False" -DGDAL_USE_XERCESC="False" -DXercesC_FOUND="False" -DGDAL_USE_LIBXML2="False" -DLibXml2_FOUND="False" -DGDAL_USE_ZLIB="True" -DGDAL_CONAN_PACKAGE_FOR_ZLIB="zlib" -DTARGET_FOR_ZLIB="ZLIB::ZLIB" -DGDAL_USE_ZSTD="False" -DZSTD_FOUND="False" -Wno-dev '/home/conan/w/prod/BuildSingleReference/.conan/data/gdal/3.6.2/_/_/build/1e43d7c31ab24c5b63eb10db1eaa5fb4dcedafe7'
    
  • gdal/3.5.1@:
    Didn't run or was cancelled before finishing

  • gdal/3.5.2@:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds may be required once they are on the v2 ready list

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:

Failure in build 6 (e39be0e8fbcea41846452a41c0d8a790d9fb1364):

  • gdal/3.5.1@:
    Error running command conan export --name gdal --version 3.5.1 recipes/gdal/post_3.5.0/conanfile.py:

    ERROR: Error loading custom command cci.cmd_upgrade_qt_recipe: 'type' object is not subscriptable
    
    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py", line 4, in <module>
        from conans import CMake
    ImportError: cannot import name 'CMake' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • gdal/3.6.2@:
    Error running command conan export --name gdal --version 3.6.2 recipes/gdal/post_3.5.0/conanfile.py:

    ERROR: Error loading custom command cci.cmd_upgrade_qt_recipe: 'type' object is not subscriptable
    
    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py", line 4, in <module>
        from conans import CMake
    ImportError: cannot import name 'CMake' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • gdal/3.5.2@:
    Error running command conan export --name gdal --version 3.5.2 recipes/gdal/post_3.5.0/conanfile.py:

    ERROR: Error loading custom command cci.cmd_upgrade_qt_recipe: 'type' object is not subscriptable
    
    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-16461/recipes/gdal/post_3.5.0/conanfile.py", line 4, in <module>
        from conans import CMake
    ImportError: cannot import name 'CMake' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@stale
Copy link

stale bot commented Aug 7, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@stale stale bot closed this Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants