[MacPorts] #40814: cmake configure faulure (subdirectories with symlinks?)
#40814: cmake configure faulure (subdirectories with symlinks?) ------------------------+-------------------------------- Reporter: rharwood@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: cmake ------------------------+-------------------------------- Tried to install cmake; got the attached main.log. Thanks in advance. -- Ticket URL: <https://trac.macports.org/ticket/40814> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure faulure (subdirectories with symlinks?) -------------------------+-------------------------------- Reporter: rharwood@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+-------------------------------- Comment (by ryandesign@…): What is /Volumes/ServerDrive/NetUsers/robbie? [[br]] What is /Network/Servers/osxserver.b-aassoc.edu/Volumes/ServerDrive/NetUsers/robbie? [[br]] One of these is presumably your MacPorts prefix? What's the other? -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure faulure (subdirectories with symlinks?) -------------------------+-------------------------------- Reporter: rharwood@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+-------------------------------- Comment (by rharwood@…): Replying to [comment:1 ryandesign@…]:
What is /Volumes/ServerDrive/NetUsers/robbie? [[br]] What is /Network/Servers/osxserver.b-aassoc.edu/Volumes/ServerDrive/NetUsers/robbie? [[br]] One of these is presumably your MacPorts prefix? What's the other?
And we have uncovered the reason I usually do replacement when posting main.log. I can't win; if I replace them, people get confused, and if I don't, it's also confusing. So this machine runs osx server. The server believes itself to be osxserver.b-aassoc.edu. So those two directories are one and the same due to the magic of symlinks (osxserver.b-aassoc.edu -> /) because of how server sets itself up. The longer of the two is my prefix. -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure faulure (subdirectories with symlinks?) -------------------------+------------------- Reporter: rharwood@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+------------------- Changes (by ryandesign@…): * cc: css@… (removed) * cc: ryandesign@… (added) * owner: macports-tickets@… => css@… Comment: Well I'm glad you didn't anonymize this portion of the log because it's undoubtedly part of the problem, given this error in the log: {{{ :info:configure directory :info:configure "/Network/Servers/osxserver.b-aassoc.edu/Network/Servers/osxserver.b-aassoc.edu/Network/Servers/osxserver.b-aassoc.edu/Network/Servers/osxserver.b-aassoc.edu/Volumes/ServerDrive/NetUsers/robbie/var/macports/build/_Volumes_ServerDrive_NetUsers_robbie_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12/Utilities/KWIML" :info:configure is not a subdirectory of :info:configure "/Network/Servers/osxserver.b-aassoc.edu/Network/Servers/osxserver.b-aassoc.edu/Network/Servers/osxserver.b-aassoc.edu/Volumes/ServerDrive/NetUsers/robbie/var/macports/build/_Volumes_ServerDrive_NetUsers_robbie_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12". }}} I don't know why the symlinked portion of the path seems to be repeated multiple times there. But I do recall that configuring MacPorts with a prefix that contains symlinks causes problems. So you should configure the MacPorts prefix to be the correct real resolved path on disk. So if the prefix should be a folder "robbie" in a folder "NetUsers" on a secondary drive called "ServerDrive" then configure MacPorts with "`--prefix=/Volumes/ServerDrive/NetUsers/robbie`". If ServerDrive is the primary drive, i.e. "/", then configure with "`--prefix=/NetUsers/robbie`". -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure faulure (subdirectories with symlinks?) -------------------------+------------------- Reporter: rharwood@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+------------------- Comment (by rharwood@…): Replying to [comment:3 ryandesign@…]:
I don't know why the symlinked portion of the path seems to be repeated multiple times there. But I do recall that configuring MacPorts with a prefix that contains symlinks causes problems. So you should configure the MacPorts prefix to be the correct real resolved path on disk. So if the prefix should be a folder "robbie" in a folder "NetUsers" on a secondary drive called "ServerDrive" then configure MacPorts with "`--prefix=/Volumes/ServerDrive/NetUsers/robbie`". If ServerDrive is the primary drive, i.e. "/", then configure with "`--prefix=/NetUsers/robbie`".
I don't know why either, but it's fairly consistent about showing up multiple times between different ports. At a guess, it's because my home directory is set to include the symlink because that is how OSX Server sets things up. This machine is in-use, so rebuilding macports and everything that it has installed is not an option. This symlink has not caused problems in the past (with the exception of https://trac.macports.org/ticket/39864 which was fixed), so I believe this is a soluble problem. -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure faulure (subdirectories with symlinks?) -------------------------+------------------- Reporter: rharwood@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+------------------- Comment (by ryandesign@…): Ah, if just cmake is failing, and many other ports have worked, that points the blame at cmake. I'd report the problem to the cmake developers, since we're just using their build system, nothing special. -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure failure (subdirectories with symlinks?) -------------------------+------------------- Reporter: rharwood@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+------------------- -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure failure (subdirectories with symlinks?) -------------------------+------------------- Reporter: rharwood@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+------------------- Comment (by css@…): Can you provide your CMakeCache.txt from the cake build directory? -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#40814: cmake configure failure (subdirectories with symlinks?) -------------------------+------------------- Reporter: rharwood@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: cmake | -------------------------+------------------- Comment (by rharwood@…): Replying to [comment:7 css@…]:
Can you provide your CMakeCache.txt from the cake build directory?
Apologies for the delay. It is attached. -- Ticket URL: <https://trac.macports.org/ticket/40814#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts