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)

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

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 7 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 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 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 in reply to:  2 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: assignedaccepted

comment:9 Changed 4 years ago by scantor (Scott Cantor)

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.