Skip to content

Commit

Permalink
sci-libs/gdal: work around jpeg/png bugs in 3.5.0 for now
Browse files Browse the repository at this point in the history
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: OSGeo/gdal#5741
Bug: OSGeo/gdal#5742
Bug: https://bugs.gentoo.org/844751
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
thesamesam committed May 17, 2022
1 parent d92493d commit 0655625
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions profiles/base/package.use.force
@@ -1,6 +1,12 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Sam James <sam@gentoo.org> (2022-05-17)
# Force on jpeg & png for now until build system fixes are made
# by upstream. The CMake port is new so it's fairly expected
# to have a few bumps. bug #844751.
>=sci-libs/gdal-3.5.0 jpeg png

# Esteve Varela Colominas <esteve.varela@gmail.com> (2022-02-19)
# Use the jemalloc allocator for telegram, as recommended by upstream,
# to reduce memory usage, at least on glibc.
Expand Down
Expand Up @@ -15,7 +15,7 @@ SRC_URI+=" test? ( https://download.osgeo.org/${PN}/${PV}/${PN}autotest-${PV}.ta
LICENSE="BSD Info-ZIP MIT"
SLOT="0/31" # subslot is libgdal.so.<SONAME>
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="armadillo +curl cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_ssse3 doc fits geos gif gml hdf5 heif java jpeg2k lzma mysql netcdf odbc ogdi opencl oracle pdf png postgres python spatialite sqlite test webp xls zstd"
IUSE="armadillo +curl cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_ssse3 doc fits geos gif gml hdf5 heif java jpeg jpeg2k lzma mysql netcdf odbc ogdi opencl oracle pdf png postgres python spatialite sqlite test webp xls zstd"
# Tests fail to build in 3.5.0, let's not worry too much yet given
# we're only just porting to CMake. Revisit later.
RESTRICT="!test? ( test ) test"
Expand All @@ -42,7 +42,6 @@ DEPEND="dev-libs/expat
dev-libs/libxml2:2
dev-libs/openssl:=
media-libs/tiff
media-libs/libjpeg-turbo:=
>=sci-libs/libgeotiff-1.5.1-r1:=
>=sci-libs/proj-6.0.0:=
sys-libs/zlib[minizip(+)]
Expand All @@ -54,6 +53,7 @@ DEPEND="dev-libs/expat
gml? ( >=dev-libs/xerces-c-3.1 )
heif? ( media-libs/libheif:= )
hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
jpeg? ( media-libs/libjpeg-turbo:= )
jpeg2k? ( media-libs/openjpeg:2= )
lzma? ( || (
app-arch/xz-utils
Expand Down Expand Up @@ -134,7 +134,7 @@ src_configure() {
-DGDAL_USE_HDFS=OFF
-DGDAL_USE_ICONV=ON # TODO dep
-DGDAL_USE_IDB=OFF
-DGDAL_USE_JPEG=ON
-DGDAL_USE_JPEG=$(usex jpeg)

# https://gdal.org/build_hints.html#jpeg12
# Independent of whether using system libjpeg
Expand Down

0 comments on commit 0655625

Please sign in to comment.