Opened 5 years ago

Closed 5 years ago

#58960 closed defect (fixed)

sequelpro-devel: xcodebuild: unknown option: -derivedDataPath

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: amake (Aaron Madlon-Kay)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sequelpro-devel

Description

sequelpro-devel does not build on Snow Leopard:

unknown option: -derivedDataPath
Usage: xcodebuild [-project <projectname>] [-activetarget] [-alltargets] [-target <targetname>]... [-parallelizeTargets] [-activeconfiguration] [-configuration <configurationname>] [-sdk <sdkfullpath>|<sdkname>] [-xcconfig <filepath>] [<buildsetting>=<value>]... [<buildaction>]...
       xcodebuild [-version [-sdk [<sdkfullpath>|<sdkname>] [<item>] ]
       xcodebuild [-showsdks]
       xcodebuild [-find <binary> -sdk <sdkfullpath>|<sdkname>]
       xcodebuild [-list]

-derivedDataPath is not known to old versions of Xcode. As far as I recall, it is only useful for Xcode 10 and later. So it probably shouldn't appear unconditionally in a Portfile unless that port already requires Xcode 10 or later.

I assume this should be in the xcode portgroup, not in individual portfiles, but see #57137 for discussion about that.

Change History (6)

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

Ping.

comment:2 Changed 5 years ago by Aaron Madlon-Kay <amake@…>

Resolution: fixed
Status: assignedclosed

In 4dfcb784cf2329b0ae83e006b23a64d97d262536/macports-ports (master):

sequelpro-devel: fix build on pre-Xcode 10

Fixes #58960

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

Resolution: fixed
Status: closedreopened

I guess it is needed on some earlier Xcode versions after all. The build fails on 10.10 with:

Couldn't create module cache folder '/opt/bblocal/var/macports/home/Library/Developer/Xcode/DerivedData/ModuleCache': Unable to create directory: /opt/bblocal/var/macports/home/Library/Developer/Xcode/DerivedData/ModuleCache (Operation not permitted)
Couldn't update module cache session file '/opt/bblocal/var/macports/home/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation': The folder “Session.modulevalidation” doesn’t exist.

** BUILD FAILED **

comment:4 Changed 5 years ago by amake (Aaron Madlon-Kay)

So do we know what versions of Xcode understand -derivedDataPath?

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

I didn't, but I just checked our buildbot machines, and Xcode 4.6.3 on Lion doesn't understand it but Xcode 5.1.1 on Mountain Lion does. So let's assume Xcode 5 and up support it.

comment:6 Changed 5 years ago by Aaron Madlon-Kay <amake@…>

Resolution: fixed
Status: reopenedclosed

In 4a1e1accd96031591a8ca89e990d43eaa3ccac6e/macports-ports (master):

sequelpro-devel: re-fix build on older Xcodes

Fixes #58960

Note: See TracTickets for help on using tickets.