Opened 12 years ago

Closed 11 years ago

#39062 closed defect (fixed)

TeXShop3 build failure (OS 10.7.5, Xcode 4.6.2)

Reported by: gallafent Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: anddam (Andrea D'Amore), mathsmac@…, cooljeanius (Eric Gallager)
Port: TeXShop3

Description (last modified by mf2k (Frank Schima))

Upon modifying the Portfile so that the checksum matches the downloaded source (see ticket:39061 ), the build commences but fails, since the type NSSharingServicePicker is not present. Build log attached. This is probably related to ticket:38981 .

Is there a single variable which may be used to specify the SDK used for building? Searching within http://guide.macports.org/ doesn't mention one, with SDK being specified in various places (universal C++ and C flags, and so on).

Attachments (3)

main.log (463.3 KB) - added by gallafent 12 years ago.
port-texshop3.diff (354 bytes) - added by anddam (Andrea D'Amore) 11 years ago.
main.2.log (496.7 KB) - added by gallafent 11 years ago.
main.log with version 3.18

Download all attachments as: .zip

Change History (19)

Changed 12 years ago by gallafent

Attachment: main.log added

comment:1 Changed 12 years ago by gallafent

Incidentally, I tried setting the SDK in the environment:

export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

… but this made no difference.

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Cc: jwa@… openmaintainer@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…
Port: TeXShop3 added; texshop3 removed

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

Replying to william@…:

Incidentally, I tried setting the SDK in the environment:

export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

… but this made no difference.

MacPorts ignores the user’s environment.

comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)

Have any of you reported this upstream? TeXShop 3 claims that it supports Lion.

comment:5 Changed 12 years ago by jyrkiwahlstedt

There's a new version of the package now with a correction for a another SDK-related issue, can you try again with the new one? But looking at source code, this is in TSDocument.m still, so could stop build:(

comment:6 in reply to:  4 Changed 12 years ago by anddam (Andrea D'Amore)

Replying to jwa@…:

There's a new version of the package now with a correction for a another SDK-related issue, can you try again with the new one? But looking at source code, this is in TSDocument.m still, so could stop build:(

The updated tarball fixed the specific error but the port build is still broken. I got new, different errors while building, the same the OP did.

Replying to larryv@…:

Have any of you reported this upstream? TeXShop 3 claims that it supports Lion.

Richard Koch replied:

TeXShop must be compiled on Mountain Lion because it supports sharing. […] TeXShop RUNS on Lion.

We should just disable the port building on 10.7 until it is confirmed to be fixed.

comment:7 Changed 12 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:8 Changed 11 years ago by gallafent

It seems odd to me that a specific OS version should be required to build! Surely that's the whole point of the SDK system, to isolate the build environment from the currently running OS. I'll have a look to see if this can be fixed by forcing the 10.8 SDK. I note that the build line includes “SDKROOT=""” … so perhaps if that can be set to the 10.8 SDK …

comment:9 Changed 11 years ago by anddam (Andrea D'Amore)

I was already passing -sdk macosx10.8 to build command but I just noticed the issue happens in destroot phase not in build so it was just a matter of passing the argument to both phases. I'm attaching a patch.

Changed 11 years ago by anddam (Andrea D'Amore)

Attachment: port-texshop3.diff added

comment:10 in reply to:  9 Changed 11 years ago by gallafent

Replying to and.damore@…:

I was already passing -sdk macosx10.8 to build command but I just noticed the issue happens in destroot phase not in build so it was just a matter of passing the argument to both phases. I'm attaching a patch.

I was just testing with the commandline “sudo port install texshop3 configure.sdkroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk”, and can confirm that this also worked fine :)

(so the statement “TeXShop must be compiled on Mountain Lion because it supports sharing.” is false, thankfully :)

comment:11 Changed 11 years ago by mathsmac@…

Cc: mathsmac@… added

Cc Me!

Changed 11 years ago by gallafent

Attachment: main.2.log added

main.log with version 3.18

comment:12 Changed 11 years ago by gallafent

Still broken in 3.18, as of today! Skimming the log indicates that this is still the same problem, requiring the use of the 10.8 SDK.

comment:13 in reply to:  12 ; Changed 11 years ago by anddam (Andrea D'Amore)

Replying to william@…:

Still broken in 3.18, as of today! Skimming the log indicates that this is still the same problem, requiring the use of the 10.8 SDK.

The patch has never been committed. Did you try it?

@jwa: any reason for not committing it?

comment:14 in reply to:  13 Changed 11 years ago by jyrkiwahlstedt

Replying to and.damore@…:

Replying to william@…:

Still broken in 3.18, as of today! Skimming the log indicates that this is still the same problem, requiring the use of the 10.8 SDK.

The patch has never been committed. Did you try it?

@jwa: any reason for not committing it?

None whatsoever, just had all kinds of things going on, now committed in r106673, thanks, please check and confirm, whether it works. I did not bump revision, as the existing installations don't have to be rebuilt, only those are affected that didn't build…

comment:15 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:16 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

The Lion and Mountain Lion buildbots succeeded building the port. The Snow Leopard one of course still fails with the message "This version is for 10.7, Lion, and later only".

Note: See TracTickets for help on using tickets.