Skip to content
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

don't require mcrypt #424

Merged
merged 1 commit into from
Sep 29, 2018
Merged

don't require mcrypt #424

merged 1 commit into from
Sep 29, 2018

Conversation

MegaphoneJon
Copy link
Contributor

I feel that civicrm/civicrm-core#12733 implies that mcrypt should no longer be a requirement for civi-download-tools - especially since this breaks on Ubuntu Bionic.

My only question is if we should go a step or two further:

  • Should we disable installing mcrypt on 7.2 via PECL?
  • Should we disable installing mcrypt on all systems?

I can add to this PR or file follow-ups, but I'd like to poll the crowd first.

@totten
Copy link
Member

totten commented Aug 28, 2018

I guess the final disposition of encryption is still under consideration. Regardless, agree it's a good idea to soften the dependency.

From a buildkit perspective, we had a similar transition regarding PHP's mysql/mysqli extensions: the extension was required in many versions of Civi, but in newer PHP it went away, and it was no longer a requirement in newer Civi. The main difference is that mcrypt may still be required on newer versions to support data-migration. (We have not yet figured out a way to decrypt that data with any other crypto library -- some of the cipher or block params seem to be unusual.)

I'd vote to treat it like this:

  • For basic civi-download-tools, the extension mcrypt is recommended but not required. Maybe even use the same trick as mysql check.
  • For civi-download-tools --full, skip the extension mcrypt if the platform doesn't readily provide it.

@homotechsual
Copy link
Contributor

mcrypt isn't an issue on Bionic from my testing.

@totten totten merged commit f140f48 into civicrm:master Sep 29, 2018
@totten
Copy link
Member

totten commented Sep 29, 2018

Thanks, @MegaphoneJon . Agreed with removing the requirement but wanted to add a softer recommendation for now, so I merged manually and added b452d68.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants