Opened 3 years ago

Last modified 3 years ago

#56211 assigned defect

shibboleth @2.6.1: error: Unable to locate apr-1-config, may need --with-apr1 option

Reported by: ryandesign (Ryan Schmidt) Owned by: nerdling (Jeremy Lavergne)
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)

main.log (22.9 KB) - added by ryandesign (Ryan Schmidt) 3 years ago.

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by ryandesign (Ryan Schmidt)

Attachment: main.log added

comment:1 Changed 3 years ago by scantor (Scott Cantor)

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.

Last edited 3 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan 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 in reply to:  2 Changed 3 years ago by ryandesign (Ryan 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 3 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 3 years ago by ryandesign (Ryan 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 3 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.

Note: See TracTickets for help on using tickets.