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

emacs: Add option to enable dynamic modules. #2263

Closed
wants to merge 1 commit into from
Closed

emacs: Add option to enable dynamic modules. #2263

wants to merge 1 commit into from

Conversation

atheriel
Copy link

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same formula update/change?
  • Have you built your formula locally prior to submission with brew install <formula> (where <formula> is the name of the formula you're submitting)?
  • Does your submission pass brew audit --strict --online <formula> (after doing brew install <formula>)?

As of version 25.0.95 Emacs supports dynamic (native code) modules, but they are disabled by default. The --with-modules option must be passed to the ./configure script to enable them. This PR adds
this option to the formula, and warns the user if they try to use it for pre-25.0.95 builds.

Note that when Emacs 25 is released, this option will be available to all builds, and the formula will need to be updated.

As of version 25.0.95 Emacs supports dynamic (native code) modules,
but they are disabled by default. The `--with-modules` option must be
passed to the `./configure` script to enable them. This commit adds
this option to the formula, and warns the user if they try to use it
for pre-25.0.95 builds.

Note that when Emacs 25 is released, this option will be available to
all builds, and the formula will need to be updated.
@DomT4
Copy link
Member

DomT4 commented Jun 22, 2016

I'm reasonably reluctant to carrying around head/devel options only, truth be told. Feelings on this @dunn?

@@ -87,6 +88,14 @@ def install
args << "--with-imagemagick" if build.with? "imagemagick"
args << "--without-popmail" if build.with? "mailutils"

if build.with? "modules"
Copy link
Member

Choose a reason for hiding this comment

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

You can probably just condense this into:

args << "--with-modules" if !build.stable && build.with?("modules")

If we decide we're happy with this.

@dunn
Copy link
Contributor

dunn commented Jun 22, 2016

I'm reasonably reluctant to carrying around head/devel options only, truth be told. Feelings on this @dunn?

Yeah, we should probably wait until 25 is stable. That should be within a month or two anyway.

@atheriel
Copy link
Author

I think that's a reasonable response. The one comment that I would make is that the community is now starting to try and build dynamic modules in preparation for 25's release, and this patch would make that much, much easier on Mac (where I believe most installs are through Homebrew).

@MikeMcQuaid
Copy link
Member

Will reconsider this when 25 is stable, thanks.

@MikeMcQuaid MikeMcQuaid closed this Sep 3, 2016
@atheriel atheriel deleted the emacs-dynamic-modules branch September 19, 2016 20:45
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants