Skip to content

Config tweaks #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed

Config tweaks #2

wants to merge 14 commits into from

Conversation

derickr
Copy link

@derickr derickr commented Jan 22, 2018

No description provided.

This was originally added in dcd732c and should have been removed when @bjori's coverity hook was removed in 5309c17.
These lines were originally added before 1.0 when a local Mongo Orchestration process was used to create the test environments (see: PHPC-128).
If a directory is excluded, a negation on the files within it (e.g. "!dir/*") has no effect. Since .travis.scripts/ is excluded by ".*", we need to negate the directory itself to ensure the files within are tracked.
This was last updated in 90a64b4 when the project was hosted in the 10gen-labs groups.
PHP 5.4 was the last version where run-tests.php failed to report a non-zero exit code after a failure. Since the extension requires 5.5+, we can rely on any existing run-tests.php file.
Travis' backlog for macOS builds is quite high, and the environments also do not support MongoDB. We can revisit adding these environments down the line when the infrastructure has improved and we sort out explicit installation of MongoDB versions (see: PHPLIB-299).

Note: a macOS build with Secure Channel was manually tested in mongodb#736.
config.m4 Outdated
PHP_ARG_ENABLE(mongodb, whether to enable mongodb support,
[ --enable-mongodb Enable mongodb support])
PHP_ARG_ENABLE(mongodb, whether to enable MongoDB support,
[ --enable-mongodb Enable MongoDB support])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should really use AC_HELP_STRING. Would you like to re-work this commit? Otherwise, pull it out entirely and I'll address this in my original PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AC_HELP_STRING is something I had not encountered before. I don't see any other PHP extensions using it. It was actually working against me, as originally I wanted to indent all the dependent settings with two extra spaces, but m4 seems to remove beginning white space from the string...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not surprised that other PHP extensions don't use it, but I think it's worth using in our case since we have so many options and their help text often runs multiple lines. See: https://autotools.io/autoconf/arguments.html#autoconf.arguments.helpstrings

There are some other benefits aside from formatting.

PHP_ARG_WITH(libmongoc, whether to use system libmongoc,
[ --with-libmongoc Use system libmongoc], no, no)
[ --with-libmongoc MongoDB: Use system libmongoc], no, no)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing AC_HELP_STRING for these and mongodb-sasl below. I'll take care of that myself.

@jmikola
Copy link
Owner

jmikola commented Jan 22, 2018

I've merged this into my branch and the commits are now in mongodb#736.

@jmikola jmikola closed this Jan 22, 2018
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.

2 participants