aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominique Orban2013-11-05 18:33:26 -0500
committerAdam Vandenberg2013-11-05 21:58:36 -0800
commite191900c2d0ff211120303b551e1cc8653e96eca (patch)
treef19dfa3feb947a2279b43ff9f3fa006a239a1895 /Library/Formula
parentf04bce1459752201f0f9e9d2c62d20b5312da683 (diff)
downloadhomebrew-e191900c2d0ff211120303b551e1cc8653e96eca.tar.bz2
open-mpi: don't vend libevent headers
Do not install the libevent header files that ship with Open-MPI. This resolves a conflict with libevent. Closes #24013. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libevent.rb2
-rw-r--r--Library/Formula/open-mpi.rb29
2 files changed, 28 insertions, 3 deletions
diff --git a/Library/Formula/libevent.rb b/Library/Formula/libevent.rb
index 2f6446e0e..ca7b45be2 100644
--- a/Library/Formula/libevent.rb
+++ b/Library/Formula/libevent.rb
@@ -17,8 +17,6 @@ class Libevent < Formula
option :universal
option 'enable-manpages', 'Install the libevent manpages (requires doxygen)'
- conflicts_with 'open-mpi', :because => 'both install same set of header files'
-
fails_with :llvm do
build 2326
cause "Undefined symbol '_current_base' reported during linking."
diff --git a/Library/Formula/open-mpi.rb b/Library/Formula/open-mpi.rb
index 75876772d..171a786e2 100644
--- a/Library/Formula/open-mpi.rb
+++ b/Library/Formula/open-mpi.rb
@@ -10,11 +10,16 @@ class OpenMpi < Formula
option :cxx11
conflicts_with 'mpich2', :because => 'both install mpi__ compiler wrappers'
- conflicts_with 'libevent', :because => 'both install same set of header files'
conflicts_with 'lcdf-typetools', :because => 'both install same set of binaries.'
depends_on :fortran unless build.include? 'disable-fortran'
+ def patches
+ # Do not install the libevent header files.
+ # See http://www.open-mpi.org/community/lists/users/2013/11/22900.php
+ DATA
+ end
+
def install
ENV.cxx11 if build.cxx11?
@@ -46,3 +51,25 @@ class OpenMpi < Formula
bin.write_jar_script libexec/'vtsetup.jar', 'vtsetup.jar'
end
end
+
+__END__
+
+diff --git a/opal/mca/event/libevent2021/libevent/include/Makefile.in b/opal/mca/event/libevent2021/libevent/include/Makefile.in
+index 99fb60b..5f7cad0 100644
+--- a/opal/mca/event/libevent2021/libevent/include/Makefile.in
++++ b/opal/mca/event/libevent2021/libevent/include/Makefile.in
+@@ -281,10 +281,10 @@ EVENT2_EXPORT = \
+ event2/util.h
+
+ EXTRA_SRC = $(EVENT2_EXPORT)
+-@INSTALL_LIBEVENT_TRUE@nobase_include_HEADERS = $(EVENT2_EXPORT)
+-@INSTALL_LIBEVENT_TRUE@nobase_nodist_include_HEADERS = ./event2/event-config.h
+-@INSTALL_LIBEVENT_FALSE@noinst_HEADERS = $(EVENT2_EXPORT)
+-@INSTALL_LIBEVENT_FALSE@nodist_noinst_HEADERS = ./event2/event-config.h
++#@INSTALL_LIBEVENT_TRUE@nobase_include_HEADERS = $(EVENT2_EXPORT)
++#@INSTALL_LIBEVENT_TRUE@nobase_nodist_include_HEADERS = ./event2/event-config.h
++#@INSTALL_LIBEVENT_FALSE@noinst_HEADERS = $(EVENT2_EXPORT)
++#@INSTALL_LIBEVENT_FALSE@nodist_noinst_HEADERS = ./event2/event-config.h
+ all: all-am
+
+ .SUFFIXES: