[MacPorts] #41593: freetype: many ports fail to build due to change in include path structure
#41593: freetype: many ports fail to build due to change in include path structure ----------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: freetype ----------------------+-------------------------- I know this might be considered a duplicate but I'm hoping to get some clarification on this issue before doing wholesale changes to ports. With the update to freetype 2.5.1, the include file path structure has changed from {{{ /opt/local/include/freetype2/freetype/freetype.h }}} to just {{{ /opt/local/include/freetype2/freetype.h }}} Many ports that reference freetype header files use something like {{{ #include <freetype/freetype.h> #include <freetype/tttables.h> }}} After the change, these are broken due to the removal of the freetype path element. Example ports that I saw today are gimp2, webkit-gtk3 and probably many more. So is this change intentional and the various ports need to change to {{{ #include <freetype2/freetype.h> #include <freetype2/tttables.h> }}} or something else or is this a probem that should be fixed in freetype? -- Ticket URL: <https://trac.macports.org/ticket/41593> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail to build due to change in include path structure -----------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------- Comment (by ryandesign@…): As far as I can tell, any port doing e.g. {{{ #include <freetype/freetype.h> #include <freetype/tttables.h> }}} is doing it wrong. It should instead be doing: {{{ #include <ft2build.h> #include FT_FREETYPE_H #include FT_TRUETYPE_TABLES_H }}} This has been the case for years; the deprecated usage was finally (and unexpectedly, to me) broken in 2.5.1 by rearranging the files. -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail to build due to change in include path structure -----------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------- Comment (by ryandesign@…): The freetype CHANGES file explains: {{{ CHANGES BETWEEN 2.5 and 2.5.1 ... II. IMPORTANT CHANGES ... - The header file layout has been changed. After installation, all files are now located in `<prefix>/include/freetype2'. Applications that use (a) `freetype-config' or FreeType's `pkg-config' file to get the include directory for the compiler, and (b) the documented way for header inclusion like #include <ft2build.h> #include FT_FREETYPE_H ... don't need any change to the source code. }}} -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail to build due to change in include path structure -----------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------- Comment (by ryandesign@…): Feel free to send me any tickets for this issue (or just the names of affected ports) and I can try to fix them. -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail to build due to change in include path structure -------------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: worksforme | Keywords: Port: freetype | -------------------------+-------------------------- Changes (by devans@…): * status: new => closed * resolution: => worksforme Comment: Thanks, Ryan. This answers my question. Will proceed according to these guidelines and notify upstream where appropriate. -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail to build due to change in include path structure -------------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: worksforme | Keywords: Port: freetype | -------------------------+-------------------------- Comment (by suv-sf@…): Upstream reports filed for * Inkscape: [https://bugs.launchpad.net/inkscape/+bug/1255830] * GIMP: [https://bugzilla.gnome.org/show_bug.cgi?id=719560] -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail with freetype 2.5.1 due to change in include path structure -------------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: worksforme | Keywords: Port: freetype | -------------------------+-------------------------- -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#41593: freetype: many ports fail with freetype 2.5.1 due to change in include path structure -------------------------+-------------------------- Reporter: devans@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: worksforme | Keywords: Port: freetype | -------------------------+-------------------------- Comment (by jmr@…): #41970 is an instance of this. -- Ticket URL: <https://trac.macports.org/ticket/41593#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts