Skip to content

deps: Raise libtiff minimum from 4.0 (late 2011) to 4.1 (late 2019) - #5414

Open
lgritz wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
lgritz:lg-tiffbump
Open

deps: Raise libtiff minimum from 4.0 (late 2011) to 4.1 (late 2019)#5414
lgritz wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
lgritz:lg-tiffbump

Conversation

@lgritz

@lgritz lgritz commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Still well over our "3-5 years back" guidelines for supporting dependencies.

Still well over our "3-5 years back" guidelines for supporting
dependencies.

Signed-off-by: Larry Gritz <lg@larrygritz.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Raises the minimum supported libTIFF version from 4.0 to 4.1.

Changes:

  • Enforces libTIFF 4.1 at configuration and compile time.
  • Updates compression handling and Deflate linkage.
  • Removes obsolete compatibility paths and updates documentation.

Critical finding: CI jobs still use TIFF_BUILD_VERSION=4.0.0 with local TIFF builds, causing failures against the new version guard. Update those jobs to libTIFF 4.1+ or remove them.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tiff.imageio/tiffoutput.cpp Updates libTIFF compatibility logic and Exif handling.
src/tiff.imageio/tiffinput.cpp Raises the minimum version and updates compression mappings.
src/tiff.imageio/CMakeLists.txt Adds Deflate linkage.
src/cmake/externalpackages.cmake Raises the required libTIFF version.
INSTALL.md Documents the new minimum dependency.
Suppressed comments (1)

src/cmake/externalpackages.cmake:106

  • This minimum is not propagated to installed static-package consumers: src/cmake/Config.cmake.in:33 still calls find_dependency(TIFF) without a version. A consumer can therefore resolve libtiff 4.0 even though this build now requires 4.1, leaving an unsupported dependency configuration undetected. Please make the exported config require TIFF 4.1 as well.
                      VERSION_MIN 4.1

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


checked_find_package (TIFF REQUIRED
VERSION_MIN 4.0
VERSION_MIN 4.1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, Copilot! Fixing.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants