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

[pull] master from OSGeo:master #154

Merged
merged 4 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ci/travis/conda/muparser.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/recipe/meta.yaml b/recipe/meta.yaml
index d3bbc43..8bef37d 100644
--- a/recipe/meta.yaml
+++ b/recipe/meta.yaml
@@ -58,6 +58,7 @@ requirements:
- libwebp-base
- libxml2
- lz4-c
+ - muparser
- openssl
- pcre2
- proj
1 change: 1 addition & 0 deletions ci/travis/conda/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ git clone https://github.com/conda-forge/gdal-feedstock.git
cd gdal-feedstock

patch -p1 < ../ci/travis/conda/libgdal-adbc.patch
patch -p1 < ../ci/travis/conda/muparser.patch

cat > recipe/recipe_clobber.yaml <<EOL
source:
Expand Down
2 changes: 1 addition & 1 deletion frmts/gtiff/libtiff/tif_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ int TIFFSetSubDirectory(TIFF *tif, uint64_t diroff)
_TIFFCleanupIFDOffsetAndNumberMaps(tif);
tif->tif_curdir = 0; /* first directory of new chain */
/* add this offset to new IFD list */
_TIFFCheckDirNumberAndOffset(tif, tif->tif_curdir, diroff);
retval = _TIFFCheckDirNumberAndOffset(tif, tif->tif_curdir, diroff);
}
/* To be able to return from SubIFD or custom-IFD to main-IFD */
tif->tif_setdirectory_force_absolute = TRUE;
Expand Down
10 changes: 5 additions & 5 deletions frmts/vrt/vrtdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,17 +1066,17 @@ GDALDataset *VRTDataset::OpenVRTProtocol(const char *pszSpec)
bool bFound = false;
for (int j = 0; j < nSubdatasets && papszSubdatasets[j]; j += 2)
{
const std::string osSubdatasetSource(
strstr(papszSubdatasets[j], "=") + 1);
if (osSubdatasetSource.empty())
const char *pszEqual = strchr(papszSubdatasets[j], '=');
if (!pszEqual)
{
CPLError(CE_Failure, CPLE_IllegalArg,
"'sd_name:' failed to obtain "
"subdataset string ");
return nullptr;
}
const char *pszSubdatasetSource = pszEqual + 1;
GDALSubdatasetInfoH info =
GDALGetSubdatasetInfo(osSubdatasetSource.c_str());
GDALGetSubdatasetInfo(pszSubdatasetSource);
char *component =
info ? GDALSubdatasetInfoGetSubdatasetComponent(info)
: nullptr;
Expand All @@ -1088,7 +1088,7 @@ GDALDataset *VRTDataset::OpenVRTProtocol(const char *pszSpec)
if (bFound)
{
poSrcDS.reset(GDALDataset::Open(
osSubdatasetSource.c_str(),
pszSubdatasetSource,
GDAL_OF_RASTER | GDAL_OF_VERBOSE_ERROR,
aosAllowedDrivers.List(), aosOpenOptions.List(),
nullptr));
Expand Down
4 changes: 1 addition & 3 deletions port/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ if (NOT CMAKE_CROSSCOMPILING AND BUILD_VSIPRELOAD AND "${CMAKE_SYSTEM}" MATCHES
add_library(vsipreload MODULE vsipreload.cpp)
set_target_properties(vsipreload PROPERTIES PREFIX "")
target_link_libraries(vsipreload PRIVATE $<TARGET_NAME:${GDAL_LIB_TARGET_NAME}> ${CMAKE_DL_LIBS})
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16)
set_property(SOURCE vsipreload.cpp PROPERTY SKIP_UNITY_BUILD_INCLUSION ON)
endif ()
set_property(SOURCE vsipreload.cpp PROPERTY SKIP_UNITY_BUILD_INCLUSION ON)

# For musl / Alpine
foreach(_header IN ITEMS stdio.h fcntl.h unistd.h dirent.h sys/stat.h)
Expand Down
Loading