Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40052 closed defect (duplicate)

unison 2.40.102: Xcode project hard-codes SDK location

Reported by: neukomp@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: larryv (Lawrence Velázquez), ryandesign (Ryan Carsten Schmidt), Polyergic (Shad Sterling)
Port: unison

Description

Using sudo port install unison +aqua, the build fails with following error.

build error: There is no SDK with the name or path '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk'

I'm on OSX 10.8 and typically only build for 10.8. (Sometime for 10.7 & 10.6) but this port won't build because I don't have 10.5 sdk installed.

Attachments (3)

main.log (58.5 KB) - added by neukomp@… 11 years ago.
remove-sdk.patch (1.6 KB) - added by larryv (Lawrence Velázquez) 11 years ago.
patch for the patch that patches the Xcode project
main.2.log (180.6 KB) - added by neukomp@… 11 years ago.

Download all attachments as: .zip

Change History (14)

Changed 11 years ago by neukomp@…

Attachment: main.log added

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Priority: HighNormal

This is not a high-priority issue; please do not set the Priority field in the future.

The unison build probably hard-codes that path somewhere.

comment:2 Changed 11 years ago by neukomp@…

Understood.

For someone who uses unison multiple times per week (sometimes multiple times per day), this is a high priority to get fixed. But I understand that in the bigger scheme of Macports this may not be high.

As a suggestion, don't allow someone posting a bug to set the priority???

comment:3 in reply to:  2 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to neukomp@…:

For someone who uses unison multiple times per week (sometimes multiple times per day), this is a high priority to get fixed.

Understandable.

But I understand that in the bigger scheme of Macports this may not be high.

We generally reserve High priority for security issues.

As a suggestion, don't allow someone posting a bug to set the priority???

We’ve talked about it, but no one’s really bothered to look into it. It’s not a very pressing concern for us at the moment.

Changed 11 years ago by larryv (Lawrence Velázquez)

Attachment: remove-sdk.patch added

patch for the patch that patches the Xcode project

comment:4 in reply to:  1 Changed 11 years ago by larryv (Lawrence Velázquez)

Summary: unison 2.40.102 won't buildunison 2.40.102: Xcode project hard-codes SDK location

Replying to larryv@…:

The unison build probably hard-codes that path somewhere.

As I thought.

Can you try this patch?

% sudo port clean unison && sudo port selfupdate
% curl 'https://trac.macports.org/raw-attachment/ticket/40052/remove-sdk.patch' | patch -d $(port dir unison) -p0
% sudo port -d install unison

(If the patch command bails out and complains about permissions, run it as superuser.)

comment:5 Changed 11 years ago by neukomp@…

I can't get the patch to work. I've also tried sudo but it errors out with

sudo curl 'https://trac.macports.org/raw-attachment/ticket/40052/remove-sdk.patch' | patch -d $(port dir unison) -p0
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1684  100  1684    0     0    331      0  0:00:05  0:00:05 --:--:--  2204
patching file files/patch-uimacnew-uimacnew.xcodeproj-project.pbxproj.diff
patch: **** Can't rename file /var/folders/nl/mt_xzj2n48zb8trmfch28zvh0000gn/T//poLMoJAa to files/patch-uimacnew-uimacnew.xcodeproj-project.pbxproj.diff : Permission denied

I'm totally lost.

Sorry this is a bit beyond my capabilities.

comment:6 in reply to:  5 Changed 11 years ago by larryv (Lawrence Velázquez)

Other way around. Put “sudo” before “patch”, not “curl”.

Last edited 11 years ago by larryv (Lawrence Velázquez) (previous) (diff)

comment:7 Changed 11 years ago by neukomp@…

Thanks, that helped. The patch was applied but now I have another problem. The compile failed.

I've attached a new log.

Changed 11 years ago by neukomp@…

Attachment: main.2.log added

comment:8 Changed 11 years ago by neukomp@…

Not sure why it is building for i386 when I'm running x64 (os x 10.8.4)??

comment:9 in reply to:  8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: larryv@… ryandesign@… added
Resolution: duplicate
Status: newclosed

Replying to larryv@…:

The unison build probably hard-codes that path somewhere.

Duplicate of #24721.

Replying to neukomp@…:

Not sure why it is building for i386 when I'm running x64 (os x 10.8.4)??

Because you're using the +aqua variant, and it probably hardcodes that somewhere as well. Duplicate of #21862 I think?

comment:10 Changed 11 years ago by neukomp@…

Looks like #21862 (not 64 bit clean)

But likely also #24721 (hard-coded paths).

I'll follow the these two reports. We seemed to make quite a bit of progress over the past week or so. Would it be possible to continue to fix these other two bugs? I'm happy to help test as we go.

Thanks!

comment:11 Changed 11 years ago by Polyergic (Shad Sterling)

Cc: me@… added

Cc Me!

Note: See TracTickets for help on using tickets.