Opened 12 years ago

Closed 12 years ago

#33284 closed defect (fixed)

fontforge @20110222 compile fails on Xcode 4.3 / non-/Developer install

Reported by: smparkes@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: g5pw (Aljaž Srebrnič), nerdling (Jeremy Lavergne)
Port: fontforge

Description

Some include files reference absolute paths rooted at /Developer which don't exist in Xcode 4.3.

:info:build giomime.c:68:10: fatal error: '/Developer/Headers/FlatCarbon/Files.h' file not found
:info:build #include </Developer/Headers/FlatCarbon/Files.h>
:info:build          ^

Attachments (1)

fontforge-xcode43.patch (793 bytes) - added by g5pw (Aljaž Srebrnič) 12 years ago.
Patch made! It successfully compiles under Xcode 4.3 and it should work with previous versions, too!

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Xcode 4.3 was just released and several aspects of MacPorts 2.0.3 and the ports we currently have are probably incompatible with it. I recommend you use Xcode 4.2.x until we can sort this out.

comment:2 Changed 12 years ago by smparkes@…

Sure, I expected hiccups (and I have other rather compelling reasons to use Xcode 4.3). I just thought I'd add the ticket to help keep track (so to speak).

There's a simple hack/workaround until then to just add a symlink from /Applications/XCode.app/Contents/Developer during the install.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Also, since the problem is in the fontforge source code, and not the MacPorts Portfile, please report the problem to the developers of fontforge so they can fix it. Once they release a new version of fontforge containing such a fix, we'll be happy to update the MacPorts fontforge Portfile to that new version.

comment:4 Changed 12 years ago by smparkes@…

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

If someone made a reasonable patch, we might apply it, yes.

See also wiki:ProblemHotlist#xcode43

Changed 12 years ago by g5pw (Aljaž Srebrnič)

Attachment: fontforge-xcode43.patch added

Patch made! It successfully compiles under Xcode 4.3 and it should work with previous versions, too!

comment:6 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Cc: a2piratesoft@… added

Cc Me!

comment:7 Changed 12 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:8 Changed 12 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

We don't want to hardcode locations. Instead, rely on MacPorts finding the path for us and setting it in ${developer_dir}. Patched in r90799.

Note: See TracTickets for help on using tickets.