Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935567 - sci-libs/gdal-3.9.0 - add missing USE=shp or USE=shapelib
Summary: sci-libs/gdal-3.9.0 - add missing USE=shp or USE=shapelib
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-05 17:37 UTC by Martin Mokrejš
Modified: 2024-08-30 23:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2024-07-05 17:37:04 UTC
-- Could NOT find ZSTD (missing: ZSTD_DIR)
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.0")
-- Found ZSTD: /usr/lib64/libzstd.so (found version "1.5.6")
-- Could NOT find SFCGAL (missing: SFCGAL_LIBRARY SFCGAL_INCLUDE_DIR) 
-- Reading /usr/share/cmake/GeoTIFF/geotiff-config.cmake
-- GeoTIFF configuration, version 1.7.1
--   include directory: ${GeoTIFF_INCLUDE_DIRS}
--   ${GeoTIFF_LIBRARIES} set to shared library
-- Found PNG: /usr/lib64/libpng.so (found suitable version "1.6.43+apng", minimum required is "1.6")
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62")
-- Performing Test HAVE_JPEGTURBO_DUAL_MODE_8_12
-- Performing Test HAVE_JPEGTURBO_DUAL_MODE_8_12 - Success
-- Found GIF: /usr/lib64/libgif.so (found version "5.2.2")
-- Could NOT find OpenCAD (missing: OPENCAD_LIBRARY OPENCAD_INCLUDE_DIR) 
-- Found QHULL: /usr/lib64/libqhull_r.so
-- Could NOT find LERC (missing: LERC_LIBRARY LERC_INCLUDE_DIR) 
-- Could NOT find BRUNSLI (missing: BRUNSLI_ENC_LIB BRUNSLI_DEC_LIB BRUNSLI_INCLUDE_DIR) 
-- Could NOT find libQB3 (missing: libQB3_DIR)
-- Found Shapelib: /usr/include/libshp (found version "1.5.0")
-- SHAPELIB has been found, but is disabled by default. Enable it by setting GDAL_USE_SHAPELIB=ON


I think there should be at least USE flag to enable shapelib. Thank you.
Comment 1 Martin Mokrejš 2024-07-06 00:40:11 UTC
And there is 3.9.1 out, btw

https://github.com/OSGeo/gdal/blob/v3.9.1/NEWS.md
Comment 2 Thomas Bettler 2024-08-10 14:23:04 UTC
unfortunately adding adding shapelib doensn't work straight forward by just adding
```
-DGDAL_USE_SHAPELIB=$(usex shapefile)
```

and none of arch, fedora or alpine did add shapelib (until now)
...
and on gentoo starts throwing errors like
-- Configuring done (15.7s)
CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:shapelib>

  Objects of target "shapelib" referenced but no such target exists.


CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:shapelib>

  Objects of target "shapelib" referenced but no such target exists.


CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:shapelib>

  Objects of target "shapelib" referenced but no such target exists.


CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:shapelib>

  Objects of target "shapelib" referenced but no such target exists.


CMake Error at frmts/aigrid/CMakeLists.txt:14 (target_link_libraries):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:shapelib>

  Objects of target "shapelib" referenced but no such target exists.


-- Generating done (0.3s)


so any contribution is welcome to get this to work as proposed ;-)
Comment 3 Martin Mokrejš 2024-08-30 23:47:14 UTC
Ah, thank you for the research. I did not know it is not really implemented in the build system.