[Bug 290508] graphics/dcmtk: libtiff patch breaks downstream builds

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Oct 2025 13:17:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290508

            Bug ID: 290508
           Summary: graphics/dcmtk: libtiff patch breaks downstream builds
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: jwb@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Replacing ${LIBTIFF_LIBS} with TIFF:tiff gets propagated into the installed
cmake file and causes builds outside of ports that depend on dcmtk to break:

CMake Error at /usr/local/lib/cmake/dcmtk/DCMTKTargets.cmake:197
(set_target_properties):                                                        
  The link interface of target "DCMTK::dcmimage" contains:

    TIFF::tiff

  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):
  /usr/local/lib/cmake/dcmtk/DCMTKConfig.cmake:129 (include)
  CMakeLists.txt:68 (find_package)

I'm not sure what the purpose of this patch is (maybe to strip the SO versions
from the lib path?).  In any case, we need a way to ensure that
/usr/local/lib/cmake/dcmtk/DCMTKTargets.cmake is usable by dependent software.

Thanks...

-- 
You are receiving this mail because:
You are the assignee for the bug.