[MacPorts] #47716: revert freetype to old filestructure, for compatibility with ftgl
#47716: revert freetype to old filestructure, for compatibility with ftgl ---------------------------------------+-------------------------------- Reporter: rene.vanpaassen@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: freetype development ftgl | Port: freetype ---------------------------------------+-------------------------------- Freetype used to install most header files in <includedir>/freetype2/freetype for 2.5.5, this changed to: <includedir>/freetype2 This creates a conflict when attempting to use ftgl, which depends on freetype; on a case-insensitive mac (as most are), the ftgl FTGlyph.h is confused with freetype's ftglyph.h. For compilation with freetype, the <includedir>/freetype2 dir needs to be in the include path, which makes that all header files there are visible to the compiler. Attached portfile path reverts to the old install path, and adjusts the <includedir>/freetype2/config/ftheader.h file accordingly. I also made a bug report for freetyps, no idea whether and when this is taken up. -- Ticket URL: <https://trac.macports.org/ticket/47716> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: revert freetype to old filestructure, for compatibility with ftgl --------------------------------+-------------------------- Reporter: rene.vanpaassen@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: freetype | --------------------------------+-------------------------- Changes (by mf2k@…): * cc: ryandesign@… (removed) * keywords: freetype development ftgl => * owner: macports-tickets@… => ryandesign@… Old description:
Freetype used to install most header files in
<includedir>/freetype2/freetype
for 2.5.5, this changed to: <includedir>/freetype2
This creates a conflict when attempting to use ftgl, which depends on freetype; on a case-insensitive mac (as most are), the ftgl FTGlyph.h is confused with freetype's ftglyph.h. For compilation with freetype, the <includedir>/freetype2 dir needs to be in the include path, which makes that all header files there are visible to the compiler.
Attached portfile path reverts to the old install path, and adjusts the <includedir>/freetype2/config/ftheader.h file accordingly.
I also made a bug report for freetyps, no idea whether and when this is taken up.
New description: Freetype used to install most header files in {{{ <includedir>/freetype2/freetype }}} for 2.5.5, this changed to: {{{ <includedir>/freetype2 }}} This creates a conflict when attempting to use ftgl, which depends on freetype; on a case-insensitive mac (as most are), the ftgl FTGlyph.h is confused with freetype's ftglyph.h. For compilation with freetype, the <includedir>/freetype2 dir needs to be in the include path, which makes that all header files there are visible to the compiler. Attached portfile path reverts to the old install path, and adjusts the <includedir>/freetype2/config/ftheader.h file accordingly. I also made a bug report for freetyps, no idea whether and when this is taken up. -- -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: revert freetype to old filestructure, for compatibility with ftgl --------------------------------+-------------------------- Reporter: rene.vanpaassen@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: freetype | --------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [ticket:47716 rene.vanpaassen@…]:
Attached portfile path reverts to the old install path, and adjusts the <includedir>/freetype2/config/ftheader.h file accordingly.
No, we're not going to do that. This is an [https://sourceforge.net/p/ftgl/bugs/41/ FTGL bug]. They should rename their header files. -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: ftgl: installs headers with names that conflict with freetype headers --------------------------------+--------------------- Reporter: rene.vanpaassen@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: ftgl | --------------------------------+--------------------- Changes (by ryandesign@…): * owner: ryandesign@… => blair@… * cc: krugazor@…, ryandesign@… (added) * port: freetype => ftgl Comment: See also #41572. Unfortunately the last ftgl release was in 2008 so the project may be dead and we may have to fix it ourselves. -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: ftgl: installs headers with names that conflict with freetype headers --------------------------------+--------------------- Reporter: rene.vanpaassen@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: ftgl | --------------------------------+--------------------- Comment (by rene.vanpaassen@…): I still think the main problem is with freetype2. With the current set-up; {{{ pkg-config --cflags freetype2 -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 }}} over 40 files with short names -- and short prefixes, ft or tt -- are added to the compiler's search path. If all libraries would do that, projects with more than just a few libraries become a compilation nightmare. In version 2.5.0 (don't know where the exact change was), most of these files were still under a directory freetype/ FTGL, although old, still nicely hides its file names under an FTGL/ directory. -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: ftgl: installs headers with names that conflict with freetype headers --------------------------------+--------------------- Reporter: rene.vanpaassen@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: ftgl | --------------------------------+--------------------- Comment (by ryandesign@…): If you believe the freetype headers should be moved back to where they were before, you would have to contact the freetype developers about that. I don't want to second-guess them. -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: ftgl: installs headers with names that conflict with freetype headers --------------------------------+--------------------- Reporter: rene.vanpaassen@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: ftgl | --------------------------------+--------------------- Comment (by mojca@…): See also http://savannah.nongnu.org/bugs/?40972 -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: ftgl: installs headers with names that conflict with freetype headers --------------------------------+--------------------- Reporter: rene.vanpaassen@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: ftgl | --------------------------------+--------------------- Comment (by rene.vanpaassen@…): Yes, I tried. Let's see if they come to their senses, but indeed the 40972 (which I didn't find on freetype by the way, I opened a new bug report) was flagged as a wontfix. -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47716: freetype: revert header layout to prevent conflicts with ftgl --------------------------------+--------------------- Reporter: rene.vanpaassen@… | Owner: blair@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: freetype, ftgl | --------------------------------+--------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed * port: ftgl => freetype, ftgl Comment: It looks like they have come to their senses after all. The CHANGES file in the freetype 2.6.1 release says: {{{ II. IMPORTANT CHANGES - The header file layout has been changed (again), moving all header files except `ft2build.h' into a subdirectory tree. Doing so reduces the possibility of header file name clashes (e.g., FTGL's `FTGlyph.h' with FreeType's `ftglyph.h') on case insensitive file systems like Mac OS X or Windows. }}} -- Ticket URL: <https://trac.macports.org/ticket/47716#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts