Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 844751 - sci-libs/gdal-3.5.0[-jpeg] fails to compile without media-libs/libjpeg-turbo installed
Summary: sci-libs/gdal-3.5.0[-jpeg] fails to compile without media-libs/libjpeg-turbo ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-15 06:51 UTC by Agostino Sarubbo
Modified: 2022-05-19 22:37 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,70.13 KB, text/plain)
2022-05-15 06:51 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-05-15 06:51:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/gdal-3.5.0 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-05-15 06:51:16 UTC
Created attachment 778991 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-05-15 06:51:17 UTC
Error(s) that match a know pattern:


-- Could NOT find Armadillo (missing: ARMADILLO_INCLUDE_DIR) 
-- Could NOT find Arrow (missing: Arrow_DIR)
-- Could NOT find Blosc (missing: BLOSC_LIBRARY BLOSC_INCLUDE_DIR) 
-- Could NOT find BRUNSLI (missing: BRUNSLI_ENC_LIB BRUNSLI_DEC_LIB BRUNSLI_INCLUDE_DIR) 
-- Could NOT find CryptoPP (missing: CRYPTOPP_LIBRARY CRYPTOPP_TEST_KNOWNBUG CRYPTOPP_INCLUDE_DIR) 
-- Could NOT find CSharp (missing: CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER) 
-- Could NOT find Deflate (missing: Deflate_LIBRARY Deflate_INCLUDE_DIR) 
-- Could NOT find ECW (missing: ECW_LIBRARY ECWnet_LIBRARY ECWC_LIBRARY NCSUtil_LIBRARY ECW_INCLUDE_DIR) 
-- Could NOT find FileGDB (missing: FileGDB_LIBRARY FileGDB_INCLUDE_DIR) 
-- Could NOT find FreeXL (missing: FREEXL_LIBRARY FREEXL_INCLUDE_DIR) 
-- Could NOT find FYBA (missing: FYBA_FYBA_LIBRARY FYBA_FYGM_LIBRARY FYBA_FYUT_LIBRARY FYBA_INCLUDE_DIR) 
-- Could NOT find GEOS (missing: GEOS_DIR)
-- Could NOT find GEOS (missing: GEOS_LIBRARY GEOS_INCLUDE_DIR) 
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find HDF4 (missing: HDF4_df_LIBRARY HDF4_mfhdf_LIBRARY HDF4_INCLUDE_DIR) 
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS C CXX) (found version "")
-- Could NOT find HDFS (missing: HDFS_LIBRARY HDFS_INCLUDE_DIR) 
-- Could NOT find IDB (missing: IDB_INCLUDE_DIR IDB_IFCPP_LIBRARY IDB_IFDMI_LIBRARY IDB_IFSQL_LIBRARY IDB_IFCLI_LIBRARY) 
-- Could NOT find Java (missing: Java_JAVA_EXECUTABLE Java_JAVAC_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVADOC_EXECUTABLE Java_JAVAH_EXECUTABLE Runtime Development) 
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Could NOT find KDU (missing: KDU_INCLUDE_DIR KDU_LIBRARY KDU_AUX_LIBRARY) 
-- Could NOT find LERC (missing: LERC_LIBRARY LERC_INCLUDE_DIR) 
-- Could NOT find LibKML (missing: LIBKML_BASE_LIBRARY LIBKML_INCLUDE_DIR LIBKML_DOM_LIBRARY LIBKML_ENGINE_LIBRARY) 
-- Could NOT find LURATECH (missing: LURATECH_LIBRARY LURATECH_INCLUDE_DIR) 
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR LZ4_VERSION) 
-- Could NOT find MONGOCXX (missing: MONGOCXX_INCLUDE_DIR BSONCXX_INCLUDE_DIR MONGOCXX_LIBRARY BSONCXX_LIBRARY) 
-- Could NOT find MRSID (missing: MRSID_LIBRARY MRSID_INCLUDE_DIR) 
-- Could NOT find MSSQL_ODBC (missing: MSSQL_ODBC_LIBRARY MSSQL_ODBC_INCLUDE_DIR MSSQL_ODBC_VERSION) 
-- Could NOT find MySQL (missing: MYSQL_LIBRARY MYSQL_INCLUDE_DIR) 
-- Could NOT find NetCDF (missing: NetCDF_DIR)
-- Could NOT find NetCDF (missing: NETCDF_LIBRARY NETCDF_INCLUDE_DIR) 
-- Could NOT find ODBCCPP (missing: ODBCCPP_LIBRARY ODBCCPP_INCLUDE_DIR) 
-- Could NOT find ODBC (missing: ODBC_LIBRARY ODBC_INCLUDE_DIR ODBCINST) 
-- Could NOT find OGDI (missing: OGDI_LIBRARY OGDI_INCLUDE_DIRS) 
-- Could NOT find OpenCAD (missing: OPENCAD_LIBRARY OPENCAD_INCLUDE_DIR) 
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR) 
-- Could NOT find OpenEXR (missing: OpenEXR_LIBRARY OpenEXR_UTIL_LIBRARY OpenEXR_HALF_LIBRARY OpenEXR_IEX_LIBRARY OpenEXR_INCLUDE_DIR Imath_INCLUDE_DIR) 
-- Could NOT find OpenJPEG (missing: OPENJPEG_LIBRARY OPENJPEG_INCLUDE_DIR) 
-- Could NOT find Oracle (missing: Oracle_LIBRARY Oracle_INCLUDE_DIR) 
-- Could NOT find Podofo (missing: PODOFO_LIBRARY PODOFO_INCLUDE_DIR) 
-- Could NOT find Poppler (missing: Poppler_LIBRARY Poppler_INCLUDE_DIR) 
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR) 
-- Could NOT find QHULL (missing: QHULL_LIBRARY QHULL_INCLUDE_DIR) 
-- Could NOT find RASTERLITE2 (missing: RASTERLITE2_LIBRARY RASTERLITE2_INCLUDE_DIR) 
-- Could NOT find rdb (missing: rdb_DIR)
-- Could NOT find SFCGAL (missing: SFCGAL_LIBRARY SFCGAL_INCLUDE_DIR) 
-- Could NOT find Shapelib (missing: Shapelib_INCLUDE_DIR Shapelib_LIBRARY) 
-- Could NOT find SPATIALITE (missing: SPATIALITE_LIBRARY SPATIALITE_INCLUDE_DIR) 
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) 
-- Could NOT find TileDB (missing: TileDB_DIR)
-- Could NOT find WebP (missing: WEBP_LIBRARY WEBP_INCLUDE_DIR) 
-- Could NOT find ZSTD (missing: ZSTD_DIR)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-15 06:52:08 UTC
-- Configuring done
CMake Error at gdal.cmake:478 (target_link_libraries):
  Target "GDAL" links to:

    JPEG::JPEG

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  CMakeLists.txt:218 (include)
Comment 4 Larry the Git Cow gentoo-dev 2022-05-17 07:36:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b3fb0086b61528086d4b4bde2fca8261b813e35

commit 4b3fb0086b61528086d4b4bde2fca8261b813e35
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 07:35:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 07:35:55 +0000

    sci-libs/gdal: force JPEG support on for 3.5.0
    
    Upstream recommend it, the build is broken without it, and while we
    could fix the build issue, I don't see much point for an extremely
    common dependency (especially given we're the first ones
    to notice the build is broken w/o it).
    
    Closes: https://bugs.gentoo.org/844751
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/gdal/gdal-3.5.0-r2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 08:05:36 UTC
patrick@ reported a very similar issue for png. Reported both upstream.
Comment 6 Larry the Git Cow gentoo-dev 2022-05-17 08:11:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0655625bf64978eb3e9f629e1ba29a49894a155e

commit 0655625bf64978eb3e9f629e1ba29a49894a155e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 08:10:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 08:11:34 +0000

    sci-libs/gdal: work around jpeg/png bugs in 3.5.0 for now
    
    Force on jpeg & png for now. It's not ideal but reported both upstream
    and I lack the gdal internals knowledge to deduce whether the various
    plugins which depend on each of them are functional (enough?) without
    each of them.
    
    They're both pretty small dependencies and hard to avoid in general,
    although I accept it's an inconvenience, some of this stuff was fairly
    expected & unavoidable with the big port to CMake.
    
    Bug: https://github.com/OSGeo/gdal/issues/5741
    Bug: https://github.com/OSGeo/gdal/issues/5742
    Bug: https://bugs.gentoo.org/844751
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.force                              | 6 ++++++
 sci-libs/gdal/{gdal-3.5.0-r2.ebuild => gdal-3.5.0-r3.ebuild} | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2022-05-19 22:37:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65aecfb0afb71b3dbe0d671006ca87bb48de6338

commit 65aecfb0afb71b3dbe0d671006ca87bb48de6338
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-19 22:33:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-19 22:33:16 +0000

    sci-libs/gdal: backport build system fixes for disabling JPEG + PNG
    
    Closes: https://bugs.gentoo.org/844751
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.force    |   2 +-
 sci-libs/gdal/Manifest             |   1 +
 sci-libs/gdal/gdal-3.5.0-r4.ebuild | 242 +++++++++++++++++++++++++++++++++++++
 3 files changed, 244 insertions(+), 1 deletion(-)