Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60642 closed defect (duplicate)

msodbcsql17: Don't require user to create /usr/local/opt/openssl/lib

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: roederja
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: msodbcsql17

Description

msodbcsql17 now has these notes:

$ port notes msodbcsql17
msodbcsql17 has the following notes:
  To make this work with SSL you need to create a symbolic link as follows:
   sudo mkdir -p /usr/local/opt/openssl/
   sudo ln -s /opt/local/lib /usr/local/opt/openssl/lib

   This is because this port installs binaries meant to be used with Homebrew.

It's terrible to make the user do this. Can the binary be fixed to look at the MacPorts location? For example, I see the string /usr/local/opt/openssl/lib/ in the library. Would replacing that string with ${prefix} (followed by a null byte) allow the library to find the MacPorts openssl library without needing the symlink?

Change History (2)

comment:1 in reply to:  description Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

replacing that string with ${prefix}

Or more precisely ${prefix}/lib/ or rather what that expands to. And as a sanity check we would need to confirm first that the length of the new string is not greater than the length of the old string.

comment:2 Changed 4 years ago by roederja

Resolution: duplicate
Status: assignedclosed

Already discussed here: #60560

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.