[MacPorts] #41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ---------------------+----------------------------------- Reporter: mojca@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake, freetype, root ---------------------+----------------------------------- In the light of Ryan's comment about FreeType (#41567), we seem to have a problem in CMake now, so I'm unable to proceed testing CMake-based installation of Root. The file contains: {{{ if(FREETYPE_INCLUDE_DIR_freetype2 AND EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h") file(STRINGS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h" freetype_version_str REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$") }}} and the three relevant variables are automatically being set to the following values {{{ FREETYPE_INCLUDE_DIR_freetype2 */usr/X11R6/include/freetype2 FREETYPE_INCLUDE_DIR_ft2build */usr/X11R6/include FREETYPE_LIBRARY */usr/X11R6/lib/libfreetype.dylib }}} I tried setting all possible combinations of variables that came to my mind, but I was unable to point Root to the right version of FreeType. -- Ticket URL: <https://trac.macports.org/ticket/41569> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ----------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => css@… * cc: css@… (removed) * port: cmake, freetype, root => cmake Comment: I didn't expect a bugfix version update of freetype would cause all this ruckus! But according to freetype, cmake is doing it wrong. It shouldn't assume the file `${FREETYPE_INCLUDE_DIR_freetype2}/freetype/freetype.h` exists, and with freetype 2.5.1 it doesn't anymore. File a bug with cmake. -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ----------------------+------------------- Comment (by mojca@…): See also https://sft.its.cern.ch/jira/browse/ROOT-5767 -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ----------------------+------------------- Comment (by mojca@…): But please leave the ticket open until this gets fixed. Apparently this update broke both usage of FreeType from X11R6 as well as from MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ----------------------+------------------- Comment (by ryandesign@…): Do you want to [http://public.kitware.com/Bug/ file the cmake bug report] or should I? -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ----------------------+------------------- Comment (by mojca@…): I would be grateful if you could file the report since I'm not sure what to write in it. -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cmake | ----------------------+------------------- Comment (by ryandesign@…): http://public.kitware.com/Bug/view.php?id=14601 -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41569: cmake: FindFreetype.cmake doesn't work properly after upgrading to FreeType 2.5.1 ----------------------+-------------------- Reporter: mojca@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: cmake | ----------------------+-------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Upstream has not moved on this issue, so I committed a quick fix in r114177. This works for MacPorts, but is not suitable for inclusion upstream because it ''only'' works with freetype 2.5.1 and later. -- Ticket URL: <https://trac.macports.org/ticket/41569#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts