Opened 7 years ago
Closed 4 years ago
#56211 closed defect (fixed)
shibboleth @2.6.1: error: Unable to locate apr-1-config, may need --with-apr1 option
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | scantor (Scott Cantor) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | scantor (Scott Cantor) | |
Port: | shibboleth |
Description
From Travis CI:
checking if default apache needed... yes checking for apxs2... no checking for apxs... /usr/sbin/apxs checking default apache version... apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!. apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!. 2.4 checking whether to build Apache 1.3 module... no checking whether to build Apache 2.0 module... no checking whether to build Apache 2.2 module... no checking whether to build Apache 2.4 module... yes checking for user-specified Apache 2.4 apxs name/location... "/usr/sbin/apxs" checking to see if Apache 2.4 apxs was located... /usr/sbin/apxs checking for apr-1-config... apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!. no configure: error: Unable to locate apr-1-config, may need --with-apr1 option.
Attachments (1)
Change History (10)
Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 7 years ago by scantor (Scott Cantor)
comment:2 follow-up: 3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
According to https://github.com/macports/macports-ports/pull/1505#issuecomment-377296795 it only happened on the macOS 10.12 / Xcode 8.3 Travis CI builder; it did not happen on the OS X 10.11 / Xcode 7.3 builder nor on the macOS 10.13 / Xcode 9.3beta builder.
I don't recognize the path /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain; I don't have that on my macOS 10.12 system. But there are some Google results for it.
I guess what this ticket points out is that shibboleth is trying to use the copy of Apache included with macOS, and that has been deprecated for awhile. It should probably use the MacPorts apache2 port instead.
comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
I can, in any case, reproduce this error on macOS 10.12:
$ /usr/sbin/apxs -q SBINDIR /usr/sbin apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.
comment:4 Changed 7 years ago by scantor (Scott Cantor)
I wasn't aware it was deprecated, and if I just outright changed it, that would break anybody currently relying on the port. Can't really do that, so I guess it needs a variant that would specify a macport Apache version and apxs location to use. Of course apxs still has to work. ;-)
comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Well Apple's deprecation of Apache begins all the way back in OS X Mountain Lion v10.8. That's when Apple removed Personal Web Sharing from System Preferences.
comment:6 Changed 7 years ago by scantor (Scott Cantor)
There's a 3.0 SP coming soonish that would likely bump the portname to avoid conflicts so that would be a good time to change the default behavior.
comment:7 Changed 4 years ago by scantor (Scott Cantor)
This was essentially dealt with in the V3 port, which now uses the port of Apache and I just added a fix that should address locating the right script.
comment:8 Changed 4 years ago by scantor (Scott Cantor)
Owner: | changed from nerdling to scantor |
---|---|
Status: | assigned → accepted |
comment:9 Changed 4 years ago by scantor (Scott Cantor)
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Offhand, I think
apxs -q SBINDIR
is returning an invalid result to the configure script. Garbage in, garbage out. Don't have my Mac with me at the moment, but I suspect it's version-specific anyway.