Skip to content

Conversation

kabel
Copy link

@kabel kabel commented Oct 4, 2017

This option is necessary for building on systems that may have outdated system openssl packages (macOS).

This option is necessary for building on systems that may have outdated system openssl packages (macOS).
@jmikola
Copy link
Member

jmikola commented Oct 4, 2017

Thanks for the PR. I've opened PHPC-1017 to track this, as I think it'd make sense to expose other configure flags to PECL install as well.

Although PECL uses bundled versions of libbson and libmongoc by default, we do support using system libraries (mainly used by Debian and RedHat packages of the driver). As there already exists a mongo-c-driver in Homebrew, I think the PHP driver's formula could also take advantage of that.

I'm not very familiar with Homebrew, but is this PR purely for PECL installs or is it also intended to address issues installing the driver through Homebrew? A quick looks at php72-mongodb tells me that the driver formula only downloads sources through PECL and builds manually with ./configure --with-openssl-dir=[DIR].

Based on Homebrew/homebrew-core#16067 (comment), it looks like @javian was installing with pecl install mongodb. Offhand, do you know if most Homebrew PHP users tend towards using pecl install over extension formula, or vice versa?

@jmikola
Copy link
Member

jmikola commented Oct 4, 2017

@derickr: I assume it's kosher to incorporate this PR into the upcoming 1.3.1 patch release? AFAIK, PECL does not support taking any of these options via the command line, so the user experience is the same (i.e. pecl install mongodb will still be run as-is).

According to the <configureoption> documentation, this will just cause PECL to start prompting for input during the installation process.

@kabel
Copy link
Author

kabel commented Oct 4, 2017

You're welcome. At the moment this is just to support installs through pecl. Discussion continues about the future of pecl sourced formulae in the core of Homebrew. As it is today, I would say the majority of Homebrew users use formulae to install these extensions (the current default for the php formula does not include pecl).

@jmikola jmikola changed the title Add pecl option prompt for --with-openssl-dir [WAIT] PHPC-1017: Add pecl option prompt for --with-openssl-dir Oct 30, 2017
@derickr
Copy link
Contributor

derickr commented Dec 11, 2017

I"m closing this. Not because it's wrong (it's not!), but because we have another PR that extends this to all the other options that our ./configure line takes: #692 — that PR also still needs some work though.

@derickr derickr closed this Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants